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
feat: default to web URLs for hashtag/mention links and remove webFallback prop
Since `webFallback` has been disabled on iOS since the beginning and Android has potential upcoming
changes that could require disabling there too, `webFallback` has been removed and services are
instead linked to the web versions by default. The `useNativeSchemes` prop can be used to default
to native URL schemes instead. But the recommended approach is to use the `onPress` and/or
`matchers` props to customize behavior to your liking for hastag and mention links.
BREAKING CHANGE: The webFallback prop has been removed and service links for hashtags/mentions
default to web URLs. Use the `useNativeSchemes` to link directly to apps instead or use
`onPress`/`onLongPress`/`matchers` to customize behavior.
| boolean | No |Android: `true`, iOS: `false`| Whether to link to web versions of services (e.g. Facebook, Instagram, Twitter) for hashtag and mention links when users don't have the respective app installed. |
| boolean | No |`false`| Whether to use native app schemes (e.g. `twitter://`) rather than web URLs when linking to services for hashtag and mention links. |
332
332
333
-
_Note:_Requires `LSApplicationQueriesSchemes`on iOS so it is disabled by default on iOS. See [Linking docs](https://reactnative.dev/docs/linking.html)for more info.
333
+
_Note:_Prior to v4, the `webFallback` prop enabled a check to see whether the user had a particular app installed using `Linking.canOpenUrl`, falling back to a web link if not. Due to permissions requirements on iOS and upcoming changes on Android, this feature was removed and instead, services will be linked to the web versions by default. Use the `useNativeSchemes` prop to enable native app linking or use the `onPress` and/or `matchers` props to provide your own custom logic for linking and opening apps.
0 commit comments