Reagieren Sie den nativen Bildpfad in vrierbar


let icon = require('image!my-icon');+


// GOOD
<Image source={require('image!my-icon')} />

// GOOD
var icon = this.props.active ? require('image!my-icon-active') : require('image!my-icon-inactive');
<Image source={icon} />
Singh99