Skip to content

Commit d36f816

Browse files
committed
Remove documentation for now removed group linking
1 parent becc3af commit d36f816

2 files changed

Lines changed: 0 additions & 60 deletions

File tree

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -266,44 +266,6 @@ In the above example, the following path formats are handled:
266266
- `/user` navigates to the `Profile` screen
267267
- `/feed/:sort` navigates to the `Chat` screen with the param `sort`
268268

269-
In addition, if you are using [`groups`](group.md) in your navigator, you can specify the `linking` property for the group to apply it to all screens in the group. The path specified in the group will be used as a prefix for all screens in the group. For example:
270-
271-
```js
272-
const RootStack = createStackNavigator({
273-
screens: {
274-
Home: {
275-
screen: HomeScreen,
276-
linking: 'home',
277-
},
278-
},
279-
groups: {
280-
// highlight-start
281-
Admin: {
282-
linking: 'admin',
283-
screens: {
284-
Dashboard: {
285-
screen: DashboardScreen,
286-
linking: 'dashboard',
287-
},
288-
Settings: {
289-
screen: SettingsScreen,
290-
linking: 'settings',
291-
},
292-
},
293-
},
294-
// highlight-end
295-
},
296-
});
297-
```
298-
299-
This results in:
300-
301-
- `/home` navigates to the `Home` screen
302-
- `/admin/dashboard` navigates to the `Dashboard` screen
303-
- `/admin/settings` navigates to the `Settings` screen
304-
305-
Any other options specified for the group such as [`parse` and `stringify`](#passing-params) are shallow merged with the options specified for the screens. If the same option is specified in both the group and the screen, the one specified in the screen will take precedence.
306-
307269
### How does automatic path generation work?
308270

309271
When using automatic path generation with `enabled: 'auto'`, the following rules are applied:

versioned_docs/version-8.x/upgrading-from-7.x.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,28 +1141,6 @@ Compared to parse functions, schemas provide a few advantages:
11411141

11421142
See [Configuring links](configuring-links.md#using-standard-schema) and [TypeScript](typescript.md#parse-function-vs-standard-schema) for more details.
11431143

1144-
### Groups now support `linking` option in static configuration
1145-
1146-
The `linking` option can now be specified for groups in static configuration to define nested paths:
1147-
1148-
```js
1149-
const Stack = createStackNavigator({
1150-
groups: {
1151-
Settings: {
1152-
linking: { path: 'settings' },
1153-
screens: {
1154-
UserSettings: 'user',
1155-
AppSettings: 'app',
1156-
},
1157-
},
1158-
},
1159-
});
1160-
```
1161-
1162-
This lets you prefix the paths of the screens in the group with a common prefix, e.g. `settings/` for `settings/user` and `settings/app`.
1163-
1164-
See [Group](group.md) for more details.
1165-
11661144
### Deep linking to screens behind conditional screens is now supported
11671145

11681146
Previously, if a screen was conditionally rendered based on some state (e.g. authentication status), deep linking to that screen wouldn't work since the screen wouldn't exist in the navigator when the app was opened via a deep link.

0 commit comments

Comments
 (0)