()
| 16 | } |
| 17 | |
| 18 | export default function App() { |
| 19 | const mode = useDarkModeContext() |
| 20 | const styles = useDynamicValue(dynamicStyles) |
| 21 | const logo = useDynamicValue(require('./logoLight.png'), require('./logoDark.png')) |
| 22 | |
| 23 | return ( |
| 24 | <View style={styles.container}> |
| 25 | <Image source={require('./meme.png')} style={styles.meme} /> |
| 26 | |
| 27 | <Image source={logo} style={styles.image} /> |
| 28 | |
| 29 | <Text style={styles.initialStyle}>Current mode: {mode}</Text> |
| 30 | |
| 31 | <DarkModeProvider mode="dark"> |
| 32 | <Extra /> |
| 33 | </DarkModeProvider> |
| 34 | <DarkModeProvider mode="light"> |
| 35 | <Extra /> |
| 36 | </DarkModeProvider> |
| 37 | |
| 38 | {/* <Counter /> */} |
| 39 | </View> |
| 40 | ) |
| 41 | } |
| 42 | |
| 43 | const dynamicStyles = new DynamicStyleSheet({ |
| 44 | container: { |
nothing calls this directly
no test coverage detected