React-native: Static Image Assets not picking up @2x and @3x images

Created on 11 Aug 2016  路  4Comments  路  Source: facebook/react-native

Hello!

Is there anything I have to do to get the @2x, @3x images to start working? I have an image component that is using this as the source require('../img/logo.png') and in my img folder I have logo.png, [email protected], and [email protected], but it isn't getting the larger images. Is there a step I"m missing here?
And just to clarify they're currently just in my js/img folder, not in xcode or android studio.

Thanks

Locked

Most helpful comment

@tonyrzhang , what was the solution?

All 4 comments

Fixed the issue on my end.

@tonyrzhang is it expected to automatically work then?

@tonyrzhang What was the solution for you?

@tonyrzhang , what was the solution?

Was this page helpful?
0 / 5 - 0 ratings