我是新来的本地人。我试图使用路由器从‘反应-本机-路由器-通量’。但我发现了一个错误:
Router.js:135 Uncaught TypeError: Cannot read properties of undefined (reading 'style')
at Module../node_modules/react-native-router-flux/src/Router.js (Router.js:135)
at __webpack_require__ (bootstrap:789)
at fn (bootstrap:100)
at
我有一个<Text>组件正在传递一个样式,所以..
TextFile.js
<Text style={styles.text}>
This is a line of text and this might be a second line
</Text>
screenFile.js
<View style={styles.viewContainer}>
<TextFile style={styles.textWithinContainer}>
</View>
textFiles/styles.js
text