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

Function App

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected