You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, what I want to do is: I open a pop-up. There are 3 options. add to cart, auto add serial number and cancel. If the input is empty, I want the add to cart button to return an error and the screen not to turn off.
If the serial number is not entered in the input, I just want to show notification when the add to cart button is pressed. It's okay to show notification. But the pop-up screen closes. The window closes because onPress returns a void type.
The text was updated successfully, but these errors were encountered:
ahoirg
changed the title
How can prevent close prompt on React Native
How can prevent close prompt
Aug 2, 2021
In short, what I want to do is: I open a pop-up. There are 3 options. add to cart, auto add serial number and cancel. If the input is empty, I want the add to cart button to return an error and the screen not to turn off.
If the serial number is not entered in the input, I just want to show notification when the add to cart button is pressed. It's okay to show notification. But the pop-up screen closes. The window closes because onPress returns a void type.
The text was updated successfully, but these errors were encountered: