首页 > 解决方案 > 我的 iOS 应用程序中带有 WebView 的 HTML 视图为空

问题描述

我正在尝试使用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",
     }}
/>

你能帮我吗?

标签: htmliosreactjswebviewnative

解决方案


推荐阅读