-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Blur event is not fired #6716
Comments
Same thing happen after I upgraded to the latest versions
|
This is kind of expected behaviour that |
I'm trying to prevent the I'll try convert it to functional component and use |
Don't think subscribing to blur event is correct here? You cannot prevent focus/blur events. You'll need to manually disable the hardware back button (by subscribing to |
I thought I could call |
Hi Guys, but I'm failed to implemented. May I know useFocusEffect is the key to this? Because I used componentDidMount to addListener for 'blur' event, but it's an error saying invalid event. |
@Nerogee You won't be able to prevent the screen from going back using |
Current Behavior
blur
event is not fired when navigating back to previous screen.Expected Behavior
blur
should be fired when going back.How to reproduce
Your Environment
The text was updated successfully, but these errors were encountered: