我认为世博会环境遇到了问题
更新我的Redux状态时,不呈现我的组件,而在生产模式下,一切正常
我不打印我的代码,因为它肯定与代码无关,而与博览会环境无关。其他一些开发人员遇到了此问题,但我仍然找不到有效的解决方案.. 在Prod'env中而不是在Dev'/ Local env中编码很烦人
这是我的package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
},
"dependencies": {
"expo": "^32.0.0",
"native-base": "^2.12.1",
"react": "^16.5.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-navigation": "^3.9.1",
"react-redux": "^6.0.0",
"redux": "^4.0.1"
},
"devDependencies": {
"babel-preset-expo": "^5.0.0",
"schedule": "^0.4.0"
},
"private": true
}
如果有人对如何解决它有想法,那就太好了 如果您需要更多信息,请随时询问
编辑:这是我的app.js
import React from 'react'
import { View, StyleSheet } from 'react-native'
import Navigation from './Navigation/Navigation'
import { Provider } from 'react-redux'
import Store from './Store/configureStore'
class App extends React.Component {
render() {
return (
<Provider store={Store} >
<Navigation />
</Provider>
);
}
}
export default App
以下是与此主题相关的另一篇Git帖子:https://github.com/expo/expo/issues/3859#issuecomment-490979505