vovkasm / react-native-web-image

An image component for react-native with persistent disk and memory caching.
MIT License
146 stars 25 forks source link

the image does not stretch over the entire width of the screen #16

Open rogoja opened 6 years ago

rogoja commented 6 years ago

the image does not stretch over the entire width of the screen.

my component:

return (
             <CachedImage style={styles.profileAvatarImg} source={{uri: userInfo.avatar}}/>
)

StyleSheet:

profileImageImg: {
        width: Dimensions.get('window').width,
}

or

profileImageImg: {
        width: '100%',
}

Indenting left and right appear: Screen_Shot_2017_11_22_at_6_11_33_PM