How to Show Local Web Code on the iOS side in React Native
I try many things but don’t work anything.
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
Platform-Specific Code : https://reactnative.dev/docs/platform-specific-code
React Native WebView: A complete guide : https://blog.logrocket.com/react-native-webview-a-complete-guide/
First you have to create a new file in your project directory called LocalWebPage.html and add some HTML code to it
Next you have to create a new component in your project directory called LocalWebPage.js
finally you can use the LocalWebPage component in your app
Your post needs to be clarified. Because it is not obvious your need is serving an HTML string or an HTML file. By the way, for both I’ll suggest you the following: