Try this: import React, { useCallback } from “react”; import { Linking } from “react-native”; OpenWEB = () => { Linking. openURL(url); }; const App = () => { return <View onPress={() => OpenWeb}>OPEN YOUR WEB</View>; };
Read moreHow manually link react-native?
This can be done either using react-native link <dependency name> or manually if you have super powers. In case of Android, the linking is as simple as adding the dependency project’s path to settings. gradle and adding an implementation <dependency package> in build .
Read moreHow do I add a hyperlink in react-native?
Here are the few steps to link your libraries that contain native code
Read more