MCPcopy Create free account
hub / github.com/dabbott/react-native-express / App

Function App

examples/files/core_components/touchableHighlight.js:4–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { StyleSheet, Text, TouchableHighlight, View } from 'react-native'
3
4export default function App() {
5 const [count, setCount] = useState(0)
6
7 return (
8 <View style={styles.container}>
9 <TouchableHighlight
10 style={styles.button}
11 underlayColor="#FAB"
12 onPress={() => {
13 setCount(count + 1)
14 }}
15 >
16 <Text style={styles.text}>Press me!</Text>
17 </TouchableHighlight>
18 <Text style={styles.text}>{`Pressed ${count} times`}</Text>
19 </View>
20 )
21}
22
23const styles = StyleSheet.create({
24 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected