{"repo":"vonovak/react-navigation-backhandler","free":true,"listed":false,"github":"https://github.com/vonovak/react-navigation-backhandler","clone":"git clone https://github.com/vonovak/react-navigation-backhandler.git","description":"Easily handle Android back button behavior with React-Navigation.","language":"JavaScript","stars":204,"topics":["react-native","react-navigation"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-navigation-backhandler Easily handle Android back button behavior with React-Navigation. NOTE use version 1 of this package for react-navigation version 4 and lower use version 2 of this package for react-navigation version 5 and later Installation Install with npm: Install with yarn: Usage The following snippet demonstrates the usage. Note that onBackButtonPressAndroid will only be called if SomeComponent is placed in a screen that is focused (the one user is directly interacting with). Behind the scenes, the onBackButtonPressAndroid handler is registered before a screen is focused, and unregistered before going away from it, leaving you with a declarative interface to interact with. Internally, this package uses apis that are provided by react-navigation . You may use useAndroidBackHandler or AndroidBackHandler component anywhere in your app's React tree, it does not need to be placed directly in the screen component. There are two ways of using this library: 1. As hook 1. As component Use as hook Use as component Note: You can also use the component \"inline\" without children: Warning The package was only tested to be used in screens in stack navigator, other use cases may not work.","default_branch":null,"files":null,"tree":[],"storefront":"/r/vonovak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vonovak/react-navigation-backhandler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}