react native image path in vriable
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} />