Closed
Description
We need a new webpack image loader that can generate RN source objects from assets on the file system:
require('./image.png');
// => { uri: '...', width: 40, height: 40 }
It should also support RN's syntax for resolution-specific images:
image.png
[email protected]
[email protected]
...by adding extra data to the object so that Image
can choose the most appropriate asset:
require('./image.png');
// => { uri: '...', uri@2x: '...', uri@3x: '...', width: 40, height: 40 }