Incomming Links

你可以检测从外部 URL 启动应用程序的时间。

 placeholderCopycomponentDidMount() {
  const url = Linking.getInitialURL()
  .then((url) => {
    if (url) {
      console.log('Initial url is: ' + url)
    }
  }).catch(err => console.error('An error occurred ', err))
}

要在 iOS 链接 RCTLinking 上启用此项目

要在 Android 上启用此功能,请按以下步骤操作