MCPcopy Index your code
hub / github.com/codemotionapps/react-native-dynamic / Extra

Function Extra

example/Extra.tsx:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { DynamicStyleSheet, useDynamicStyleSheet, useDarkModeContext, DynamicValue } from 'react-native-dynamic'
4
5export default function Extra() {
6 const mode = useDarkModeContext()
7 const styles = useDynamicStyleSheet(dynamicStyleSheet)
8 return (
9 <View style={styles.container}>
10 <Text style={styles.text}>Forced mode: {mode}</Text>
11 </View>
12 )
13}
14
15const dynamicStyleSheet = new DynamicStyleSheet({
16 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected