React native 与世博会的深度对接
我想知道如何开始使用世博会提供的React native 与世博会的深度对接,react-native,react-navigation,deep-linking,expo,React Native,React Navigation,Deep Linking,Expo,我想知道如何开始使用世博会提供的链接。我已经阅读了100次文档,但仍然无法使其正常工作。当下面的代码运行时,我会将其作为URL: 创建的url:exp://192.168.11.2:19000很好 已创建url 2:exp://192.168.11.2:19000/--/screens/Chatbot.js hello=world&bye=now 什么是 如何在项目中指定指向某个组件的路径,以便该组件可以找到它?所有提示都非常感谢。请不要将我链接到我已经阅读过的关于深度链接的react nati
链接。我已经阅读了100次文档,但仍然无法使其正常工作。当下面的代码运行时,我会将其作为URL:
创建的url:exp://192.168.11.2:19000
很好
已创建url 2:exp://192.168.11.2:19000/--/screens/Chatbot.js hello=world&bye=now
什么是
如何在项目中指定指向某个组件的路径,以便该组件可以找到它?所有提示都非常感谢。请不要将我链接到我已经阅读过的关于深度链接的react natives文档和expos文档
componentDidMount() {
Linking.addEventListener('url', this.handleDeepLink);
let baseUrl = Expo.Linking.makeUrl();
console.log('created url: ' + baseUrl);
let chatbotUrl = Expo.Linking.makeUrl('screens/Chatbot.js', { hello:
'world', goodbye: 'now' });
console.log('created url 2 : ' +chatbotUrl);
setTimeout(() => Linking.openURL(chatbotUrl), 2000);
}