谁能告诉我为什么会出现此错误:
我的代码是:
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);
我的应用程序在模拟器中运行良好,但在命令行中出现错误......这张图片中的错误:
最佳答案
浏览器默认尝试在 favicon.ico
路径中获取 favicon。如果您的 WebView 按预期呈现,我认为应该没问题。
关于javascript - react native android错误404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40817535/