dev-resources.site
for different kinds of informations.
react-native-tasty-toast
Published at
5/25/2020
Categories
reactnative
android
toast
dev
Author
dilipsuthar97
Author
13 person written this
dilipsuthar97
open
react-native-tasty-toast
🍞 Make your native android Toasts Tasty
Support us with a star 🌟
This library is a wrapper around native TastyToast Android library
📖 Getting started
$ npm install react-native-tasty-toast --save
$ yarn add react-native-tasty-toast
Linking (Mostly automatic installation)
ReactNative < 0.60
$ react-native link react-native-tasty-toast
💻 Usage
Only for Android
import TastyToast from 'react-native-tasty-toast';
TastyToast.show({
message: 'My Toast',
length: TastyToast.LENGTH_LONG,
type: TastyToast.SUCCESS,
});
TastyToast.cancel();
💡 Props
Key | Type | Default | Description |
---|---|---|---|
message | string | required | The message to display |
length | number | TastyToast.LENGTH_SHORT | How long to display message |
type | number | TastyToast.DEFAULT | Type of the toast you want to display |
Where length
is:
- TastyToast.LENGTH_SHORT
- TastyToast.LENGTH_LONG
Where type
is:
- TastyToast.DEFAULT
- TastyToast.SUCCESS
- TastyToast.WARNING
- TastyToast.ERROR
- TastyToast.INFO
- TastyToast.CONFUSING
✨ Credits
- Android: yadav-rahul/TastyToast
💫 Where is this library used?
If you are using this library in one of your projects, add it in this list below. ✨
💪 Support Development
There are few ways you can do it:
- Starring and sharing the projects you like 🚀
- Please follow dilipsuthar97 on GitHub.
Thanks! ❤️
dilipsuthar97.github.io
📱 Social
📜 License
Copyright 2020 Dilip Suthar (dilipsuthar97)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
toast Article's
20 articles in total
TOAST: PostgreSQL's Secret Sauce for Handling Big Data 🍞
read article
Custom Toasters in Nuxt with Vue Toastification
read article
CMPToast: Toasts for Compose Multiplatform Projects
read article
React Hot Toast
read article
Setting Up Toast Custom Notifications in React with Specific Types and Context API
read article
Use Server Side Forms in NextJS
read article
React Pop Toast ✨
read article
How to use toast notification with ASP .Net Core
read article
3 Toast Libraries You Can Use in your React Projects
read article
Create a Toast Component in a Blazor Server Application
read article
Vue Js Toast Notification Example From Scratch
read article
Loafjet: A Toast replacement for Swift!
read article
Toast Notification to Detect Internet Connection in HTML CSS & JavaScript
read article
🎉 Announcing Angular Hot Toast — The Best Angular Toast in Town
read article
Android - Custom Toast with Kotlin extension function
read article
A bite of Toast, the new JAMstack meta-framework
read article
react-native-tasty-toast
currently reading
Creating Toast API with React Hooks
read article
Bootstrap Toast in .Net Core Web App
read article
Laravel SweetAlert
read article
Featured ones: