npm.io
1.2.6 • Published 4 years ago

react-native-linear-gradient-button

Licence
ISC
Version
1.2.6
Deps
1
Size
138 kB
Vulns
0
Weekly
0
Stars
1

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

Keywords