Skip to content

Commit d01603b

Browse files
committed
Remove note about prefixes since it's optional now
1 parent 65e4c02 commit d01603b

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

versioned_docs/version-8.x/configuring-links.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ const linking = {
121121

122122
If not specified, it defaults to `['*']`, which will match any host starting with `http`, `https`, and custom schemes such as `myapp://`. You only need to specify `prefixes` if you're using **Expo Go** or want to restrict the URLs your app handles.
123123

124-
Note that the `prefixes` option has no effect on Web. The host & domain names will be automatically determined from the Website URL in the browser.
124+
:::info
125+
126+
The `prefixes` option has no effect on Web. The host & domain names will be automatically determined from the Website URL in the browser.
127+
128+
:::
125129

126130
### Multiple subdomains​
127131

versioned_docs/version-8.x/static-configuration.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,6 @@ const RootStack = createNativeStackNavigator({
186186

187187
The `linking` object supports the same configuration options described in [Configuring links](configuring-links.md) such as `parse`, `stringify` and `exact`.
188188

189-
To make deep links work on native apps, you also need to [configure your app](deep-linking.md) and pass `prefixes` to the navigation component returned by [`createStaticNavigation`](static-configuration.md#createstaticnavigation):
190-
191-
```js
192-
const Navigation = createStaticNavigation(RootStack);
193-
194-
const linking = {
195-
prefixes: ['https://example.com', 'example://'],
196-
};
197-
198-
function App() {
199-
return <Navigation linking={linking} />;
200-
}
201-
```
202-
203189
#### `if`
204190

205191
Callback to determine whether the screen should be rendered or not. It doesn't receive any arguments. This can be useful for conditional rendering of screens, e.g. - if you want to render a different screen for logged in users.

0 commit comments

Comments
 (0)