All Projects → shimohq → React Native Prompt Android

shimohq / React Native Prompt Android

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

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to React Native Prompt Android

Dotfiles
Configurations for the tools I use every day
Stars: ✭ 898 (+723.85%)
Mutual labels:  prompt
Termly.js
Simple, Extensible, Hackable and Lightweight Javascript Browser Terminal Simulator!
Stars: ✭ 56 (-48.62%)
Mutual labels:  prompt
Alertjs
Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
Stars: ✭ 80 (-26.61%)
Mutual labels:  prompt
Prompt Password
This repository has been archived, use the built-in password prompt in Enquirer instead.
Stars: ✭ 8 (-92.66%)
Mutual labels:  prompt
Jquery Alertable
Minimal alert and confirmation alternatives.
Stars: ✭ 38 (-65.14%)
Mutual labels:  prompt
Angel Ps1
Your fancy shell prompt fed by your guardian angel
Stars: ✭ 60 (-44.95%)
Mutual labels:  prompt
Powerline Extra Symbols
▶️ Extra glyphs for your powerline separators
Stars: ✭ 778 (+613.76%)
Mutual labels:  prompt
Vue Simple Alert
Simple alert(), confirm(), prompt() for Vue.js
Stars: ✭ 93 (-14.68%)
Mutual labels:  prompt
Pretty Git Prompt
`git status` inside your shell prompt
Stars: ✭ 43 (-60.55%)
Mutual labels:  prompt
Ng Popups
🎉 Alert, confirm and prompt dialogs for Angular. Simple as that.
Stars: ✭ 80 (-26.61%)
Mutual labels:  prompt
Oh My Posh
A prompt theme engine for any shell.
Stars: ✭ 841 (+671.56%)
Mutual labels:  prompt
React Notie
Simple notifications for react
Stars: ✭ 27 (-75.23%)
Mutual labels:  prompt
Smalltalk
Promise-based Alert, Confirm and Prompt replacement
Stars: ✭ 76 (-30.28%)
Mutual labels:  prompt
Inquirer Checkbox Plus Prompt
Checkbox with autocomplete and other additions for Inquirer
Stars: ✭ 25 (-77.06%)
Mutual labels:  prompt
Mimir
Fast and minimal shell prompt
Stars: ✭ 90 (-17.43%)
Mutual labels:  prompt
Prompts
❯ Lightweight, beautiful and user-friendly interactive prompts
Stars: ✭ 6,970 (+6294.5%)
Mutual labels:  prompt
Clc
Tiny bash utility for coloring terminal output and prompt
Stars: ✭ 58 (-46.79%)
Mutual labels:  prompt
Robbyrussell Node
Cross-shell robbyrussell theme written in JavaScript
Stars: ✭ 99 (-9.17%)
Mutual labels:  prompt
Windows10debloater
Script to remove Windows 10 bloatware.
Stars: ✭ 11,462 (+10415.6%)
Mutual labels:  prompt
Tty Prompt
A beautiful and powerful interactive command line prompt
Stars: ✭ 1,210 (+1010.09%)
Mutual labels:  prompt

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].