0.1.0 • Published 5 years ago

rtg-rn-social-buttons v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

R.T.G React Native Social Buttons

Installation

Since the library is a JS-based solution, to install the latest version of rtg-rn-social-buttons you only need to run:

npm install --save rtg-rn-social-buttons

Basic Usage

Just Import and use Component in your react-native expo as well as ejected apps a basic example is as below

import React from "react";
import { View ,Alert} from "react-native";
import SocialButton from "rtg-rn-social-buttons";

alertme=()=>{
    Alert.alert('action');
}

export default class App extends React.Component {
  render() {
    return (
      <View>
        <SocialButton type='facebook' text='Login With Facebook' opacity={0.5} height={40} width={220} action={this.alertme}/>
      </View>
    );
  }
}

You can Pass these types of props to your App

Props

PropertyDefaultIn Message ObjectDescription
typenoneYesControls Buttton Type like facebook,google,twitter,github,microsoft,linkedin,amazon
textnoneYesDisplay Text on the Button
heightnoneYesAdjust height of the button
widthnoneYesDisplay width of the button
opacitynoneYesControls the opacity of the button
actionnoneYesContains Action performed on the button

Try it out

You can try out the rtg-rn-social-Button Playground app to get a tease of the functionalities of this lib.

Documentation

More details and usages will coming soo

##Screenshots