0.1.5 • Published 9 months ago

@originaltimi/rn-toast v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

rn-toast

A simple toast notification library for React Native and Expo Compactible.

Installation

npm install @originaltimi/rn-toast
yarn add @originaltimi/rn-toast

Usage

import toast, { ToastProvider } from '@originaltimi/rn-toast';

// ...

 <ToastProvider
        config={{
          position: 'bottom',
          duration: 5000,
          stack: true,
        }}
      >
        <App />
      </ToastProvider>

// ...
const clickHandler = () =>{
    toast({
    title:'Hello, World!'
    type: 'success'
});
}

Displays a toast notification.

  • title (string): The message to display in the toast.
    • duration (number): Duration in milliseconds for which the toast is visible.
    • position (string): Position of the toast on the screen (top, bottom).
    • type (string): Type of the toast (success, error, info).
    • stack - Coming Soon (boolean)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago