Closed rhenmark closed 7 years ago
please update v2.2.1
Then implement the following code:
import { BackHandler } from 'react-native';
import LocationServicesDialogBox from "react-native-android-location-services-dialog-box";
componentWillMount(){
BackHandler.addEventListener('hardwareBackPress', () => {
LocationServicesDialogBox.forceCloseDialog();
});
}
hello sir. thank you for the implementation , yet the dialog box still closes when I clicked back button. Is it possible to add a tag like cancelable to false in dialog?
Write the code below to not close it:
BackHandler.addEventListener('hardwareBackPress', () => {
return false;
});
Thank you. But is it possible to turn on location services without going to the settings?
no. you can use a different module
Thank you for this package. this is great. But, it is possible not to close the dialog box if I click the close back? Could you help me how to implement it?