From c4c314ff7fd4261ca9ebee91daf31de2713ff091 Mon Sep 17 00:00:00 2001 From: Graham Mendick Date: Mon, 27 May 2024 09:32:47 +0100 Subject: [PATCH] Documented that shared els disable predictive back Just couldn't get Shared element or Material Transitions to work with predictive back although android says they do - Animators yes, but Transitions no --- documentation/native/shared-element-transition.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/native/shared-element-transition.html b/documentation/native/shared-element-transition.html index 34fcfbf42..c7e9b7365 100644 --- a/documentation/native/shared-element-transition.html +++ b/documentation/native/shared-element-transition.html @@ -54,6 +54,10 @@

Shared Element Transition (Android)

Android supports shared element transitions, where you can smoothly animate changes between related Views across two scenes. The Navigation router exposes this functionality to React using the SharedElement component. To identify a pair of shareable elements, you wrap each one in a SharedElement component and give them both the same name.

+
+

Note

+ Shared element transitions disable the predictive back gesture +

In our email example app, we smooth out the transition when a user opens an email by visually connecting the subject line on the 'inbox' scene with the open email on the 'mail' scene. We wrap the views on each scene inside a SharedElement component and give them both the same name.