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
Copy file name to clipboardExpand all lines: docs/community-libraries-and-navigators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The library implements a custom navigator called `FluidNavigator` that makes all
26
26
27
27
react-navigation-collapsible is a library and a `Higher Order Component` that adjusts your screen options and makes your screen header collapsible.
28
28
29
-
Since react-navigation's header is designed as `Animated` component. You can animate the header by passing `Animated.Value` from your `ScrollView` or `FlatList` to the header.
29
+
Since react-navigation's header is designed as `Animated` component, you can animate the header by passing `Animated.Value` from your `ScrollView` or `FlatList` to the header.
Copy file name to clipboardExpand all lines: docs/compatibility.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ Due to the dynamic API of React Navigation 5, some functionality possible with t
72
72
- It doesn't wrap navigator's props or options. This basically means that the options you're passing to a navigator might be a bit different as per breaking changes in the navigators.
73
73
- Legacy deep link support by defining `path` in route configuration is not supported.
74
74
- Navigating to a navigator doesn't work the same, i.e. we can't navigate to a screen in a navigator that's not rendered already, and params aren't merged to all child screens.
75
-
- Some methods such as the legacy `reset` method which take an array of actions isn't supported anymore. Unsupported methods will throw errors when using them as well as give type errors if we're using TypeScript.
75
+
- Some methods such as the legacy `reset` method which take an array of actions aren't supported anymore. Unsupported methods will throw errors when using them as well as give type errors if we're using TypeScript.
76
76
- It doesn't export `createAppContainer`, so you'll need to use the v5 API for the container (`NavigationNativeContainer`). This also means any features supported by the container need to be migrated to the new API.
77
77
- If you're using advanced APIs like Redux integration, custom routers and actions etc., they aren't supported.
Copy file name to clipboardExpand all lines: docs/connecting-navigation-prop.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Access the navigation prop from any component
6
6
7
7
[`useNavigation`](use-navigation.md) is a a hook which gives access to the `navigation` object. It's useful when you cannot pass the `navigation` prop into the component directly, or don't want to pass it in case of a deeply nested child.
8
8
9
-
An ordinary component that is not a screen component will not receive the navigation prop automatically. for example in this `MyBackButton` component:
9
+
An ordinary component that is not a screen component will not receive the navigation prop automatically. For example in this `MyBackButton` component:
10
10
11
11
```js
12
12
import*asReactfrom'react';
@@ -27,7 +27,7 @@ export function MyBackButton({ navigation }) {
27
27
28
28
To resolve this exception, you could pass the `navigation` prop in to `MyBackButton` when you render it from a screen, like so: `<MyBackButton navigation={props.navigation} />`.
29
29
30
-
Alternatively, you can use the `useNavigation` to provide the `navigation`automatically automatically (through React context, if you're curious).
30
+
Alternatively, you can use the `useNavigation` to provide the `navigation`prop automatically (through React context, if you're curious).
Copy file name to clipboardExpand all lines: docs/custom-navigators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ The hook returns an object with following properties:
43
43
44
44
-`state` - The navigation state for the navigator. The component can take this state and decide how to render it.
45
45
-`navigation` - The navigation object containing various helper methods for the navigator to manipulate the navigation state. This isn't the same as the navigation object for the screen and includes some helpers such as `emit` to emit events to the screens.
46
-
-`descriptors` - This is an object containing descriptors for each route with the route keys as it's properties. The descriptor for a route can be accessed by `descriptors[route.key]`. Each descriptor contains the following properties:
46
+
-`descriptors` - This is an object containing descriptors for each route with the route keys as its properties. The descriptor for a route can be accessed by `descriptors[route.key]`. Each descriptor contains the following properties:
47
47
48
48
-`navigation` - The navigation prop for the screen. You don't need to pass this to the screen manually. But it's useful if we're rendering components outside the screen that need to receive `navigation` prop as well, such as a header component.
49
49
-`options` - A getter which returns the options such as `title` for the screen if they are specified.
Copy file name to clipboardExpand all lines: docs/deep-linking.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,11 +133,11 @@ This will result in something like:
133
133
}
134
134
```
135
135
136
-
If this doesn't satisfy your use case, The hook also accepts a `getStateFromPath` option where you can provide a custom function to convert the URL to a valid state object for more advanced use cases.
136
+
If this doesn't satisfy your use case, the hook also accepts a `getStateFromPath` option where you can provide a custom function to convert the URL to a valid state object for more advanced use cases.
137
137
138
138
## Set up with Expo projects
139
139
140
-
First, you will want to specify a url scheme for your app. This corresponds to the string before `://` in a url, so if your scheme is `mychat` then a link to your app would be `mychat://`. The scheme only applies to standalone apps and you need to re-build the standalone app for the change to take effect. In the Expo client app you can deep link using `exp://ADDRESS:PORT` where `ADDRESS` is often `127.0.0.1` and `PORT` is often `19000` - the URL is printed when you run `expo start`. If you want to test with your custom scheme you will need to run `expo build:ios -t simulator` or `expo build:android` and install the resulting binaries in your emulators. You can register for a scheme in your `app.json` by adding a string under the scheme key:
140
+
First, you will want to specify a URL scheme for your app. This corresponds to the string before `://` in a URL, so if your scheme is `mychat` then a link to your app would be `mychat://`. The scheme only applies to standalone apps and you need to re-build the standalone app for the change to take effect. In the Expo client app you can deep link using `exp://ADDRESS:PORT` where `ADDRESS` is often `127.0.0.1` and `PORT` is often `19000` - the URL is printed when you run `expo start`. If you want to test with your custom scheme you will need to run `expo build:ios -t simulator` or `expo build:android` and install the resulting binaries in your emulators. You can register for a scheme in your `app.json` by adding a string under the scheme key:
141
141
142
142
```json
143
143
{
@@ -238,7 +238,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
238
238
}
239
239
```
240
240
241
-
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the url scheme to your desired url scheme.
241
+
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the URL scheme to your desired URL scheme.
242
242
243
243

