如何在 React Native Web Expo 中获取当前页面的完整 url?
How to get the current page's full url in React Native Web Expo?
A url 到我的网站可以是例如custom.mywebsite.com 或 custom2.mywebsite.com。
如何在我的 React Native for Web 应用程序中获取包含 'custom.mywebsite.com' 的当前页面的完整 url?
使用 Expo Linking 您可以通过调用
在应用程序启动时获得完整的 URL
Linking.getInitialURL().then((url) => {
console.log(url);
});
A url 到我的网站可以是例如custom.mywebsite.com 或 custom2.mywebsite.com。 如何在我的 React Native for Web 应用程序中获取包含 'custom.mywebsite.com' 的当前页面的完整 url?
使用 Expo Linking 您可以通过调用
在应用程序启动时获得完整的 URLLinking.getInitialURL().then((url) => {
console.log(url);
});