byCedric/use-expo

usePermissions infinite loop when using multiple permissions (array format)

artsnr1 opened this issue · 0 comments

Description of the bug

Component keeps re-rendering infinitely when I use multiple permissions syntax i.e.
const [permission, askForPermission] = usePermissions([Permissions.CAMERA, Permissions.LOCATION] );

To Reproduce

Here is the snack link: https://snack.expo.io/@rabiarashid/shallow-pastry
I added a console.log statement and you will see that it prints infinitely