Skip to content

Session to Login Screen Redirect #253

@stevefox

Description

@stevefox

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions