kbwo / react-native-use-toast

useToast hook like Chakra UI in React Native.

Home Page:https://www.npmjs.com/package/react-native-use-toast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-use-toast

  • useToast hook like Chakra UI in React Native.
  • simple and easy to use.
  • animation.
Screen.Recording.2022-05-07.at.17.15.37.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.

TODO

  • Add more custamizeable component
  • Close toast by swipe

License

MIT

About

useToast hook like Chakra UI in React Native.

https://www.npmjs.com/package/react-native-use-toast

License:MIT License


Languages

Language:TypeScript 41.1%Language:Java 30.8%Language:Objective-C 16.0%Language:JavaScript 7.3%Language:Ruby 3.1%Language:Shell 0.7%Language:C 0.5%Language:Swift 0.3%