Gathering detailed insights and metrics for rn-sonner
Gathering detailed insights and metrics for rn-sonner
Gathering detailed insights and metrics for rn-sonner
Gathering detailed insights and metrics for rn-sonner
An opinionated toast component for React Native with NativeWind support.
npm install rn-sonner
Typescript
Module System
Node Version
NPM Version
44.5
Supply Chain
60.1
Quality
67.3
Maintenance
50
Vulnerability
89.6
License
TypeScript (97.83%)
JavaScript (2.09%)
CSS (0.08%)
Total Downloads
143
Last Day
1
Last Week
2
Last Month
15
Last Year
143
MIT License
284 Commits
10 Branches
1 Contributors
Updated on Apr 30, 2025
Latest Version
1.1.0
Package Id
rn-sonner@1.1.0
Unpacked Size
295.45 kB
Size
53.39 kB
File Count
157
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 30, 2025
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-34.8%
15
Compared to previous month
Last Year
0%
143
Compared to previous year
8
24
An opinionated toast component for React Native. A port of @emilkowalski's sonner.
Forked from gunnartorfis/rn-sonner
success
, error
, warning
, custom
, promise
1npx expo install rn-sonner
To use this package, you also need to install its peer dependencies. Check out their documentation for more information:
1import { Toaster } from 'rn-sonner'; 2 3function App() { 4 return ( 5 <View> 6 <NavigationContainer>...</NavigationContainer> 7 <Toaster /> 8 </View> 9 ); 10}
1import { toast } from 'rn-sonner'; 2 3function SomeComponent() { 4 return ( 5 <Button 6 title="Show Toast" 7 onPress={() => toast('Hello, World!')} 8 /> 9 ); 10}
Even though Sonner Native works on the web, it is not recommended to use it there. Instead, use the original Sonner.
The following setup is recommended. Add a sonner.ts
and sonner.web.ts
file to your project and import from there instead of from this library directly. That way, sonner will be used on the web and rn-sonner on native.
1// sonner.ts 2export * from 'rn-sonner';
1// sonner.web.ts 2export * from 'sonner';
For more advanced usage, check out the documentation
https://github.com/user-attachments/assets/ccc428ca-37c3-4589-9e8c-f414c40d764c
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
No vulnerabilities found.