UNPKG

react-native-social-login-module

Version:
22 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const react_native_1 = require("react-native"); const react_native_androw_1 = tslib_1.__importDefault(require("react-native-androw")); /** * ? Local Imports */ const SocialButton_style_1 = tslib_1.__importStar(require("./SocialButton.style")); const SocialButton = (props) => { const { text, component, height = 85, width = "50%", loginButtonTextStyle, shadowColor = "#757575", backgroundColor = "#69bc4c", onPress, } = props; return (<react_native_androw_1.default style={SocialButton_style_1._shadowStyle(shadowColor)}> <react_native_1.TouchableOpacity style={SocialButton_style_1._container(width, height, backgroundColor)} onPress={onPress}> {component || (<react_native_1.Text style={[SocialButton_style_1.default.buttonTextStyle, loginButtonTextStyle]}> {text} </react_native_1.Text>)} </react_native_1.TouchableOpacity> </react_native_androw_1.default>); }; exports.default = SocialButton; //# sourceMappingURL=SocialButton.js.map