Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29624

Hardware backpress is not working after exit once with backpress in react native with react navigation

$
0
0

Here is my project structure:

 - StackNavigator        - Auth Navigator       - APP Navigator         - Drawer Navigator           - Drawer Screen-1             - Stack navigator               - Screen 1               - Screen 2           - Drawer Screen-2               - Stack navigator                 - Screen 1                 - Screen 2           - Drawer Screen-3             - Stack navigator               - Screen 1               - Screen 2

Steps to reproduce:

  • Now when we exit the app with hardware back press in the android app goes in background mode.
  • After reopening the application, Hardware back press stopped working.

If anyone faced issue like this please give a solution for this. Thanks in advance.

I am using following versions:    @react-navigation/native: 5.0.7    @react-navigation/stack: 5.0.9    @react-navigation/drawer: 5.0.7    react-native-reanimated 1.7.0    react-native-gesture-handler: 1.6.1    react-native-safe-area-context: 0.7.3    react-native-screens: 2.0.0-beta.13    react-native: 0.61.5    node: 12.11.1

I haven't implemented any backhandler listener for handling the back operation.


Viewing all articles
Browse latest Browse all 29624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>