rtg-rn-social-buttons

0.1.0 • Public • Published

### 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

Property Default In Message Object Description
type none Yes Controls Buttton Type like facebook,google,twitter,github,microsoft,linkedin,amazon
text none Yes Display Text on the Button
height none Yes Adjust height of the button
width none Yes Display width of the button
opacity none Yes Controls the opacity of the button
action none Yes Contains 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

Package Sidebar

Install

npm i rtg-rn-social-buttons

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

125 kB

Total Files

21

Last publish

Collaborators

  • rtgstudios