browserreact-nativereact-android

React-Native Interact with website like click button, select checkbox etc. on webpage


I want to open website in React-Native app with below requirements:

  1. Open website from app
  2. Select appropriate record from list
  3. Click on Edit button
  4. Edit appropriate details
  5. Click on Save button

Above is requirement to provide user better experience from app rather than going to website and do multiple clicks. How to achieve above in React-Native?

PS: We used to use WebBrowserControl in desktop windows app for above requirement and want to replicate same in React-Native android app.


Solution

  • You have to do the same things what you have done in the web part. Just you have to inject the JavaScript code to a webview. Webview will help you to open the website and then you have to inject the JavaScript code based on certain conditions and you can achieve the same as web. More you can read here :-