Skip to content

Commit

Permalink
Merge pull request #782 from grahammendick/predictive-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grahammendick authored May 27, 2024
2 parents 21a5631 + c4c314f commit 0eba36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/native/shared-element-transition.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ <h1>Shared Element Transition (Android)</h1>
<p>
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 <code>SharedElement</code> component. To identify a pair of shareable elements, you wrap each one in a <code>SharedElement</code> component and give them both the same <code>name</code>.
</p>
<div class="Note">
<h2>Note</h2>
Shared element transitions disable the predictive back gesture
</div>
<p>
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 <code>SharedElement</code> component and give them both the same name.
</p>
Expand Down

0 comments on commit 0eba36d

Please sign in to comment.