React native toasting
A simple react native component for creating toasts / alerts . Something similar named react-native-easy-toast does exist but it does not respond to touches meaning that the only difference between rn-toast-alert
and react-native-easy-toast
is that rn-toast-alert
is using pan responder and the other one is not . It looks something like this after installing

Table of contents
Installation
npm install --save rn-toast-alertORyarn add rn-toast-alert
Usage
;;; Component { return <View> <Toast ref="toast" /> <Button title="Toggle toast" onPress= { thisrefstoast; } /> </View> ; } ;
Options
All of them are not required :)
Props | Type | default | Description |
---|---|---|---|
backgroundColor | string | #000000 | Background color for the toast |
textColor | string | #000000 | Color of the text |
duration | number | 2500 | Time until the toast gets closed |
round | boolean | true | Sets the border radius to 14 if true and 5 if false |
customStyles | object | {} | Custom style |
Created by Adib Mohsin . MIT license