Gathering detailed insights and metrics for @newbanker/react-native-simple-toast
Gathering detailed insights and metrics for @newbanker/react-native-simple-toast
Gathering detailed insights and metrics for @newbanker/react-native-simple-toast
Gathering detailed insights and metrics for @newbanker/react-native-simple-toast
Cross-platform Toast experience for React Native
npm install @newbanker/react-native-simple-toast
Typescript
Module System
Node Version
NPM Version
70
Supply Chain
86.3
Quality
77.7
Maintenance
100
Vulnerability
100
License
Objective-C++ (23.2%)
TypeScript (22.11%)
Java (21.11%)
Objective-C (20.16%)
Ruby (7.71%)
JavaScript (5.24%)
C (0.29%)
Swift (0.18%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
326 Stars
104 Commits
36 Forks
2 Watchers
4 Branches
12 Contributors
Updated on Jul 08, 2025
Latest Version
1.1.7
Package Id
@newbanker/react-native-simple-toast@1.1.7
Unpacked Size
86.30 kB
Size
58.75 kB
File Count
20
NPM Version
6.14.12
Node Version
12.22.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
React Native Toast component for both Android and iOS. It just lets iOS users have the same toast experience as on Android. Using scalessec/Toast on iOS and the standard ToastAndroid on Android;
This is based on work at https://github.com/xgfe/react-native-simple-toast, but doesn't have much in common any more.
1npm install react-native-simple-toast --save 2react-native link react-native-simple-toast // only RN < 0.60 3cd ios && pod install
then rebuild your project
the module exposes the following functions:
1// duration Toast.SHORT is used by default 2show: (message: string, duration?: number, viewControllerBlacklist?: Array<string>) => void,
1showWithGravity: ( 2message: string, 3duration: number, 4gravity: string, 5viewControllerBlacklist?: Array<string> 6) => void,
Note on viewControllerBlacklist
: this is an iOS-only option, it is ignored on android.
When presenting the Toast, we need to find the presented ViewController (VC). The Toast will be presented in that VC. For Example, let's say you're showing a ReactNative.Modal
in your app - in that case, the presented VC is a RCTModalHostViewController
.
If you present a Toast while that Modal
is shown, and then hide the Modal
, the Toast will disappear together with the Modal
.
viewControllerBlacklist
allows to say what VCs should not be considered when Toast is shown. This is to allow to work around issues where Toast would be displayed weirdly in an Alert
or would hide too quickly when shown in a RCTModalHostViewController
.
The values viewControllerBlacklist
has been tested with are:
1['RCTModalHostViewController', 'UIAlertController'];
1import Toast from 'react-native-simple-toast';
2
3Toast.show('This is a toast.');
4Toast.show('This is a long toast.', Toast.LONG);
5
6Toast.showWithGravity('This is a long toast at the top.', Toast.LONG, Toast.TOP);
7
8Toast.show('This is nicely visible even if you call this when an Alert is shown', Toast.SHORT, [
9 'UIAlertController',
10]);
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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