Closed
Description
- I have reviewed the documentation
- I have searched existing issues
- I am using the latest React Native version
Environment
OS: Windows 10
Node: 8.2.1
Yarn: 1.3.2
npm: 5.8.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.1.0.0 AI-173.4670197
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.0 => 0.55.0
Steps to Reproduce
<ImageBackground style={{ flex: 1 }}
resizeMode='stretch'
onError={({ nativeEvent: {error} }) => console.log('Error:', error) }
source={require('../../res/images/img.png')}>
{/* Children */}
</ImageBackground>
Expected Behavior
Logging error variable should print the reason that the Image is not being loaded.
Actual Behavior
error is undefined.