UNPKG

react-native-global-modal-2

Version:

🌍 Global modal and callable from anywhere on the app for React Native

13 lines 467 B
import React from "react"; import { Pressable, Text } from "react-native"; /** * ? Local Imports */ import styles from "./Button.style"; const Button = ({ text, onPress, style, TouchableComponent = Pressable, textStyle, }) => { return (<TouchableComponent style={[styles.container, style]} onPress={onPress}> <Text style={[styles.textStyle, textStyle]}>{text}</Text> </TouchableComponent>); }; export default Button; //# sourceMappingURL=Button.js.map