-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_reactNativeRouterFlux.Actions.create is not a function #1975
Comments
Sorry, this way is not supported yet. Could you try
P.S. duration is not supported because new ReactNavigation doesn't support it. The best way is to make root scene as 'tabs' (add 'tabs' attribute and 'hideTabBar') |
It's worked but when I switch from v3.39.2 to v.4.0.0-beta.*, I get a lot of errors. When will the document be ready for v4? |
You may add 'lazy' attribute to 'tabs' Scene to avoid constructing of inactive scenes. Any PR about documentation is welcome. |
For now I'm going to collect 'breaking changes' topic comparing v3 and v4. So your feedback is very welcome. |
Ok. The other major problem I'm facing :
|
|
...
componentWillMount() {
this.isLoggedIn();
}
isLoggedIn() {
isLoggedIn().then((res) => {
if (res)
Actions.ChatList({type: 'reset'});
else
Actions.Login({type: 'reset'});
});
}
... When we go to ChatList.js by using "type: reset" command, we can come back. ("Type: reset" command is not working in v4) ...
Actions.refresh({
renderLeftButton: () => {
return (
...
);
},
renderRightButton: () => {
return (
...
);
}
})
... :-----------------v3.39.2--------------------:|:------------------v4.0.0-beta.3----------------:
...
return (
<View
style={{ flex: 1 }}>
<ConnectionBar
show={this.state.connectionShow}
type={this.state.connection}
onPress={this.onClickConnectionStatus.bind(this)}/>
<ConferenceCallPopupView
name={this.state.conference.name}
callHim={this.state.conference.callHim}
callingMe={this.state.conference.callingMe}
photo={this.state.conference.photo}
onSelect={this.onClickConference.bind(this)}
model={this.state.conference}
show={this.state.conference.show}/>
<MenuContext style={{ flex: 1}}>
<StatusBar
backgroundColor="#295870"
barStyle="light-content"/>
{/*routing*/}
<Router>
<Scene key="root">
<Scene key="Start" component={Start} hideNavBar={true} duration={0}/>
<Scene key="Login" component={Login} hideNavBar={true} duration={0}/>
<Scene key="ChatList" unmountScenes component={ChatList} duration={0}/>
</Scene>
</Router>
{/*routing*/}
</MenuContext>
</View>
);
... |
It is wrong usage of RNRF.
RNRF is not replacement for Redux/Mobx, it is just easy navigation. For some reasons many people try to use it as state management tool. |
Version
Tell us which versions you are using:
simple code:
The text was updated successfully, but these errors were encountered: