@exodus/react-native-prompt-android
TypeScript icon, indicating that this package has built-in type declarations

0.3.4-exodus.2 • Public • Published

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

Package Sidebar

Install

npm i @exodus/react-native-prompt-android

Weekly Downloads

1,510

Version

0.3.4-exodus.2

License

MIT

Unpacked Size

41 kB

Total Files

17

Last publish

Collaborators

  • aspino
  • cawfree
  • markoexodus
  • ismamz
  • exojo
  • doguhan
  • ronaldcrb
  • nantoaqui
  • bekatd
  • atemafac-nd
  • frankliexodus
  • ale-exo
  • davidexodus
  • geoffreyrousset
  • marcos.kichel
  • kryptkeep
  • andrewtoth-exodus
  • mmehta-10
  • tunguyennnnn
  • cdotta-exodus
  • awesomeniko
  • mbaraniak-exodus
  • hasakura
  • shehryar6
  • rec
  • awilson-rs
  • ggabarrin-rs
  • r4vn
  • exorich
  • cryptosgr
  • mol0d
  • yevhenii_molodyk
  • yilmazbahadir
  • muratso
  • exoleo
  • 633kh4ck
  • ossel
  • clarkexo
  • james-gre
  • juraex
  • ralph.ba
  • angelloz
  • joshuabot
  • jamiemaw
  • exodus-justin.za
  • javiexodus
  • rg911
  • alex.alexandrius
  • filipexodus
  • ryansquared-npm
  • andrescarreon
  • florianmathieu
  • janwe
  • fboucquez
  • skapala
  • umito
  • lanahizzle
  • iaacek
  • ps.mcnally
  • akinncar
  • voltagebots
  • kwwood
  • sergii_bo
  • alexandrbbm
  • danh.t.vo
  • ezenwankwogabriel
  • meniem
  • mzndako
  • kevva
  • feri42
  • jprichardson
  • farisissa
  • ryanzim
  • headfire
  • gutenye
  • mosesbot
  • roccomuso
  • dcastagnoli
  • sonaye
  • ves
  • tenaciousmv
  • asyakost
  • bulgakovk
  • chalker
  • andrejb
  • jaydp17
  • olistic
  • joepie91
  • merlz
  • vbonini
  • devopsrobot
  • jenish-sojitra
  • nachoalvarez
  • giovannirco
  • diegomura
  • lanre-mark
  • sunilagrawal
  • guillecura
  • mariosvlad
  • federico-po