Skip to content

Commit 038d75c

Browse files
committed
📝 (react-navigation) add react-navigation interoperability guide
1 parent 6469e2b commit 038d75c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: React Navigation Interoperability
3+
menu: Guides
4+
route: /guides/react-navigation
5+
---
6+
7+
# Can React Gondola work with React Navigation ❤️ ?
8+
9+
Yes it can.
10+
11+
## Good use of both of us 👍
12+
13+
1. The user is free to navigate on some top level pages (use `react-navigation`).
14+
2. The user is forced to move forward/backward when he completes come steps in low level tunnels (use `react-gondola`).
15+
16+
This means that at a certain point in your navigation, you need to control the visibility of your page. That great power comes with great responsability.
17+
✅ Test your state machine !
18+
19+
## How well it works ?
20+
21+
**Disclaimer:** interoperability has not been entirely tested. If you encounter any issue, feel free to open an issue on the `react-gondola` repo.
22+
23+
## Steps
24+
25+
1. Include one `Canal` inside a `react-navigation` page.
26+
2. Disable `gesture` on that `react-navigation` page.
27+
3. Disable `onBack` setting `<AndroidBackHandler onBackPress={() => {if (youWantToGoBackInReactNavigation()) {return false}; return true} />` in your `react-navigation` page (use `https://github.com/vonovak/react-navigation-backhandler`).

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: ['Back', 'Transitions'] },
9+
{ name: 'Guides', menu: ['Back', 'Transitions', 'React Navigation Interoperability'] },
1010
'Example',
1111
'Contribute',
1212
'Roadmap',

0 commit comments

Comments
 (0)