React Native Image Ścieżka obrazowa w Vrible


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