0.2.3 • Published 12 months ago

@logo-rn/logo-toast v0.2.3

Weekly downloads
-
License
See license in LI...
Repository
-
Last release
12 months ago

@logo-rn/logo-toast

is an animated toast message component stays in the screen 5 seconds

npm version

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,
        }}
      />

For more detailed information, please visit:

Logo Elements Documentation ↗