react-native-use-toast
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-use-toast

  • useToast hook like Chakra UI in React Native.
  • simple and easy to use.
  • animation.

https://user-images.githubusercontent.com/54230093/167245668-e1832699-fbca-4bd1-b964-9f94cf6d1a3e.mov

Instration

npm install react-native-use-toast
# or
yarn add react-native-use-toast

Usage

See the example

  const { toast } = useToast();
  return (
      <Button
        title="bottom"
        onPress={() => {
          toast({
            title: 'Success',
            description: 'This is description',
            duration: 3000,
            position: 'bottom',
            status: 'success',
          });
        }}
      />
  );

Contributing

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

License

MIT

Package Sidebar

Install

npm i react-native-use-toast

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

54.9 kB

Total Files

33

Last publish

Collaborators

  • kodaikabasawa