webyonet / react-native-android-location-services-dialog-box

React Native Android Location Services Dialog Box
MIT License
182 stars 50 forks source link

changed request code & added check for it in onActivityResult #10

Closed Cody-G-G closed 7 years ago

Cody-G-G commented 7 years ago

Using request code as 1 is pretty common and there will be conflicts, so I chose something a bit more random. Furthermore, there needs to be a check for the request code in onActivityResult, otherwise it will execute every time any (unrelated) activity in the app is finished with a result.

Fixes https://github.com/webyonet/react-native-android-location-services-dialog-box/issues/9.

webyonet commented 7 years ago

thanks @Cody-G-G