Installation
To install react-native-rooster's package:
- npm
- Yarn
npm install --save react-native-rooster styled-components
NOTE: RNRooster relies on styled-components because it makes easier to handle different kinds of style props and also helps making the code cleaner. You should install manually styled-components in your project (using one of the commands above).
Import and wrap your application within RNRooster's provider
You must import and wrap your application using our provider. Check out this example.
import { ToastProvider } from 'react-native-rooster';
<ToastProvider>
{...}
</ToastProvider>
Now you're ready to setup some toasts in your application ๐