繁体   English   中英

通过在 React Native App 上的链接将按钮添加到打开的应用程序

[英]Add button to opened app via Linking on React Native App

我有一个关于反应原生应用程序开发的案例:

  • 该应用程序打开一个外部应用程序(例如 Facebook 应用程序)
  • 当 Facebook 应用程序打开时,我需要在 Facebook 应用程序中添加一个浮动按钮或其他任何东西,它将用于返回我的应用程序
  • 单击该按钮时,它将从我的本机应用程序中触发 function

可能吗?

What I tried so far is trying to open the app inside a View with WebView and the button that I wanted, but the WebView opens www.facebook.com instead of Facebook App installed.

您可以使用此模块打开其他本机应用程序。

https://github.com/FiberJW/react-native-app-link

but as you wanted to place a button that's not possible因为如果您打开其他应用程序then control is no longer available in your app to handle that buttonWebview will always open a web URL, not a native app.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM