problem description
I want the whole StackNavigator to be included in the Provider, so all my controllers should be able to share the store, but I directly find that the controllers in it are not connected
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
class App extends Component {
render () {
return(
<Provider store={store}>
<Welcome />
</Provider>
)
}
}
const Welcome = StackNavigator ({
)Launch:{screen:LaunchView},
Guide:{screen:GuideView},
Home:{screen:TabScreen},
BarCode:{screen:BarcodeScreen},
Message:{screen:MessageScreen},
})
TabScreen is a tabNavigator subcomponent that cannot connect to store
what result do you expect? What is the error message actually seen?
problem description
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)