0.0.1 • Published 4 years ago

react-native-social-button v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Battle Tested ✅

React Native Social Button

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

npm i react-native-social-button

Peer Dependencies

IMPORTANT! You need install them

Do not forget to go ios folder and pod install

"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-androw": "0.0.34",
"react-native-vector-icons": "^6.6.0",
"react-native-dynamic-vector-icons": "^0.1.1",
"@freakycoder/react-native-helpers": "^0.1.3"

Usage

Import

import SocialButton from "react-native-social-button";

Basic Usage

<SocialButton />

Advanced Usage

<SocialLoginButton
  name="twitter"
  color="#52a9e8"
  text="Continue with Twitter"
  iconComponent={
    <FastImage
      style={{ height: 50, width: 50 }}
      source={require("../assets/your-image.png")}
    />
  }
/>

Configuration - Props

PropertyTypeDefaultDescription
textstringContinue with Facebookchange the button's inside text
onPressfunctiondefaultuse this to set your own function for onPress
widthstring/numberScreenWidth * 0.8change the main button's width
heightstring/number70change the main button's height
borderRadiusnumber24change the main button's border radius
backgroundColorcolor#2d93e7change the main button's background color
iconWidthstring/number55change the icon's width
iconHeightstring/number55change the icon's height
iconBorderRadiusnumber24change the icon's container's border radius
iconBackgroundColorcolor#fdfdfdchange the icon's container's background color
iconComponentcomponentIconuse this to set your own icon component instead of default one
shadowStylesstyledefaultuse this to set your own style for main button's shadow instead of default one
textStylestyledefaultuse this to set your own style for main button's text instead of default one

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Social Button is available under the MIT license. See the LICENSE file for more info.