@logo-rn/logo-toast
v0.2.3
Published
<LogoToast/> is an animated toast message component stays in the screen 5 seconds
Downloads
17
Readme
@logo-rn/logo-toast
is an animated toast message component stays in the screen 5 seconds
Installation
Install the component:
npm i @logo-rn/logo-toast -s
Usage
Once installed, import the component in your application:
import {LogoToast} from '@logo-rn/logo-toast';
const [visibleToast, setVisibleToast] = useState(false);
//...
<LogoToast
onDismissSnackBar={() => setVisibleToast(false)}
visible={visibleToast}
headerText={"Header"}
messageText={"My message"}
toastSettings={{
additionalInfo: "Selam",
delay: 1000,
currentTimeAsInfo: true,
}}
/>