Skip to content

venomkage/react-native-linear-gradient-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Linear Gradient Button

This package is built upon react-native-linear-gradient. So if any error occurs then make sure react-native-linear-gradient is installed properly.

  • Installing this package requires react-native-linear-gradient to be installed already.

  • For ios, don't forget to run pod install inside ios folder

  • Enter the param values and enjoy.

Example

//importing the GradientButton
import GradientButton from 'react-native-linear-gradient-button';

const App = () => {
  return (
      <GradientButton
        text={'Press Me'}
        onPress={() => console.log('Pressed')}
        color1="Black"
        color2={'white'}
        fontSize={15}
        fontFamily={'Roboto'}
      />
  );
};

Example Image

About

Repository for react-native-linear-gradient-button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published