prscX / react-native-bottom-action-sheet

React Native: Native Bottom Action Sheet
Apache License 2.0
633 stars 48 forks source link
android ios react-native

PRs Welcome

ReactNative: Native Bottom Action Sheet (Android/iOS) If this project has helped you out, please support us with a star 🌟

A simple library that creates native BottomSheet actions according to the Material Design Specs

Android

Sheet View: rubensousa/BottomSheetBuilder
Grid View: rubensousa/BottomSheetBuilder
Alert View: javiersantos/BottomDialogs

iOS

Sheet View: sagiwei/SGActionView
Grid View: sagiwei/SGActionView
Alert View: sagiwei/SGActionView

📖 Getting started

$ npm install react-native-bottom-action-sheet --save

RN61 >= RNBAS V2 >

$ npm install react-native-image-helper --save

$ npm install react-native-vector-icons --save

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

RN61 >= RNBAS V1 >

RN61 above please use react-native-bottom-action-sheet V1 and above

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

RN60 < RNBAS V1 <

RN60 below please use react-native-bottom-action-sheet V.0.*

$ react-native link react-native-bottom-action-sheet

$ react-native link react-native-vector-icons

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        maven { url "https://maven.google.com" }
        ...
    }
}

Note: This library is support on Android 27 > above

💻 Usage

import RNBottomActionSheet from 'react-native-bottom-action-sheet';

import Icon from 'react-native-vector-icons'

💡 Example's

Note:

  • We have added family prop for Icon class, please make sure that you pass the props

🎨 APIs

Icons

    let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />

    <RNBottomActionSheet.GridView.Item title={"Facebook"} icon={facebook} />

Note:

  • We have added family prop for Icon class, please make sure that you pass the props

Note: Since we are using native libraries, we have not found a solution in order to render RN Images in production, therefore please copy all your image assets in platform specific folders:

Please refer example application for the image usage.

✨ 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.

RNBottomActionSheet @ 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: