react-native/website/server
Connor McEwen 0fb2ccfcc3 Add JS library for requesting Android M Permissions
Summary:
Explain the **motivation** for making this change. What existing problem does the pull request solve?

The Android permissions native module was open sourced recently (b7352b4667) but it is currently undocumented and requires directly interfacing with the native module.

This provides a JS wrapper to make it easier to use the permissions module and documents it.

This could be cleaner if the native code used Promise blocks instead of callbacks, but I didn't want to change the native code without a thumbs up since I'm guessing this is used in one of facebook's apps. Happy to do that if it makes sense

I also tried to make the `PERMISSIONS` object a class property - it works in the actual code but not in the documentation (think it's a jsdocs problem), so decided to initialize in the constructor.

**Test plan (required)**

If the API looks good, I will change the UIExplorer example to use this.

cc andreicoman11
Closes https://github.com/facebook/react-native/pull/9292

Differential Revision: D3716303

Pulled By: andreicoman11

fbshipit-source-id: cd40b8757fdf70ea8faecfb58caa00e99a99789e
2016-08-15 05:58:33 -07:00
..
convert.js Fix website 2016-03-25 10:46:25 -07:00
docgenHelpers.js Improve autogen for reference docs including jsdoc support 2016-06-21 14:28:43 -07:00
extractDocs.js Add JS library for requesting Android M Permissions 2016-08-15 05:58:33 -07:00
generate.js CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
server.js Fix favicon location error 2016-07-12 13:43:33 -07:00