-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
I am building a session screen and found I haven't been able to get the redirect to work before the first render. If I put Actions.RouteLogin()
in componentDidMount
, it also does not redirect. If I do anything that triggers the view to re-render, or if I put it in an onPress
handler, then it works fine. Is that why you suggest within setTimeout
in #228? The route type currently is replace
if that's relevant.
Here's the simplified example.
render: function() {
Actions.RouteLogin();
return (
<View>
<Tex>Test</Text>
</View>
);
}
Metadata
Metadata
Assignees
Labels
No labels