JSPM

  • Created
  • Published
  • Downloads 24159
  • Score
    100M100P100Q184167F
  • License ISC

a dialog support react native ios android

Package Exports

  • react-native-dialog

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-dialog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-dialog

android ios

android ios

Installation

First you need to install react-native-dialog:

$ npm install react-native-dialog --save
($ npm install rnpm --global)
$ rnpm link react-native-dialog

Release Notes

  • 1.0.6

Example

import Dialog from ('react-native-dialog');

Dialog.showActionSheetWithOptions({
                    options: arr,
                    cancelButtonIndex: arr.length - 1,
                    destructiveButtonIndex: 0,
                },
                (buttonIndex) => {
                    if (buttonIndex == 0) {
                       ...
                    }
                });
     
                
Dialog.prompt("填写资料", null, [{
            text: '确定',
            onPress: (value) => {
                ...
            },
        }];  , undefined);