244
244
@@ -260,7 +260,7 @@ To test the URI on a real device, open Safari and type `mychat://chat/jane`.
260
260
261
261
To configure the external linking in Android, you can create a new intent in the manifest.
262
262
263
-
In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adjustments:
263
+
In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these following adjustments:
264
264
265
265
1. Set `launchMode` of `MainActivity` to `singleTask` in order to receive intent on existing `MainActivity`. It is useful if you want to perform navigation using deep link you have been registered - [details](http://developer.android.com/training/app-indexing/deep-linking.html#adding-filters)
266
266
2. Add the new `intent-filter` inside the `MainActivity` entry with a `VIEW` type action:
Copy file name to clipboardExpand all lines: website/versioned_docs/version-1.x/deep-linking.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
116
116
}
117
117
```
118
118
119
-
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the url scheme to your desired url scheme.
119
+
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the URL scheme to your desired URL scheme.
120
120
121
121

Copy file name to clipboardExpand all lines: website/versioned_docs/version-2.x/community-libraries-and-navigators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The library implements a custom navigator called `FluidNavigator` that makes all
25
25
26
26
react-navigation-collapsible is a library and a `Higher Order Component` that adjusts your navigationOptions and makes your screen header collapsible.
27
27
28
-
Since react-navigation's header is designed as `Animated` component. You can animate the header by passing `Animated.Value` from your `ScrollView` or `FlatList` to the header.
28
+
Since react-navigation's header is designed as `Animated` component, you can animate the header by passing `Animated.Value` from your `ScrollView` or `FlatList` to the header.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-2.x/deep-linking.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
116
116
}
117
117
```
118
118
119
-
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the url scheme to your desired url scheme.
119
+
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the URL scheme to your desired URL scheme.
120
120
121
121

Copy file name to clipboardExpand all lines: website/versioned_docs/version-3.x/deep-linking.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
145
145
}
146
146
```
147
147
148
-
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the url scheme to your desired url scheme.
148
+
In Xcode, open the project at `SimpleApp/ios/SimpleApp.xcodeproj`. Select the project in sidebar and navigate to the info tab. Scroll down to "URL Types" and add one. In the new URL type, set the identifier and the URL scheme to your desired URL scheme.
149
149
150
150

0 commit comments