Search code examples
react-native

How to open an external app from react native app?


Is it possible to open an external app when touching a button from my react native app? Specifically, i want to open Whatsapp when I touch a button. How can I do this?

Thanks!


Solution

  • You have to use React Native Linking API:

    Linking.openURL('whatsapp://app')
    

    Also, have a look at How can I integrate WhatsApp into my app