Overlay permission is only needed for debug purposes since RN uses Overlay to create the red screen of death and the dialog box that says it is fetching the bundle from your localhost. You can remove this permission in AndroidManifest.xml for production version of your app.
Andrey Nikishaev I have used your code to ask for permission; however, when it goes to the screen to permit overdraw permission, my app still crashes in the background with same error you provided the solution for. Does this happen to you as well? This only happens if you haven’t enabled the overdraw permission.