1.0.1 • Published 2 years ago

react-native-use-toast v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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