Open karrettgelley opened 2 years ago
Same issue here. The "setRoot" animation still not working on iOS in the latest RNN version 7.37.2, React Native 0.72
Same issue here. The "setRoot" animation using translationX still not working on iOS in the latest RNN version 7.40.1, React Native 0.73.9
...
animations: {
setRoot: {
enter: {
waitForRender: true,
enabled: true,
translationX: {
from: width,
to: 0,
duration: 3,00
},
},
},
},
...
🐛 Bug Report
From experimentation with both the playground and my app, it seems that setRoot animations do not work on iOS (on both simulator and physical device). I thought at first it was due to an incorrect implementation in my app, but after cloning
master
(v7.30.0) of this repo, I was able to reproduce the issue in the playground app (again, on both simulator and physical device on iOS). More specifically, none of thesetRootAnimation
animations work inplayground/src/commons/options/Animations.ts
. Instead of showing a slide in/slide out animation as the code intends, the default replace animation is shownPlease see videos below for a demonstration of the issue
To Reproduce
npm run start
Expected behavior
According to the setRootAnimation variable defined in
playground/src/commons/options/Animations.ts
. the destination screen should slide in from the right and the source screen should slide out to the leftActual Behavior
Default replace screen animation is exhibited
Your Environment
*While I observed this issue in both my app and the playground app, the following values refer to those in the playground
Reproducible Demo
The following video demonstrates the issue as shown on physical device. I have also recorded a demo on sim but the file is too large to post here
https://user-images.githubusercontent.com/31458115/200108016-26196255-5852-45bf-bb60-6592c34e75ee.mov
Just clone master and follow the STR above
Are you willing to resolve this issue by submitting a Pull Request?