1.0.1 • Published 2 years ago
react-native-use-toast v1.0.1
react-native-use-toast
- useToast hook like Chakra UI in React Native.
- simple and easy to use.
- animation.
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