fares alkhwaja fares alkhwaja - 11 days ago 7
React JSX Question

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

Answer

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.