All Projects → gaoxiaosong → react-native-general-actionsheet

gaoxiaosong / react-native-general-actionsheet

Licence: MIT license
ActionSheet api on iOS and Android same as ActionSheetIOS.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-general-actionsheet

Hdalertview
A similar system UIAlertView
Stars: ✭ 61 (+165.22%)
Mutual labels:  actionsheet
Toactionsheet
A custom-designed reimplementation of the UIActionSheet control for iOS
Stars: ✭ 175 (+660.87%)
Mutual labels:  actionsheet
ImageActionSheet
iOS Native style action sheet like in Whatsapp with the option of showing icons. It is a complete implementation and does not use any private api of UIKit.
Stars: ✭ 20 (-13.04%)
Mutual labels:  actionsheet
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+5017.39%)
Mutual labels:  actionsheet
Zhpopupcontroller
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.
Stars: ✭ 1,481 (+6339.13%)
Mutual labels:  actionsheet
Alertift
Swifty, modern UIAlertController wrapper.
Stars: ✭ 242 (+952.17%)
Mutual labels:  actionsheet
Lgalertview
Customizable implementation of UIAlertViewController, UIAlertView and UIActionSheet. All in one. You can customize every detail. Make AlertView of your dream! :)
Stars: ✭ 1,027 (+4365.22%)
Mutual labels:  actionsheet
ActionSheet
Android中的ActionSheet(仿IOS ui界面)
Stars: ✭ 17 (-26.09%)
Mutual labels:  actionsheet
Sdcalertview
The little alert that could
Stars: ✭ 1,768 (+7586.96%)
Mutual labels:  actionsheet
AlertKit
🚨 SwiftUI alerts (and action sheets) done right
Stars: ✭ 60 (+160.87%)
Mutual labels:  actionsheet
React Native Actionsheet
An elegant ActionSheet component for React Native.
Stars: ✭ 1,188 (+5065.22%)
Mutual labels:  actionsheet
Overlaycontroller
OverlayController easily pop your custom view and provide optional transition animation. written in swift 5.0
Stars: ✭ 94 (+308.7%)
Mutual labels:  actionsheet
JhScrollActionSheetView
JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面,可设置单排或双排显示,title不设置不显示title,如果想实现发送站内用户的功能,自己可以改一下代码
Stars: ✭ 13 (-43.48%)
Mutual labels:  actionsheet
Popmenu
A fully customizable popup style menu for iOS 😎
Stars: ✭ 1,155 (+4921.74%)
Mutual labels:  actionsheet
vue2-dialog
A mobile Vue plugin for VueDialog
Stars: ✭ 21 (-8.7%)
Mutual labels:  actionsheet
Leealert
优雅的可自定义 Alert ActionSheet
Stars: ✭ 1,097 (+4669.57%)
Mutual labels:  actionsheet
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (+691.3%)
Mutual labels:  actionsheet
SheetyColors
An action sheet styled color picker for iOS.
Stars: ✭ 101 (+339.13%)
Mutual labels:  actionsheet
LGApplications
个人小demo集合:①ActionSheet; ②PickerView; ③ScrollView嵌套; ④渐变文字Label; ⑤tableView实现单选;
Stars: ✭ 36 (+56.52%)
Mutual labels:  actionsheet
CWActionSheet
模仿微信ActionSheet
Stars: ✭ 47 (+104.35%)
Mutual labels:  actionsheet

react-native-general-actionsheet

npm version Build Status

中文说明

This is a general ActionSheet api. You can use ActionSheetIOS in iOS and use a custom view in Android. Or you can use custom view in both iOS and Android.

It only support ActionSheet.showActionSheetWithOptions now.

ScreenShots

Portrait

Landscape

Install

Install by Yarn:

yarn add react-native-general-actionsheet

Install by NPM:

npm install --save react-native-general-actionsheet

Usage

Use the module in file:

import ActionSheet from 'react-native-general-actionsheet';

ActionSheet.showActionSheetWithOptions(options, callback);

Parameters options and callback is same as ActionSheetIOS.

Use ActionSheetIOS

You can change using ActionSheetIOS or not globally:

import ActionSheet from 'react-native-general-actionsheet';

ActionSheet.useActionSheetIOS = true/false;

Customize Style

You can change style of container globally.

import ActionSheet from 'react-native-general-actionsheet';

ActionSheet.Container.defaultProps.xxx = yyy;

It supports following properties:

Name Type Description
backgroundColor string Background color of whole view
contentBackgroundColor string Background color of content view
separatorColor string Separator line color
fontSize number Button text font size
color string Button text color
titleStyle object Style of title text
messageStyle object Style of message text
destructiveButtonStyle object Style of destructive button
cancelButtonStyle object Style of cancel button
touchableUnderlayColor string Underlay color of button touch action
supportedOrientations array Supported orientations for iOS
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].