react native image path in vriable

Solutions on MaxInterview for react native image path in vriable by the best coders in the world

showing results for - "react native image path in vriable"
Jasmine
19 Jan 2017
1
2let icon = require('image!my-icon');+
3
4
5// GOOD
6<Image source={require('image!my-icon')} />
7
8// GOOD
9var icon = this.props.active ? require('image!my-icon-active') : require('image!my-icon-inactive');
10<Image source={icon} />
11
similar questions
queries leading to this page
react native image path in vriable