react-native-custom-actsheet

0.0.5 • Public • Published

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'},
  ]
});

Package Sidebar

Install

npm i react-native-custom-actsheet

Weekly Downloads

5

Version

0.0.5

License

Apache License 2.0

Last publish

Collaborators

  • gd920129