How do I link my react native website to my app?

Viewed 22

I'm creating a banking platform and I would like to link the react native website to the RN app so that all of the contents that are stored on the website will be shown on the app and vice versa. I'm not sure about the dependencies/code I will need to do it, so I don't have any sample code. Can someone please show me how to link my app to my website?

1 Answers

There are many ways you can achieve this. Here are two of them -

  1. Create APIs for your website. In your app, use these APIs to fetch the content of your website. This method will require some extra work.
  2. Use WebView to display your website directly inside your app. In this case, your website should be mobile-friendly for a better user experience. Here's one popular webview package for React Native.
Related