-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Navigator transitions broken on 0.13 #3669
Comments
same issue. All configs Navigator.SceneConfigs with translate doesn't work, only this strange fade effect like in satya164 case. |
+1 |
same issue here as well, none of the slide transitions work, but the fade transitions work without a problem. |
Thanks for the report and +1's everyone, @ericvicenti can you take a look? |
+1 |
Any updates on this? |
I haven't seen any changes to Navigator that would cause this, and there is no platform-specific code that would cause breakage only on Android. To perform animations, Navigator calls setNativeProps on views within a requestAnimationFrame timer. Maybe somebody could try bisecting to identify the breakage? I don't have bandwidth to figure this out in the next few weeks. |
I simply created the AwesomeProject tutorial and then added a Navigator to it and used the FloatFromRight transition. It works on iOS but it does not work on Android. The only transition that seems to work on Android is FadeAndroid, but that one is so subtle, it's hardly noticeable. |
I'm not entirely sure how it was broken, but the reason most transitions don't work is that they're using the wrong native prop.
I hacked a change in Navigator.js _transitionSceneStyle which "fixes" the transitions (as in they work afterwards, but I'm sure this code change isn't really the one wanted): ...
var didChange = useFn(styleToUse, directionAdjustedProgress);
//
if (styleToUse.transformMatrix)
styleToUse = {...styleToUse, decomposedMatrix: MatrixMath.decomposeMatrix(styleToUse.transformMatrix)}
//
if (didChange) {
... This is my first look at any of this code, so I'm very unsure how to go about fixing this for real. |
@astreet, have there been any recent changes to transform matrices? There seems to be an inconsistency with Android and iOS |
So a bit more research and... The Android version relies on the A bunch of commits seemed to break that. The problem is basically fixed already in 0ed3048 So this should be fixed in 0.14 already as long as all SceneConfigs use interpolators with fallbacks for transformTranslate. |
@kmagiera Were matrix transforms broken for a while in Android? I.e. possibly broken in the 0.13 release? |
The animation while going back kind of hangs for me as well while navigating back. Works fine in IOS though. |
same here. the "back animation" is very choppy |
So, I upgraded my RN version in
package.json
andbuild.gradle
and found that Navigator transitions are broken. I tried adding aconfigureScene
property with no success.The text was updated successfully, but these errors were encountered: