INNER CODE UNIT · JavaScript
Button
bamlab/react-native-flipper-performance-monitor · expo-example/App.js:8
const Button = ({ title, onPress, style, testID }) => (
<TouchableOpacity
style={[
{
padding: 10,
borderRadius: 10,
justifyContent: "center",
alignItems: "center",
},
style,
]}
testID={testID}
onPress={onPress}
>
<Text style={{ fontSize: 40, color: "white" }}>{title}</Text>
</TouchableOpacity>
);