How do you check permission is granted or not in React Native?

Here is my code: PermissionsAndroid. check(‘camera’). then(response => { if (response === true){ //Open scanner } else if (response === false){ Alert(“Please enable camera permission in device settings.”) } })

Sizin İçin Seçtik  Why is Location Services disabled on my iPhone?

Leave a Reply

Your email address will not be published. Required fields are marked *