• Stars
    star
    129
  • Rank 270,882 (Top 6 %)
  • Language
    Java
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform.

react-native-prompt-android

A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform(iOS using AlertIOS.prompt)

Installation

  • Install from npm
npm i react-native-prompt-android --save
  • Link native library

You can use react-native-cli:

react-native link react-native-prompt-android

Or rnpm:

rnpm link react-native-prompt-android

Usage

import prompt from 'react-native-prompt-android';
prompt(
    'Enter password',
    'Enter your password to claim your $1.5B in lottery winnings',
    [
     {text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
     {text: 'OK', onPress: password => console.log('OK Pressed, password: ' + password)},
    ],
    {
        type: 'secure-text',
        cancelable: false,
        defaultValue: 'test',
        placeholder: 'placeholder'
    }
);

Props

name description type default
type Text input type: 'numeric', 'secure-text', 'phone-pad', 'email-address' String 'default'
cancelable Boolean
defaultValue Default input value String ''
keyboardType The keyboard type of first text field(if exists). One of 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter' or 'web-search'. String 'default'
placeholder String ''

Android Screen Shoot

Android Screen Shoot

More Repositories

1

chinese-programmer-wrong-pronunciation

中国程序员容易发音错误的单词
JavaScript
21,540
star
2

react-cookbook

编写简洁漂亮,可维护的 React 应用
625
star
3

shimo-navigation

石墨 react-native app 导航系统
JavaScript
125
star
4

react-native-cookie

A cookie manager module for react-native
Objective-C
92
star
5

ioredis-tree

🌲 A robust tree structure implementation for Redis
JavaScript
84
star
6

sdk-cabinet

石墨 SDK 简易开发
TypeScript
54
star
7

shimo.js

[WIP] Official Shimo client for Node.js
JavaScript
42
star
8

finch

🤖 Puppeteer as a Service
TypeScript
31
star
9

react-native-preference

Manage react-native app's preference data synchronously
Java
23
star
10

bay

The framework
JavaScript
20
star
11

koa-yield-breakpoint

Add breakpoints around `yield` expression especially for koa@1.
JavaScript
17
star
12

Redoctor

Redis doctor for understanding how the memory is used in your Redis server
JavaScript
16
star
13

wormalize

Normalizes nested JSON according to a schema
JavaScript
15
star
14

awos

AWOS: Wrapper For Aliyun OSS And Amazon S3 SDK
Go
15
star
15

awos-js

AWOS-JS: Wrapper For Aliyun OSS And Amazon S3
TypeScript
14
star
16

yato

A node module similar to hystrix. Who caused riots - cut it!
TypeScript
12
star
17

generator2async-codemod

JavaScript
10
star
18

sdk-cabinet-example

石墨 SDK 简易开发演示项目
CSS
9
star
19

redis-messenger

Insanely Fast Communication Library For Node.js Services Using Redis
JavaScript
6
star
20

tomqueue

A FIFO queue with group-level concurrency support
JavaScript
6
star
21

shimo-js-sdk

TypeScript
6
star
22

fc-toolkit

Toolkit for aliyun function compute(https://cn.aliyun.com/product/fc)
TypeScript
5
star
23

docker-tools

Docker tools used by shimo
JavaScript
4
star
24

mocha2ava-codemod

codemod for mocha tests
JavaScript
4
star
25

hequelize

Simple HBase ORM based on hbase-rpc-client
JavaScript
4
star
26

resolve-keypath

Resolve the value of an object according the keypath
JavaScript
3
star
27

react-native-navigators

Native navigators system for react-native
Objective-C
3
star
28

BisonView

WebView for Android
C++
3
star
29

redis-scan

Scan redis keys with pattern and do something to them
JavaScript
3
star
30

china-divisions

中国行政区划查询服务
Go
3
star
31

hbase-rest

HBase REST client.
JavaScript
3
star
32

js-type-convert

convert js many types without stackoverflow!
JavaScript
2
star
33

native-ios-sdk

Objective-C
2
star
34

kibana-requestId-link

JavaScript
2
star
35

shimo-extension

石墨文档离线标签页扩展
2
star
36

room-client

room & client class stored with redis or memory
JavaScript
1
star
37

node-mmmagic-type

Detect file type with mmmagic and mime.
TypeScript
1
star
38

eagle

server status check tool
JavaScript
1
star
39

co-yield-breakpoint

Add breakpoints around `yield` expression.
JavaScript
1
star
40

update-package-version

Update your package version in package.json and git commit it automatically
JavaScript
1
star
41

guid

A Guid generator and validator.
JavaScript
1
star
42

request

node.js http request library based on request-promise
JavaScript
1
star
43

fixed-guid

Fixed guid generator based on node.js & redis
JavaScript
1
star
44

qrcode

qrcode web service
JavaScript
1
star
45

go-url-join

Like `path.Join()` but for a URL.
Go
1
star