Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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)) #27890

Closed
felire opened this issue Jan 28, 2020 · 5 comments
Labels
API: Share Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@felire
Copy link

felire commented Jan 28, 2020

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 react-native-share/react-native-share#685

@felire felire added the Bug label Jan 28, 2020
@felire felire changed the title 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)) 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)) Jan 28, 2020
@felire
Copy link
Author

felire commented Jan 28, 2020

The error appear only in one of my apps. Do you have any idea what conflict could be interfering with the correct behaviour of this?

@hramos hramos added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 29, 2020
@hramos
Copy link
Contributor

hramos commented Jan 29, 2020

Can you provide a code example? It'd make it easier to follow what you're reporting here.

@felire
Copy link
Author

felire commented 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.

@hramos hramos added the Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. label Jan 31, 2020
@hramos
Copy link
Contributor

hramos commented 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.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Feb 8, 2020
@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: Share Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants