ejecuto mi con webview para ver html local y no se ejecuta
sale error
import * as React from 'react';
import { WebView } from 'react-native-webview';
import { StyleSheet } from 'react-native';
import Constants from 'expo-constants';
export default function App() {
const localFile = { uri: 'file:///asset/index.html' }
return (
<WebView
style={styles.container}
source={
localFile
}
/>
);
}
const styles = StyleSheet.create({
container: {
flex: 1, height:200 , width:200,
marginTop: Constants.statusBarHeight,
},
});