Closed ethanloh95 closed 4 years ago
I found the solution
use renderImage to display the image
I found the solution
use renderImage to display the image
can u please quote an example, how did u achieve this?
@devanshsadhotra25 @XELoh can you example for me?
it is a sample code...
`<ImageViewer index={this.state.imageViewerIndex} imageUrls={this.state.imageDownload1} enablePreload={true} renderHeader={() => ( <TouchableOpacity onPress={() => this.setState({ isShowImageZoom : false })} style={{ alignItem: 'right',backgroundColor:'#1111' }}
<Text style={{ color: '#F7F7FA', fontSize: 15, fontFamily: 'font' }}>X )}
loadingRender={() => (
<ActivityIndicator
color={'#FFA800'}
size="large"
style={{
height: Dimensions.get('window').height,
alignItems: 'center',
justifyContent: 'center',
}}
/>
)}
renderImage={(props) => (
<Image
style={{
width: 400,
height: 400,
alignItems: 'center',
alignContent: 'center',
justifyContent: 'center',
}}
resizeMode="contain"
source={{uri: `data:image/gif;base64,${this.state.imageDownload}`}}
/>
)}
/>`
have you passed height width white creating this array this.state.imageDownload1 ??
Exist on android and ios phone
Can someone give a solution, thanks