Skip to content

Add replaceWithAnimation Method to Navigator component#12881

Closed
DaniAkash wants to merge 1 commit intofacebook:masterfrom
DaniAkash:master
Closed

Add replaceWithAnimation Method to Navigator component#12881
DaniAkash wants to merge 1 commit intofacebook:masterfrom
DaniAkash:master

Conversation

@DaniAkash
Copy link
Copy Markdown

New feature
This commit will add replaceWithAnimation function to the Navigator component which will allow the user to replace a route while having the default transition animation of the target scene.

fixes #1981

Implemented based of Stack-Overflow solution - http://stackoverflow.com/questions/40393380/react-native-transition-animation-for-navigator-replace

Test plan
the following repository ReactNativeNavigationDemo (branch replaceWithAnimation) has a page implemented using the replaceWithAnimation function in SplashPage.js which replaces the splash page with the homepage and it is tested with various use cases and found that the component is working as expected.

New feature:

This commit will add replaceWithAnimation function to the Navigator component which will allow the user to replace a route while having the default transition animation of the target scene.

fixes #1981

Implemented based of Stack-Overflow solution - http://stackoverflow.com/questions/40393380/react-native-transition-animation-for-navigator-replace
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. GH Review: review-needed labels Mar 12, 2017
@DaniAkash DaniAkash changed the title Add replaceWithAnimation component to React Native Add replaceWithAnimation Method to Navigator component Mar 13, 2017
@hramos
Copy link
Copy Markdown
Contributor

hramos commented Apr 27, 2017

Navigator has been moved out of this repo. Can you open this against https://github.com/facebookarchive/react-native-custom-components instead?

@hramos hramos closed this Apr 27, 2017
@DaniAkash
Copy link
Copy Markdown
Author

Sure thanks for the info!

DaniAkash added a commit to DaniAkash/react-native-custom-components that referenced this pull request Jun 16, 2017
New feature
This commit will add replaceWithAnimation function to the Navigator component which will allow the user to replace a route while having the default transition animation of the target scene.

fixes facebook/react-native#1981

Implemented based of Stack-Overflow solution - http://stackoverflow.com/questions/40393380/react-native-transition-animation-for-navigator-replace

Test plan
the following repository [ReactNativeNavigationDemo (branch replaceWithAnimation)](https://github.com/DaniAkash/ReactNativeNavigationDemo/tree/replaceWithAnimation) has a page implemented using the replaceWithAnimation function in SplashPage.js which replaces the splash page with the homepage and it is tested with various use cases and found that the component is working as expected.

This Pull request was previously created at facebook/react-native#12881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Navigator] Animated replace

3 participants