简体   繁体   中英

Add button to opened app via Linking on React Native App

I have a case on react native app development:

  • The app opens an external app (eg. Facebook App)
  • When Facebook App was opened, I need to add a floating button or whatever to Facebook App, it will be used for back to my application
  • When that button clicked, it will trigger a function from my react native app

Is it possible?

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.

You can use this module to open other native apps.

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

but as you wanted to place a button that's not possible because if you open other apps then control is no longer available in your app to handle that button in the app which is open now, Webview will always open a web URL, not a native app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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