You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,15 @@
14
14
15
15
## Philosophy
16
16
17
-
This repo focuses on grouping pages by business conversion tunnels called **canals**. When navigating in Venice, you can not teleport yourself from the beginning of a canal to the end of it. You are forced to either go ahead or go back; and doing so you might discover another canal 😲. **When you use React Gondola**, you define several gondoliers and how each one of them is authorized to move accross its own canal.
17
+
This repo focuses on grouping screens by business conversion tunnels called **canals**. Why did I call it `react-gondola`? Just because I though of this package when I was visiting Venice... and I kind of hope that using this package will feel like navigating in Venice 📸
18
+
19
+
**When you use React Gondola**, you define several screens and you have the possibility to control their visibility with YOUR state machine. You define the rules of WHEN some screens should appear; `react-gondola` takes care of the rest.
18
20
19
21
## 👍 TLDR; Use this package if:
20
22
21
-
- you want to group pages by **business** conversion tunnels rather than transition.
22
-
- you want to control your navigation state with a**state machine**.
23
-
- you want your navigation to **react** to your store changes.
23
+
- you want to group screens by **business** conversion tunnels rather than transition.
24
+
- you want to control your navigation state with YOUR**state machine**.
25
+
- you want your navigation to **react** to YOUR store changes.
In order to create a canal, use the `createCanal` function. Pass it your screens in the business order.
28
+
In order to create a canal, use the `Canal` and `Screen` components. Your screens order is important: the order is the elevation order. If two or more screens are visible, last visible in the array is shown.
32
29
33
30
```ts
34
-
importReactfrom"react";
35
-
import { createCanal } from"react-gondola";
36
-
import { FirstName } from"./FirstName";
37
-
import { LastName } from"./LastName";
38
-
39
-
const SignInCanal =createCanal([
40
-
{ name: "firstName", Component: FirstName },
41
-
{ name: "lastName", Component: LastName }
42
-
]);
43
-
```
44
-
45
-
Then, use the canal wherever you want in your app. Specify whether to show/hide a screen by using the screen's name as a prop:
If you want to add full screen page, pass the `isFullScreen` flag to the right page when creating a canal. In the following example, `confirm` is a full screen page.
48
+
If you want to add full screen page, pass the `isFullScreen` flag prop to your `Screen`when creating a canal. In the following example, `lastname` is a full screen page.
Copy file name to clipboardExpand all lines: docs/Welcome.mdx
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,17 @@ React Native declarative and reactive navigation.
9
9
10
10
## Philosophy
11
11
12
-
This repo focuses on grouping pages by business conversion tunnels called **canals**. When navigating in Venice, you can not teleport yourself from the beginning of a canal to the end of it. You are forced to either go ahead or go back; and doing so you might discover another canal 😲. **When you use React Gondola**, you define several gondoliers and how each one of them is authorized to move accross its own canal.
12
+
This repo focuses on grouping screens by business conversion tunnels called **canals**. Why did I call it `react-gondola`? Just because I though of this package when I was visiting Venice... and I kind of hope that using this package will feel like navigating in Venice 📸
13
+
14
+
**When you use React Gondola**, you define several screens and you have the possibility to control their visibility with YOUR state machine. You define the rules of WHEN some screens should appear; `react-gondola` takes care of the rest.
13
15
14
16
## When to use this package
15
17
16
18
### 👍 TLDR; Use this package if:
17
19
18
-
- you want to group pages by **business** conversion tunnels rather than transition.
19
-
- you want to control your navigation state with a**state machine**.
20
-
- you want you navigation to **react** to your store changes.
20
+
- you want to group screens by **business** conversion tunnels rather than transition.
21
+
- you want to control your navigation state with YOUR**state machine**.
22
+
- you want your navigation to **react** to YOUR store changes.
|`SildeLeft`|`import { SildeLeft } from "react-gondola/transitions";`||
31
33
|`SildeUp`|`import { SildeUp } from "react-gondola/transitions";`||
34
+
|`ConvexUp`|`import { ConvexUp } from "react-gondola/transitions";`||
32
35
|`RotateCrazy` (⚠️ experimental: this might be removed without notice) |`import { RotateCrazy } from "react-gondola/transitions";`||
33
36
34
37
## Create your own transitioner
@@ -44,16 +47,16 @@ You can create your own transitioner if the one availables does not fit your nee
0 commit comments