react-native-actually-usable-prompt
Installation
yarn add react-native-actually-usable-prompt
Definition
Available here.
Usage
; <Prompt ref= thisp = ref />; // then runthispprompt'Trololo?' console // optional, see types for a list of available options subtitle: 'BOPadududu-dah-da-du-daaaah!' // typical TextInput props .. autoFocus: true clearButtonMode: 'always' placeholder: 'Type here ..' underlineColorAndroid: 'transparent' defaultValue: 'Ya ya yaaaah' // you can also pass these to <Prompt /> directly through a global config prop; // to show confirmation instead of inputthisp; // to show an alertthisp; // to show a select dialogthisp; // <Prompt /> should be placed at the end of your UI to have a higher zIndex value// or manipulate directly through overlayStyle prop // e.g. <Container> <UI /> <Prompt /></Container>;
Example
Available here.