yarn add react-native-social-buttons
or
npm install react-native-social-buttons
Explore our buttons in action with a live example on Expo Snack:
Click the badge above to open the project in Expo Snack, where you can view and interact with the components directly in your browser or on your device.
import React from "react";
import { View } from "react-native";
import { FacebookSocialButton } from "react-native-social-buttons";
export default class App extends React.Component {
render() {
return (
<View>
<FacebookSocialButton onPress={() => {}} buttonViewStyle={...} logoStyle={...} textStyle={...} />
</View>
);
}
}
You can customize the buttons using buttonViewStyle={...}, logoStyle={...} and textStyle={...}