Add the overlay permission information

Summary:
If your current android application is targeting the android `api level 23` or greater, displaying the error view will cause a crash in the application. The crash only shows that the system cannot display the view.
Closes https://github.com/facebook/react-native/pull/10479

Differential Revision: D4167801

Pulled By: hramos

fbshipit-source-id: 5f7315038a8a4c36d1513173139d5c4cf50ea868
This commit is contained in:
Sandro Machado 2016-11-11 10:46:53 -08:00 committed by Facebook Github Bot
parent 77401b15e0
commit 100b27cc7a
1 changed files with 2 additions and 0 deletions

View File

@ -728,6 +728,8 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {
That's it, your activity is ready to run some JavaScript code.
> If your app is targeting the Android `api level 23` or greater, make sure you have, for the development build, the `overlay permission` enabled. You can check it with `Settings.canDrawOverlays(this);`. This is required because, if your app produces an error in the react native component, the error view is displayed above all the other windows. Due to the new permissions system, introduced in the api level 23, the user needs to approve it.
## Run your app
To run your app, you need to first start the development server. To do this, simply run the following command in your root folder: