简体   繁体   中英

react-native android error 404

can anyone tell me why im getting this error :

my code is :

import React, { Component } from 'react';
 import {
 AppRegistry,
 StyleSheet,
 Text,
 View,
 TextInput,
 Image,
 LinkingIOS,
 Navigator,
 WebView

} from 'react-native';

export default class  ReactNativeReactWebview extends Component {
  render() {
    return (

    <WebView 

      source={require('./index.html')}
      javaScriptEnabled={true}
    />


);
 }
}
AppRegistry.registerComponent('reactAndroid',()=>ReactNativeReactWebview);

my app run good in emulator but get error in command line ....the error in this pic :

my error 404

Browsers try to get the favicon by default in the favicon.ico path. If your WebView is rendering as expected, I'd say it should be OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM