Skip to content

Image onError logs undefined on Android #19073

Description

@connorwaslo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions