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: versioned_docs/version-1.x/deep-linking.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Deep linking
4
4
sidebar_label: Deep linking
5
5
---
6
6
7
-
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `mychat://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
7
+
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `example://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
8
8
9
9
## Configuration
10
10
@@ -36,7 +36,7 @@ You need to specify a scheme for your app. You can register for a scheme in your
36
36
```json
37
37
{
38
38
"expo": {
39
-
"scheme": "mychat"
39
+
"scheme": "example"
40
40
}
41
41
}
42
42
```
@@ -90,14 +90,14 @@ Next, let's configure our navigation container to extract the path from the app'
Let's configure the native iOS app to open based on the `mychat://` URI scheme.
100
+
Let's configure the native iOS app to open based on the `example://` URI scheme.
101
101
102
102
In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
103
103
@@ -116,7 +116,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
116
116
117
117
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.
118
118
119
-

119
+

120
120
121
121
Now you can press play in Xcode, or re-build on the command line:
122
122
@@ -127,10 +127,10 @@ react-native run-ios
127
127
To test the URI on the simulator, run the following:
128
128
129
129
```
130
-
xcrun simctl openurl booted mychat://chat/Eric
130
+
xcrun simctl openurl booted example://chat/Eric
131
131
```
132
132
133
-
To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
133
+
To test the URI on a real device, open Safari and type `example://chat/Eric`.
134
134
135
135
### Android
136
136
@@ -153,7 +153,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
Copy file name to clipboardExpand all lines: versioned_docs/version-2.x/deep-linking.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Deep linking
4
4
sidebar_label: Deep linking
5
5
---
6
6
7
-
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `mychat://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
7
+
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `example://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
8
8
9
9
## Configuration
10
10
@@ -36,7 +36,7 @@ You need to specify a scheme for your app. You can register for a scheme in your
36
36
```json
37
37
{
38
38
"expo": {
39
-
"scheme": "mychat"
39
+
"scheme": "example"
40
40
}
41
41
}
42
42
```
@@ -90,14 +90,14 @@ Next, let's configure our navigation container to extract the path from the app'
Let's configure the native iOS app to open based on the `mychat://` URI scheme.
100
+
Let's configure the native iOS app to open based on the `example://` URI scheme.
101
101
102
102
In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
103
103
@@ -116,7 +116,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
116
116
117
117
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.
118
118
119
-

119
+

120
120
121
121
Now you can press play in Xcode, or re-build on the command line:
122
122
@@ -127,10 +127,10 @@ react-native run-ios
127
127
To test the URI on the simulator, run the following:
128
128
129
129
```
130
-
xcrun simctl openurl booted mychat://chat/Eric
130
+
xcrun simctl openurl booted example://chat/Eric
131
131
```
132
132
133
-
To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
133
+
To test the URI on a real device, open Safari and type `example://chat/Eric`.
134
134
135
135
### Android
136
136
@@ -153,7 +153,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
Copy file name to clipboardExpand all lines: versioned_docs/version-3.x/deep-linking.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Deep linking
4
4
sidebar_label: Deep linking
5
5
---
6
6
7
-
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `mychat://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
7
+
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `example://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
8
8
9
9
## Configuration
10
10
@@ -71,7 +71,7 @@ You need to specify a scheme for your app. You can register for a scheme in your
71
71
```json
72
72
{
73
73
"expo": {
74
-
"scheme": "mychat"
74
+
"scheme": "example"
75
75
}
76
76
}
77
77
```
@@ -125,14 +125,14 @@ Next, let's configure our navigation container to extract the path from the app'
Let's configure the native iOS app to open based on the `mychat://` URI scheme.
135
+
Let's configure the native iOS app to open based on the `example://` URI scheme.
136
136
137
137
In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
138
138
@@ -151,7 +151,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
151
151
152
152
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.
153
153
154
-

154
+

155
155
156
156
Now you can press play in Xcode, or re-build on the command line:
157
157
@@ -162,10 +162,10 @@ react-native run-ios
162
162
To test the URI on the simulator, run the following:
163
163
164
164
```
165
-
xcrun simctl openurl booted mychat://chat/Eric
165
+
xcrun simctl openurl booted example://chat/Eric
166
166
```
167
167
168
-
To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
168
+
To test the URI on a real device, open Safari and type `example://chat/Eric`.
169
169
170
170
### Android
171
171
@@ -188,7 +188,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
Copy file name to clipboardExpand all lines: versioned_docs/version-4.x/deep-linking.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Deep linking
4
4
sidebar_label: Deep linking
5
5
---
6
6
7
-
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `mychat://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
7
+
In this guide we will set up our app to handle external URIs. Let's suppose that we want a URI like `example://chat/Eric` to open our app and link straight into a chat screen for some user named "Eric".
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:
69
+
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 `example` then a link to your app would be `example://`. 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:
70
70
71
71
```json
72
72
{
73
73
"expo": {
74
-
"scheme": "mychat"
74
+
"scheme": "example"
75
75
}
76
76
}
77
77
```
@@ -134,14 +134,14 @@ Next, let's configure our navigation container to extract the path from the app'
Let's configure the native iOS app to open based on the `mychat://` URI scheme.
144
+
Let's configure the native iOS app to open based on the `example://` URI scheme.
145
145
146
146
In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
147
147
@@ -159,7 +159,7 @@ In `SimpleApp/ios/SimpleApp/AppDelegate.m`:
159
159
160
160
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.
161
161
162
-

162
+

163
163
164
164
Now you can press play in Xcode, or re-build on the command line:
165
165
@@ -170,10 +170,10 @@ react-native run-ios
170
170
To test the URI on the simulator, run the following:
171
171
172
172
```bash
173
-
xcrun simctl openurl booted mychat://chat/Eric
173
+
xcrun simctl openurl booted example://chat/Eric
174
174
```
175
175
176
-
To test the URI on a real device, open Safari and type `mychat://chat/Eric`.
176
+
To test the URI on a real device, open Safari and type `example://chat/Eric`.
177
177
178
178
### Android
179
179
@@ -196,7 +196,7 @@ In `SimpleApp/android/app/src/main/AndroidManifest.xml`, do these followings adj
0 commit comments