iframe in react native 1

iframe in react native

import { WebView } from 'react-native-webview';
'}} style={{marginTop: 20}} />

Here is what the above code is Doing:
1. We are importing the WebView component from react-native-webview.
2. We are using the WebView component to render the HTML code.
3. We are passing the HTML code as a prop to the WebView component.
4. We are using the style prop to set the marginTop to 20.

Similar Posts