【发布时间】:2019-04-19 14:24:33
【问题描述】:
我有一个实现 react-navigation 的简单应用
const prefix = Platform.OS == 'android' ? 'http://test.in/' : 'http://';
const StackNav = createStackNavigator({
Home: { screen: MainApp },
Detail: {
screen: ContentDetail,
path: 'content/:contentId',
},
NewsDetail: NewsDetail
});
const App = () => <StackNav uriPrefix={prefix} />;
但是当我尝试使用外部链接导航到详细信息屏幕时,它无法导航。
试过
adb shell am start -W -a android.intent.action.VIEW -d "http://www.test.in/content/114" com.test
用于从命令提示符导航
【问题讨论】:
标签: react-native react-navigation deep-linking