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

Unable to close the Payment Bottom sheet when returning to the app from background

Open MarlonAEC opened this issue 7 months ago • 3 comments

Describe the bug If I have the bottom sheet open when I put the app in the background and then I come back to the app the close button of the bottom sheet doesn't work anymore but the bottom sheet is still responsive.

To Reproduce Steps to reproduce the behavior:

  1. Click the button that triggers the start() function of your particular method of payment
  2. click the close button (it closes correctly)
  3. Hit the button again to open a second time the bottom sheet component
  4. move the app to the background either by visiting your phone/simulator home screen
  5. return to the app
  6. Notice the close button doesn't work anymore but the bottom sheet is still functional and you can add data to it.

Expected behavior The button should still work when you return to the app from the background

Screenshots If applicable, add screenshots to help explain your problem:

https://github.com/user-attachments/assets/df8c664f-ca35-4e34-bf71-6350d9fc6b08

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: any phone or simulator
  • OS: I tried on IOS 16 and 17
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context @adyen/react-native: "^2.1.1" react-native: "0.71.7"

MarlonAEC avatar Jul 25 '24 18:07 MarlonAEC