All Projects → SkrewEverything → react-native-input-prompt

SkrewEverything / react-native-input-prompt

Licence: MIT license
A cross-platform user input prompt component for React Native with Native UI.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-input-prompt

Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (+468.89%)
Mutual labels:  dialog, npm-package, npm-module
Alertjs
Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
Stars: ✭ 80 (+77.78%)
Mutual labels:  input, dialog, prompt
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (+122.22%)
Mutual labels:  input, dialog
react-st-modal
Simple and flexible modal dialog component for React JS
Stars: ✭ 41 (-8.89%)
Mutual labels:  dialog, prompt
windows-network-drive
Do network drive stuff on Microsoft Window in node
Stars: ✭ 18 (-60%)
Mutual labels:  npm-package, npm-module
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+13611.11%)
Mutual labels:  input, prompt
Core Components
Accessible and lightweight Javascript components
Stars: ✭ 85 (+88.89%)
Mutual labels:  input, dialog
intersection-wasm
Mesh-Mesh and Triangle-Triangle Intersection tests based on the algorithm by Tomas Akenine-Möller
Stars: ✭ 17 (-62.22%)
Mutual labels:  npm-package, npm-module
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+30853.33%)
Mutual labels:  dialog, prompt
micro-signals
A tiny typed messaging system inspired by js-signals that uses ES2015 sets
Stars: ✭ 39 (-13.33%)
Mutual labels:  npm-package, npm-module
MinifyAllCli
📦 A lightweight, simple and easy npm tool to 𝗺𝗶𝗻𝗶𝗳𝘆 JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as 𝑪𝑳𝑰 tool or 𝒊𝒎𝒑𝒐𝒓𝒕𝒂𝒃𝒍𝒆 in TS/JS as a 𝑴𝑶𝑫𝑼𝑳𝑬 🥰
Stars: ✭ 21 (-53.33%)
Mutual labels:  npm-package, npm-module
ts-ci
🚀 A starter for TS projects meant to be published on NPM.
Stars: ✭ 282 (+526.67%)
Mutual labels:  npm-package, npm-module
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+1471.11%)
Mutual labels:  input, dialog
Input Range Scss
Styling Cross-Browser Compatible Range Inputs with Sass
Stars: ✭ 272 (+504.44%)
Mutual labels:  input, npm-package
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (+504.44%)
Mutual labels:  input, dialog
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (+775.56%)
Mutual labels:  npm-package, npm-module
React-Pincode
A NPM module which auto fills City, District and State fields when a valid Zip Code in entered!
Stars: ✭ 26 (-42.22%)
Mutual labels:  npm-package, npm-module
Ng Popups
🎉 Alert, confirm and prompt dialogs for Angular. Simple as that.
Stars: ✭ 80 (+77.78%)
Mutual labels:  dialog, prompt
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (+4171.11%)
Mutual labels:  dialog, prompt
arcscord
A Discord library written in typescript
Stars: ✭ 18 (-60%)
Mutual labels:  npm-package, npm-module

react-native-input-prompt

A cross-platform input prompt component for React Native.

Installation

$ npm install --save react-native-input-prompt

Demo

iOS Android

Basic Usage

<Prompt
    visible={this.state.visible}
    title="Say Something"
    placeholder="Type Something"
    onCancel={() =>
        this.setState({
            text: "User Cancelled!",
            visible: !this.state.visible
        })
    }
    onSubmit={text =>
        this.setState({
            text: "User submitted: " + text,
            visible: !this.state.visible
        })
    }
/>

API

Props:

  • title (string, required): The title to be displayed on the prompt.
  • visible (boolean, required): When true, the prompt is displayed, closes otherwise.
  • placeholder (string, required): The placeholder text of the prompt.
  • cancelText (string): The string that is displayed on the cancel button (defaults to "Cancel").
  • submitText (string): The string that is displayed on the submit button (defaults to "Submit").
  • cancelButtonStyle (object): To change the style of "Cancel button".
  • submitButtonStyle (object): To change the style of "Submit button".
  • cancelButtonTextStyle(object): To change the style of text displayed inside "Cancel button".
  • submitButtonTextStyle (object): To change the style of text displayed inside "Submit button".
  • titleStyle (object): To change the style of title text.
  • onChangeText (function): Function that is called with user input when it changes.
  • onSubmit (function, required): Function that is called when user presses on "Submit button".
  • onCancel (function, required): Function that is called when user presses on "Cancel button".

Contributing

Don't find what you want or want to improve the project?

Feel free to fork the project and submit a pull request with your changes!

Not familiar or feeling lazy? Open issue about your idea or tip!

License

MIT

Free Software, Hell Yeah!

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].