1// Need to have all variable files already set with require
2
3const images = {
4 profile: {
5 profile: require('./profile/profile.png'),
6 comments: require('./profile/comments.png'),
7 },
8 image1: require('./image1.jpg'),
9 image2: require('./image2.jpg'),
10};
11
12return (
13 <View>
14 {
15 props.profile ? <Image source={images.profile.profile} /> : <Image source={images.profile.comments} />
16 }
17 </View>
18)
19
20
21