Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React本机webview静态HTML未在模式内显示_Html_React Native_React Native Webview_React Native Modal - Fatal编程技术网

React本机webview静态HTML未在模式内显示

React本机webview静态HTML未在模式内显示,html,react-native,react-native-webview,react-native-modal,Html,React Native,React Native Webview,React Native Modal,我试图在模态视图中呈现HTML字符串 <Modal animationType="fade" transparent={true} visible={this.state.modalVisible} onRequestClose={() => {}}> {this.safeZoneHeader()} <View style={{flex:1 ,backgroundColor: 'rgba(0,0,0,0.6)',alignItems:'center'}}>

我试图在模态视图中呈现HTML字符串

<Modal animationType="fade" transparent={true} visible={this.state.modalVisible} onRequestClose={() => {}}>
  {this.safeZoneHeader()}
  <View style={{flex:1 ,backgroundColor: 'rgba(0,0,0,0.6)',alignItems:'center'}}>

  <View style={{height:'86.4%',width:'94%',marginTop:'3%',alignSelf:'center',marginLeft:'1.3%',marginRight:'1.3%', backgroundColor: '#fff',borderRadius: 20 ,elevation:5,justifyContent: 'flex-start',marginBottom:'3%'}}>
    <ScrollView>
      <View style={{flex:1,marginTop:24,backgroundColor:'#fff',alignSelf:'center',marginLeft:24,marginRight:24}}>

      </View>
      <View style={{flex:1,marginTop:10,backgroundColor:'#fff',alignSelf:'center',marginLeft:24,marginRight:24}}>                          
        <WebView
            originWhitelist={['*']}
            source={{html:this.state.postItemData.Description}}
        />
        </View>
    </ScrollView>
  </View>
  <TouchableOpacity style={{height:48,width:'94%',alignItems:'center',justifyContent:'center',backgroundColor: 'rgba(255,255,255,0.2)',marginBottom:3}} 
                    onPress={()=>this.CloseModalandContinue()} >
    <Text style={{fontSize:14,fontFamily:Fonts.RobotoMedium,color:'#fff'}}>
      {this.props.labels.labelList.LanguageList.closeModalToViewPosts}
    </Text>

  </TouchableOpacity>

 </View>
 {this.safeZoneFooter()}
</Modal>
{}>
{this.safeZoneHeader()}
this.CloseModalandContinue()}>
{this.props.labels.labelList.LanguageList.closeModalToViewPosts}
{this.safeZoneFooter()}
但它并没有显示在模态内部。有人知道这个问题的解决方案吗?非常感谢。 react native webView-5.12.0
react native-0.57.8

如果删除模式,是否会显示?@Lenoarod nope。我试过:(