React-native-router-flux: Actions.refs.SCREEN_NAME doesn't work

Created on 22 Mar 2018  路  5Comments  路  Source: aksonov/react-native-router-flux

I can see this message Actions.refs is undefined;
I want to toggle menu in home screen in app.js where i defined routers.
so I have to call component's method but i can't.
I want to hear your opinion

Most helpful comment

You've asked on StackOverflow and somebody replied. I will not do your researches for you. I'm here to help you using this library and I asked you more details, which you didn't.

What you could do is :

  • Either use a HOC
  • Either use Redux to pass the same method in your components
  • Either use your method as a prop and doing the trick in this way

There's a large amount of ways of doing what you want. You don't need Actions.refs to do that, which includes there is no need to open an issue on this library, so, YOU HAVE TO DO THE RESEARCHES.

Closing this.

All 5 comments

What are you doing exactly ? Have you cheched the example project to know how to use this library??

Yes, of course.
Do you have experience really how to do like my way?

No because I don't see the point of using refs on Action. And this might not be defined in Actions.

Nope, You need to google before answer my question.
since I had seen it is working in previous version when I first implement it.
but After adding some packages and modified code, it doesn't work.
and i have no that version code so I wanted to get help.

You've asked on StackOverflow and somebody replied. I will not do your researches for you. I'm here to help you using this library and I asked you more details, which you didn't.

What you could do is :

  • Either use a HOC
  • Either use Redux to pass the same method in your components
  • Either use your method as a prop and doing the trick in this way

There's a large amount of ways of doing what you want. You don't need Actions.refs to do that, which includes there is no need to open an issue on this library, so, YOU HAVE TO DO THE RESEARCHES.

Closing this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willmcclellan picture willmcclellan  路  3Comments

VictorK1902 picture VictorK1902  路  3Comments

moaxaca picture moaxaca  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments