[v2] How to custom animation for Navigation.push method replace for slide left to right effect only ?
[FILL THIS OUT]
Same here, push animation customisation doesn't seem to work on iOS.
I've defined custom animations for push, pop, showModal and dismissModal in Navigation.setDefaultOptions()
as indicated in the documentations :
Navigation.setDefaultOptions({
animations: {
push: {
content: {
alpha: {
from: 0,
to: 1,
}
}
},
pop: {
content: {
alpha: {...}
}
},
showModal: {
alpha: {...}
},
dismissModal: {
alpha: {...}
}
}
})
This worked perfectly on Android, but on iOS it doesn't seem to have any effect, all animations remain system defaults.
Someone knows if I've done something wrong ?
PS : I've tried to move the animation options from Navigation.setDefaultOptions()
to Navigation.push()
, but it produces the same results
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
This is still an issue on RN v0.58.5 and RNN 2.12.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
this still seems to be an issue.
The current documentation is a bit confusing.
Supported only on Android
is just mentioned for one of the examples which is for setRoot
's animation however none of the commands animation is working for IOS.
Maybe it's better to put this note under the main title (Animation properties
).
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation
tag.
I'm finding that defining custom animations as above will break pushing screens on iOS 10.
In my case the screen goes black. Changing device orientation will get the pushed screen to render again.
Most helpful comment
Same here, push animation customisation doesn't seem to work on iOS.
I've defined custom animations for push, pop, showModal and dismissModal in
Navigation.setDefaultOptions()
as indicated in the documentations :This worked perfectly on Android, but on iOS it doesn't seem to have any effect, all animations remain system defaults.
Someone knows if I've done something wrong ?
PS : I've tried to move the animation options from
Navigation.setDefaultOptions()
toNavigation.push()
, but it produces the same results