react-native-login-screen
Version:
Fully Customizable & Ready to use Login Screen for React Native
16 lines • 803 B
JavaScript
import * as React from "react";
import { View, Image, Text, TouchableOpacity, } from "react-native";
/**
* ? Local Imports
*/
import styles from "./SocialButton.style";
const SocialButton = ({ style, text, textStyle, iconImageStyle, textContainerStyle, TouchableComponent = TouchableOpacity, imageSource = require("../../local-assets/facebook.png"), onPress, }) => {
return (<TouchableComponent style={[styles.container, style]} onPress={onPress}>
<Image resizeMode="contain" source={imageSource} style={[styles.iconImageStyle, iconImageStyle]}/>
<View style={[styles.textContainer, textContainerStyle]}>
<Text style={[styles.textStyle, textStyle]}>{text}</Text>
</View>
</TouchableComponent>);
};
export default SocialButton;
//# sourceMappingURL=SocialButton.js.map