react-native-lightbox icon indicating copy to clipboard operation
react-native-lightbox copied to clipboard

Disable dismiss efect

Open luisfuertes opened this issue 8 years ago • 6 comments

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

luisfuertes avatar May 17 '16 15:05 luisfuertes

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

tsyirvo avatar Jul 24 '16 13:07 tsyirvo

+1

avdept avatar Jun 22 '17 13:06 avdept

+1

acomito avatar Aug 26 '17 15:08 acomito

Has anyone found a solution for this yet?

RWOverdijk avatar Mar 02 '18 15:03 RWOverdijk

set this

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

harrydema avatar May 03 '18 19:05 harrydema

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

RWOverdijk avatar May 04 '18 13:05 RWOverdijk