()
| 2 | import { Button, StyleSheet, Text, View } from 'react-native' |
| 3 | |
| 4 | export 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 | |
| 20 | const styles = StyleSheet.create({ |
| 21 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected