Gathering detailed insights and metrics for toastify-react-native
Gathering detailed insights and metrics for toastify-react-native
Gathering detailed insights and metrics for toastify-react-native
Gathering detailed insights and metrics for toastify-react-native
@amir-hossein-karimi/toastify-react-native
🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
react-toastify
React notification made easy
toastify-js
Toastify is a lightweight, vanilla JS toast notification library.
@svgr/babel-plugin-transform-react-native-svg
Transform DOM elements into react-native-svg components
🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
npm install toastify-react-native
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
86 Stars
69 Commits
18 Forks
4 Watching
4 Branches
8 Contributors
Updated on 25 Nov 2024
Minified
Minified + Gzipped
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
56,063.4%
161,189
Compared to previous day
Last week
2.9%
659,498
Compared to previous week
Last month
4.8%
3,145,940
Compared to previous month
Last year
1,814.6%
47,923,391
Compared to previous year
1
4
🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
1$ npm install toastify-react-native
1import React from "react"; 2import { StyleSheet, View, TouchableOpacity, Text } from "react-native"; 3import ToastManager, { Toast } from "toastify-react-native"; 4 5import Another from "./Another"; 6 7const App = () => { 8 const showToasts = () => { 9 Toast.success("Promised is resolved"); 10 }; 11 12 return ( 13 <View style={styles.container}> 14 <ToastManager /> 15 <Another /> 16 <TouchableOpacity 17 onPress={showToasts} 18 style={{ 19 backgroundColor: "white", 20 borderColor: "green", 21 borderWidth: 1, 22 padding: 10, 23 }} 24 > 25 <Text>SHOW SOME AWESOMENESS!</Text> 26 </TouchableOpacity> 27 </View> 28 ); 29}; 30 31const styles = StyleSheet.create({ 32 container: { 33 flex: 1, 34 backgroundColor: "#fff", 35 alignItems: "center", 36 justifyContent: "center", 37 }, 38}); 39 40export default App;
1import React from "react"; 2import { StyleSheet, View, TouchableOpacity, Text } from "react-native"; 3import { Toast } from "toastify-react-native"; 4const Another = () => ( 5 <View style={styles.container}> 6 <TouchableOpacity onPress={() => Toast.info("Lorem ipsum info", "bottom")} style={styles.buttonStyle}> 7 <Text>SHOW SOME AWESOMENESS!</Text> 8 </TouchableOpacity> 9 </View> 10); 11 12const styles = StyleSheet.create({ 13 container: { 14 backgroundColor: "#fff", 15 alignItems: "center", 16 justifyContent: "center", 17 }, 18 buttonStyle: { 19 marginTop: 10, 20 backgroundColor: "white", 21 borderColor: "green", 22 borderWidth: 2, 23 padding: 10, 24 }, 25}); 26 27export default Another;
For a more complex example take a look at the /example
directory.
Name | Type | Default | Description |
---|---|---|---|
width | number or 'auto' | 256 | Width of toast |
height | number or 'auto' | 68 | Height of the toast |
style | any | null | Style applied to the toast |
textStyle | any | null | Style applied to the toast content |
position | top, center or bottom | top | Position of toast |
positionValue | number | 50 | position value of toast |
duration | number | 3000 | The display time of toast. |
animationStyle | upInUpOut, rightInOut or zoomInOut | upInUpOut | The animation style of toast |
animationIn | string or object | 'slideInRight' | Toast show animation |
animationOut | string or object | 'slideOutLeft' | Toast hide animation |
animationInTiming | number | 300 | Timing for the Toast show animation (in ms) |
animationOutTiming | number | 300 | Timing for the toast hide animation (in ms) |
backdropTransitionInTiming | number | 300 | The backdrop show timing (in ms) |
backdropTransitionOutTiming | number | 300 | The backdrop hide timing (in ms) |
hasBackdrop | bool | false | Render the backdrop |
backdropColor | string | 'black' | The backdrop background color |
backdropOpacity | number | 0.2 | The backdrop opacity when the toast is visible |
showCloseIcon | boolean | true | Shows the close icon in the right corner |
showProgressBar | boolean | true | Shows the progress bar in the toast |
Take a look at react-native-animatable to see the dozens of animations available out-of-the-box.
Pull requests, feedbacks and suggestions are welcome!
toastify-react-native is MIT licensed .
No vulnerabilities found.
Reason
13 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 9/18 approved changesets -- score normalized to 5
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More