masterAvatarr
masterAvatarr

Reputation: 123

React native Lightbox is not zooming

I'm covering my Images with lightbox to show up in fullscreen. It does not gives error on android but when I open it in lightbox image is still same.

Imports

import { TouchableOpacity, Image} from 'react-native';
import Lightbox from 'react-native-lightbox-v2';
//also tryed import Lightbox from 'react-native-lightbox';

in render

<Lightbox>
                <Image
                  source={{uri: this.props.mediaUrl}}
                  style={{
                    width: 300,
                    height: 150,
                    resizeMode: 'cover', 
                    borderRadius: 18,
                    marginHorizontal:20,alignItems:'center'
                  }}
                />
 </Lightbox>

Result

In render

Onpress in Lightbox

What should I change. Thank you

Upvotes: 0

Views: 668

Answers (0)

Related Questions