Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 6469e2b

Browse files
committed
📝 (back) add back guide
1 parent 932a5c8 commit 6469e2b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

docs/guides/Back.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Back
3+
menu: Guides
4+
route: /guides/back
5+
---
6+
7+
# Back 🔙
8+
9+
## Steps
10+
11+
In order to go back, you need to code two steps.
12+
13+
1. Add a `onBack` callback on the `Screen` you are going back from. Make sure this callback affects the visibility (prop `visible`) of the screen you are going back from.
14+
2. Call `Navigation.instance.back()` (`import { Navigation } from 'react-gondola'`).
15+
16+
You're set 🎸.
17+
18+
## Example
19+
20+
Checkout the `example` folder in the repo to get some inspiration.

doczrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
menu: [
77
'Welcome',
88
'Getting Started',
9-
{ name: 'Guides', menu: ['Transitions'] },
9+
{ name: 'Guides', menu: ['Back', 'Transitions'] },
1010
'Example',
1111
'Contribute',
1212
'Roadmap',

0 commit comments

Comments
 (0)