react-native-prompt-simple
A simple prompt for react-native
installation
npm install --save react-native-prompt-simple
Screen
USE
; <Prompt title="Codigo" visible=true placeholder="Texto" textCancel="Cancelar" textAccept="Aceptar" onChange= { console; } onCancel= { console; } onAccept= { console; } />
Props
Title
-- Add a title to the prompt by default is Titulovisible
-- a Boolean value that shows and hides the promptplaceholder
-- Value that is assigned to the sample text box, by default is Add datatextAccept
-- Accept text value by default is AccepttextCancel
-- Cancel text value by default is CancelonChange
-- a function that returns the value that is being entered in the text fieldonAccept
-- a function that returns the value of the text when we give it to acceptonCancel
-- A function that returns us Cancel when we press the button