A wrapper of native-coded dialogs for simple usage.
This module is not on npm, install from github instead.
- Apple Human Interface Guidelines
- React Native Doc
- Material Design
- Material Dialogs by @afollestad
- react-native-dialogs by @aakashns
- Hekla app
Modify android/build.gradle
as following:
buildscript {
ext.kotlin_version = '1.3.50'
...
dependencies {
...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
import RNND from "react-native-native-dialogs";
RNND.showActionSheet({
options: ["left", "right", "middle"],
onSelect: ({ label, index }) => {
console.log(label, index);
}
});
RNND.prompt({
title: "Prompt",
detailText: "some messages",
textInputConfig: {
secureTextEntry: true,
placeholder: "user name",
maxLength: 16,
minLength: 6,
keyboardType: "this.state.keyboardType"
},
onSubmit: text => {
console.log(text)
}
});