我正在尝试使用类似示例中的应用内提供的HTML
文件创建视图,但是如果我想在Testflight
中对其进行测试,则该视图为空:
import React from 'react';
import { WebView } from 'react-native-webview';
在渲染中:
<WebView
useWebKit={true}
source={ require('../../assets/platillo/platillo.html') }
originWhitelist={["*"]}
style={{
width: windowWidth,height: windowHeight,backgroundColor: "#ccc",}}
/>
可以帮我吗?