Nefarious Pomegranate Magnate

    react-native-easy-permissions

    0.0.2 • Public • Published

    PRs Welcome

    ReactNative: Native Easy Permissions Library (Android/iOS)
    

    If this project has helped you out, please support us with a star 🌟

    This library is a React Native bridge around native library providing Dialog for permissions.

    iOS: ivanvorobei/SPPermissions
    Android: Facebook/ReactNative.PermissionsAndroid

    This library is support RN61+

    📖 Getting started

    $ npm install react-native-easy-permissions --save

    • iOS

    iOS Prerequisite: Please make sure CocoaPods is installed on your system

    - Add the following to your `Podfile` -> `ios/Podfile` and run pod update:
    
      use_native_modules!
    
      pod 'RNEasyPermissions', :path => '../node_modules/react-native-easy-permissions/ios'
    
      use_frameworks!
    
      pod 'SPPermissions', :git => 'https://github.com/prscX/SPPermissions', :branch => 'react-native'
    

    Supported Permissions - Follow

    No configuration is required

    🎨 Usage

    import { RNEasyPermissions } from 'react-native-easy-permissions'
    
    RNEasyPermissions.Show({
        // iOS Permissions
        permissions: ['Camera', 'Contacts', 'Calendar', 'PhotoLibrary', 'Notification', 'Microphone', 'Reminders', 'SpeechRecognizer', 'Location', 'Motion',    'MediaLibrary', 'Bluetooth']
        // Android Permissions
        // permissions: [
        //   'android.permission-group.CALENDAR',
        //   'android.permission-group.CAMERA',
        //   'android.permission-group.LOCATION',
        //   'android.permission.READ_SMS',
        //   'android.permission.ACCESS_FINE_LOCATION'
        // ]
    });
    
    

    💡 Props

    • General(iOS & Android)
    Prop Type Default Note
    Show({ permissions: [] }) func It invoke native permissions dialog

    ✨ Credits

    🤔 How to contribute

    Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

    💫 Where is this library used?

    If you are using this library in one of your projects, add it in this list below. ✨

    📜 License

    This library is provided under the Apache 2 License.

    RNAppTour @ prscX

    💖 Support my projects

    I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

    However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

    • Starring and sharing the projects you like 🚀

    • If you're feeling especially charitable, please follow prscX on GitHub.

      Buy Me A Coffee

      Thanks! ❤️
      prscX.github.io
      </ Pranav >

    Keywords

    Install

    npm i react-native-easy-permissions

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    Apache License 2.0

    Unpacked Size

    28.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • pranavchauhan01