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.

SHARE My app close when I press the screen in the moment between Pressing the button that execute Share.share and the native modal appears (ONLY ANDROID))

See original GitHub issue

The app is being minimized instead of open the modal. That only happen if I press in any place of the screen in the lapse between the moment I press the button to open the modal and the moment when the modal appears. If I don’t click in any other place at all, this work perfectly. This is only happening on ANDROID, in ios works fine

Steps to reproduce

  1. Write a button that execute Share.open in the onPress event
  2. Run the app
  3. Press the button faster and many times

Expected behaviour

The modal should appear

Actual behaviour

The app is being closed without errors

Environment

  • React Native version: 0.61.5
  • React Native platform + platform version: All android devices

This same issue is happening also in the library react-native-share . I reported there too https://github.com/react-native-community/react-native-share/issues/685

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hramoscommented, Jan 31, 2020

Can you provide an example using Snack? We find that issues that do not provide a Snack are less likely to get investigated.

1reaction
felirecommented, Jan 30, 2020

@hramos I only use Share as the docs says. I have a button and in the onPress I call a function like this one:

handlePress = () => {
    Share.share({
        title: 'bla',
       message: 'bla'
      })
}

There is a conflict with my project and this library that reproduces the error I described. But really I don’t know which is the reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Close react native modal by clicking on overlay?
This is basically using a TouchableOpacity in the whole screen to get when the user clicks to close the modal. The TouchableWithoutFeedback is...
Read more >
Quora: the knowledge platform - Apps on Google Play
Quora is a Q&A platform that empowers people to share and grow the world's knowledge. People come to Quora to ask questions about...
Read more >
Python and PyQt: Building a GUI Desktop Calculator
For this tutorial, you'll create a calculator app with Python and PyQt. This short project will help you grasp the fundamentals and get...
Read more >
react-native-modal - npm
Start using react-native-modal in your project by running `npm i ... Inside the modal there is another button that, when pressed, ...
Read more >
Share content during an Adobe Connect meeting
Use pods to share screen, documents, whiteboard, files, and more in your Adobe Connect meeting room and virtual sessions.
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