Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kimvex/react-native-prompt-simple
a simple prompt for React-native
https://github.com/kimvex/react-native-prompt-simple
Last synced: 13 days ago
JSON representation
a simple prompt for React-native
- Host: GitHub
- URL: https://github.com/kimvex/react-native-prompt-simple
- Owner: kimvex
- Created: 2017-10-16T00:41:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T03:45:19.000Z (about 7 years ago)
- Last Synced: 2024-10-17T13:47:20.841Z (29 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
react-native-prompt-simple
===================A simple prompt for react-native
----------
**installation**
```
npm install --save react-native-prompt-simple
```____
**Screen**![enter image description here](http://res.cloudinary.com/h27hacklab/image/upload/c_scale,r_0,w_299/v1508123685/Simulator_Screen_Shot_-_iPhone_6_-_2017-10-15_at_22.07.34_wjx1sm.png)
____
**USE**```js
import Prompt from 'react-native-prompt-simple';
{
console.log(v);
}}onCancel={(v) => {
console.log(v);
}}onAccept={(v) => {
console.log(v);
}}
/>
```
----
**Props**- ``Title`` -- Add a title to the prompt by default is **Titulo**
- ``visible`` -- a Boolean value that shows and hides the prompt
- ``placeholder`` -- Value that is assigned to the sample text box, by default is **Add data**
- ``textAccept`` -- Accept text value by default is **Accept**
- ``textCancel`` -- Cancel text value by default is **Cancel**
- ``onChange`` -- a function that returns the value that is being entered in the text field
- ``onAccept`` -- a function that returns the value of the text when we give it to accept
- ``onCancel`` -- A function that returns us Cancel when we press the button