Skip to content

Commit 84e5700

Browse files
committed
Peeking works on android with predictive back
Not just ios feature
1 parent 6fa45f4 commit 84e5700

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

documentation/native/scene-navigation-lifecycle.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ <h1>Navigation Lifecycle</h1>
6363
useUnloaded(() => {
6464
// Stop polling for new emails
6565
});</code></pre>
66-
<h2>Peeking Back on iOS</h2>
66+
<h2>Peeking Back</h2>
6767
<p>
68-
On iOS, when the user is reading a mail they can half swipe left so they can peek at their inbox without navigating to it. We want to show them their latest mail but we don't want to start polling because they're still on the 'email' scene. The Navigation router has a <code>useNavigating</code> hook that notifies us when the swipe starts. We use this to issue a one-time call to refresh the inbox. If the user completes the swipe the <code>useNavigated</code> fires and we start polling again.
68+
When the user is reading a mail they can half swipe left so they can peek at their inbox without navigating to it. We want to show them their latest mail but we don't want to start polling because they're still on the 'email' scene. The Navigation router has a <code>useNavigating</code> hook that notifies us when the swipe starts. We use this to issue a one-time call to refresh the inbox. If the user completes the swipe the <code>useNavigated</code> fires and we start polling again.
6969
</p>
7070
<pre><code class="language-js">import {useNavigating} from 'navigation-react-native';
7171

0 commit comments

Comments
 (0)