Answers for "react native image path in vriable"

0

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} />
Posted by: Guest on September-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language