react-native-simple-toast
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "react-native-simple-toast", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Simple Toast for react-native. In Android it's just native toast, in iOS it's https://github.com/scalessec/Toast", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/xgfe/react-native-simple-toast.git" | ||
"url": "git+https://github.com/vonovak/react-native-simple-toast.git" | ||
}, | ||
@@ -18,0 +18,0 @@ "author": "xgfe", |
# react-native-simple-toast | ||
React Native Toast component for both Android and iOS. It just let iOS have the same toast performance with Android. Using [scalessec/Toast](https://github.com/scalessec/Toast) for iOS; | ||
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](https://github.com/scalessec/Toast) on iOS and the standard [ToastAndroid](http://facebook.github.io/react-native/docs/toastandroid.html) on Android; | ||
This is based on work at https://github.com/xgfe/react-native-simple-toast. | ||
## Install | ||
You can use [rnpm](https://github.com/rnpm/rnpm) to install native component easily; | ||
```bash | ||
npm install react-native-simple-toast --save | ||
rnpm link | ||
react-native link react-native-simple-toast | ||
``` | ||
@@ -14,4 +15,2 @@ | ||
It's just the same as [ToastAndroid](http://facebook.github.io/react-native/docs/toastandroid.html) | ||
```javascript | ||
@@ -21,3 +20,7 @@ import Toast from 'react-native-simple-toast'; | ||
Toast.show('This is a toast.'); | ||
Toast.show('This is a long toast.',Toast.LONG); | ||
``` | ||
Toast.show('This is a long toast.', Toast.LONG); | ||
``` | ||
## License | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53452
24
1