A custom ActionSheet for react-native
Objective-C JavaScript
Switch branches/tags
Nothing to show
Clone or download

README.md

react-native-custom-actsheet

NPM

flexible custom ActionSheet for react-native.

This modules is wrapper for IBActionSheet , which does all real work.

ScreenShot

Standard colored

Example

ActionSheet.showActionSheetWithOptions({
  node: React.findNodeHandle(this.refs['view']),  // default is RCTRootContentView's react tag
  title: 'This is a title',
  destructiveButtonTitle: 'Destructive',
  cancelButtonTitle: 'Cancel',
  buttonTextColor: 'yellow',
  buttonBackgroundColor: 'green',
  pressEffect: ActionSheet.PressEffect.Highlight,
  shouldCancelOnTouch: false,
  blurBackground: false,
  font: {
    fontFamily: 'Bradley Hand',
    fontSize: 14,
    fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900',
    fontStyle: 'normal' | 'italic' | 'oblique',
  }
  buttons: [
    {title: 'button1', textColor: 'black'},
    {title: 'button2', backgroundColor: 'red'},
    {title: 'button3', highlightTextColor: 'red', highlightBackgroundColor: 'orange'},
  ]
});