React-native-router-flux: Crash when Back button is tapped during animation

Created on 13 Apr 2016  Â·  8Comments  Â·  Source: aksonov/react-native-router-flux

Version

v3 is SLOW for Android right now (because React Native ExperimentalNavigation is slow), see #355, no need to create new issue!
Tell us which versions you are using (react native 0.22 is required for v3!):

  • react-native-router-flux v3.2.7
  • react-native v0.22.2

Expected behaviour

Actions invoked during an animation should be ignored.

Actual behaviour

I have a scene that is a list, and selecting an item in the list pops the scene. There is also a BACK button in the navbar that does a pop. When running on a slow device and the animation takes a long time after selecting a list item, the user is tempted to press the Back button, which results in a Red Box error: 'undefined' is not an object (evaluating 'selected.duration')

I can disable the back button when the action starts, but I might have to do that in many places, and I'm wondering if that shouldn't be the responsibility of this component or navigation experimental?

Steps to reproduce

1.
2.
3.

Most helpful comment

I have the same problem with RN 0.37 and RNRF 3.37

All 8 comments

If you are talking about Android, you should upgrade RN to 0.23.1 and RNRF to 3.2.9

Thanks, no, this is iOS.

On Tue, Apr 12, 2016 at 10:05 PM, Eric [email protected] wrote:

If you are talking about Android, you should upgrade RN to 0.23.1

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/aksonov/react-native-router-flux/issues/520#issuecomment-209217447

@chetstone Looks like it is fixed within latest React native master, i don't remember number of the issue, but we can't use it because of #557

I'll close this issue since 0.26 will be landed in few days.

If you still get this issue with 0.26.0 (both updated react-native and react-native-router-flux), please reopen it.

I have the same problem with RN 0.37 and RNRF 3.37

Same problem

Same problem here.
Even tried to stop animations onBack is clicked, but didn't help.
Any ideas?

I set a state variable goingBack to disable subsequent clicks of the back button

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willmcclellan picture willmcclellan  Â·  3Comments

booboothefool picture booboothefool  Â·  3Comments

jgibbons picture jgibbons  Â·  3Comments

wootwoot1234 picture wootwoot1234  Â·  3Comments

moaxaca picture moaxaca  Â·  3Comments