mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 17:33:21 +08:00
Summary: Explain the **motivation** for making this change. What existing problem does the pull request solve? - Being able to call these from JS is really useful in envs where action sheets are not available (eg: App Extensions). I made the functions act as explicit toggles, this way it's easy to set the wanted behavior. **Test plan (required)** - I tested the functions manually.  Closes https://github.com/facebook/react-native/pull/9242 Differential Revision: D3749568 fbshipit-source-id: 2cea1d609dc792aec73d4bcf1eae07575725b4b7