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 issueThe 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
- Write a button that execute Share.open in the onPress event
- Run the app
- 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:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you provide an example using Snack? We find that issues that do not provide a Snack are less likely to get investigated.
@hramos I only use Share as the docs says. I have a button and in the onPress I call a function like this one:
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.