Skip to content

Fix onTransitionStart and onTransitionEnd in StackView - #1

Open
fr1n63 wants to merge 41 commits into
masterfrom
fr1n63-fix-transition-callbacks
Open

Fix onTransitionStart and onTransitionEnd in StackView#1
fr1n63 wants to merge 41 commits into
masterfrom
fr1n63-fix-transition-callbacks

Conversation

@fr1n63

@fr1n63 fr1n63 commented May 1, 2018

Copy link
Copy Markdown
Owner

These functions weren't firing anymore as they are passed as part of navigationConfig. Not sure if this is the best way to fix, but it solves my issue.

fr1n63 and others added 30 commits May 1, 2018 14:40
These functions weren't firing anymore as they are passed as part of navigationConfig. Not sure if this is the best way to fix, but it solves my issue.
…eact-navigation#4106)

* Use Array.prototype.findIndex instead of map => indexOf

Creating a new array and iterating over all the routes is inefficient compared to findIndex, which does not create a new array and exits as soon as it finds a match. Since the indexOf method is used extensively this should provide a minor performance improvement

* reverted yarn.lock edits
Events were getting unsubscribed too early, so that the inner willBlur event was getting skipped when trying to “dismiss” a deep navigation stack.
“reset” is not a NavigationAction anymore.

The correct fix, for v3, to this is to navigate to the first screen inside the stack. With the less-pushy navigate behavior in v2, this will result in the first route getting selected if you specify it by routeName.
Addresses react-navigation#4129, and also lets child routers swallow actions with null. Tests added
* 3127: Fixed gestureDirectionInverted variable declaration and condition in onPanResponderMove method in regards to swipe back action in RTL mode.

* - 4118: Put axis check first;
- Fixed default BackButton mask in RTL mode.
brentvatne and others added 11 commits May 7, 2018 13:47
Previously we had been emiting an action event with a null state when the router handles the action by returning null from getStateForAction.

- Fixes the case of null state getting emitted
- Renames a few things for clarity
- Refactors conditionals to read easier
- Comments to explain intent
* fix swipe gesture bug

* panresponder as instance prop
This really is not ideal but it's an upstream bug on react-native Android
that we can't work around. Users may experience other unexpected behavior as a
result of this upstream bug.
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

Successfully merging this pull request may close these issues.

8 participants