Linking to app

createStackNavigator(
    {
      App: { screen: Mybet },
      Login: { 
        screen: Results,
        path:'test/:aa'
       }
    },
    {
      initialRouteName: 'App',
    }
  )

android:新加intent, lunchmode

<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustPan"
        android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="jim" />
        </intent-filter>
      </activity>

ios: 在xcode中配制url types

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
  return [RCTLinkingManager application:application openURL:url
                      sourceApplication:sourceApplication annotation:annotation];
}
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • ¥开启¥ 【iAPP实现进入界面执行逐一显】 〖2017-08-25 15:22:14〗 《//首先开一个线程,因...
    小菜c阅读 11,805评论 0 17
  • 1993年,爸爸从稽查局辞工,举家迁到九连。 当年,爸爸三十二岁,妈妈三十一岁,哥哥四岁,我两岁。 如今的小镇是当...
    塔塔妹阅读 1,787评论 1 5
  • 女朋友离开了这座城市,这盆茉莉花是她留下的,今天早上下雨了,就把花搬到外面淋淋雨。最美的不是下雨天,而是和你一起躲...
    青青子衿1993阅读 4,153评论 0 0
  • 前言 在项目中做移动端页面,发现IOS 的光标大小很大,和安卓的完全不一样,思考怎么调整大小,搜索之后发现,里面挺...
    八妹sss阅读 11,162评论 0 0
  • 思念终抵不过时光 让美好藏于心中 不管有欲无欲 也是慈悲 它用一切成就于我 如果山河还在我会用一生去追寻 原来一切...
    李昌瑿阅读 1,807评论 0 0