react-native-lightbox
react-native-lightbox copied to clipboard
Disable dismiss efect
I have this code:
<Lightbox
navigator={this.props.navigator}
activeProps={
{
style: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
},
resizeMode: 'contain'
}
}
>
<Image
source={require('../Resources/centro.png')}
resizeMode= {Image.resizeMode.cover}
style={{height: 120, flex: 1}}
/>
</Lightbox>
The problem is the effect when image dismiss. The effect run perfect but i have diferent "resize mode" in full screen and in normal mode. How can i disable the effect? The effect image istn similar in size and position that the real image in resizeMode 'contain'.
Edit: I like more the effect image than the real image on "Image" item. How can i reproduce it?
Some screens for explain better:
Image during effect (overlay navBar) :
Final Image on cover mode:
I'm having the same issue while dismissing the lightbox. Can we disable all animations for opening and closing the lightbox ?
+1
+1
Has anyone found a solution for this yet?
set this
springConfig={{tension: 900000, friction: 900000}}
Thanks @harrydema I'll give that a go and report back.