oblador / react-native-lightbox

Images etc in Full Screen Lightbox Popovers for React Native
MIT License
2.82k stars 502 forks source link

Disable dismiss efect #39

Open luisfuertes opened 8 years ago

luisfuertes commented 8 years ago

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) : screen1

Final Image on cover mode: screen2

tsyirvo commented 8 years ago

I'm having the same issue while dismissing the lightbox. Can we disable all animations for opening and closing the lightbox ?

avdept commented 7 years ago

+1

acomito commented 7 years ago

+1

RWOverdijk commented 6 years ago

Has anyone found a solution for this yet?

harrydema commented 6 years ago

set this

springConfig={{tension: 900000, friction: 900000}}

RWOverdijk commented 6 years ago

Thanks @harrydema I'll give that a go and report back.