$ npm install expo-permissions
Allows you prompt for various permissions to access device sensors, personal data, etc.
This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.
For bare React Native projects, you must ensure that you have installed and configured the react-native-unimodules package before continuing.
npm install expo-permissions
Run pod install in the ios directory after installing the npm package.
In MainApplication.java, import the package and add it to the ReactModuleRegistryProvider list:
import expo.modules.permissions.PermissionsPackage;
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
// Your other packages will be here
new PermissionsPackage()
), Arrays.<SingletonModule>asList());
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
© 2010 - cnpmjs.org x YWFE | Home | YWFE