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
To test the intent handling in Android (Expo client app ), run the following:
@@ -87,7 +86,7 @@ Read the [Expo linking guide](https://docs.expo.io/versions/latest/guides/linkin
87
86
88
87
### URI Prefix
89
88
90
-
Next, let's configure our navigation container to extract the path from the app's incoming URI.
89
+
Next, let's configure our navigation container to extract the path from the app's incoming URI.
91
90
92
91
```js
93
92
constSimpleApp=createStackNavigator({...});
@@ -139,6 +138,7 @@ To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
139
138
To configure the external linking in Android, you can create a new intent in the manifest.
140
139
141
140
In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adjustments:
141
+
142
142
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)
143
143
2. Add the new `intent-filter` inside the `MainActivity` entry with a `VIEW` type action:
144
144
@@ -154,7 +154,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
We want paths like `chat/Eric` to link to a "Chat" screen with the `user` passed as a param. Let's re-configure our chat screen with a `path` that tells the router what relative path to match against, and what params to extract. This path spec would be `chat/:user`.
If we have nested navigators, we need to provide each parent screen with a `path`. All the paths will be concatenated and can also be an empty string. This path spec would be `friends/chat/:user`.
@@ -168,6 +173,7 @@ To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
168
173
To configure the external linking in Android, you can create a new intent in the manifest.
169
174
170
175
In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adjustments:
176
+
171
177
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)
172
178
2. Add the new `intent-filter` inside the `MainActivity` entry with a `VIEW` type action:
173
179
@@ -183,7 +189,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
0 commit comments