这是我的组件代码..
render() {
return (
<WebView
source={{uri: 'http://qq.com'}}
style={{marginTop: 20}}
/>
);
}
Run Code Online (Sandbox Code Playgroud)
这是我的"NSAppTransportSecurity"的info.plist代码
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>qq.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
Run Code Online (Sandbox Code Playgroud)
我跑的时候
react-native run-ios
Run Code Online (Sandbox Code Playgroud)
模拟器显示错误
怎么解决?(使用RN 0.40版本)
| 归档时间: |
|
| 查看次数: |
5327 次 |
| 最近记录: |