question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable dismiss efect

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

13reactions
harrydemacommented, May 3, 2018

set this

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

0reactions
RWOverdijkcommented, May 4, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable the interactive dismissal of presented view controller
Since the iOS 13, UIViewController contains a new property called isModalInPresentation which must be set to true to prevent the interactive dismissal.
Read more >
How to disable auto dismiss for Action Center on Windows 10
Disable auto dismiss Action Center. You need admin rights to edit the windows registry. Use the Win+R keyboard to open the run box....
Read more >
How to disable interactive swipe to dismiss for view controllers
How to disable interactive swipe to dismiss for view controllers ... where the new view controller can be dismissed by swiping downwards.
Read more >
Side-effects in Compose - Android Developers
snackbar will automatically dismiss. This coroutine will cancel whenever // `state.hasError` is false, and only start when `state.hasError` is true
Read more >
Dismissing SwiftUI Views - Use Your Loaf
SwiftUI has a less clumsy mechanism for dismissing presented views in iOS 15. ... Modal Cart view with cancel and save toolbar buttons....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found