Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-social-buttons

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-social-buttons

Declarative social buttons for React Native.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
255
decreased by-15.56%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 26 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc