Skip to content
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

Not able to navigate to same screen from same screen in react-router flux #2504

Closed
shaktiprakash099 opened this issue Oct 13, 2017 · 1 comment

Comments

@shaktiprakash099
Copy link

In my app i am using react router flux
from service i am getting data and showing in Flat list,and In my Flatlist when ever i am touching any flat list element then again i am hitting service and i want to show the details in same screen but after navigating to same screen but its not happening

/Appindex.js

      <Router>
                  <Scene key = "root">
                     <Scene key = "secondscreen"
                      component ={secondscreen}
                       hideNavBar={true}
                          title="secondscreen"
                       initial
                       />
                       <Scene key = "thirdscreen"
                      component = {thirdscreen}
                      title = "thirdscreen"
                      />
                      </Scene>
                 </Router>

im my third screen i am calling this function in the onpress action in flatlist

_movetosecondscreen = (item) => {
   var userId = item.id;
   this.setState({
     modalVisible: true,
    });
   axiosgetUserProfile(userId,jsonResponse => {
    console.log(jsonResponse);
    if (jsonResponse === null) {
      this.setState({
         error,
        modalVisible: false
       });
      }
    else if (jsonResponse.status === 200) {

      this.props.peopleAction(jsonResponse.data);
      this.setState({
         modalVisible: false
       });

        Actions.thirdscreen();
     

     }
   });

 };

simulator screen shot 13-oct-2017 3 44 12 pm

@aksonov
Copy link
Owner

aksonov commented Oct 17, 2017

It is not supported. Use Actions.refresh to update data.

@aksonov aksonov closed this as completed Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants