This library is a wrapper aroung native TastyToast Android library
$ npm install react-native-tasty-toast --save
$ yarn add react-native-tasty-toast
$ react-native link react-native-tasty-toast
import TastyToast from 'react-native-tasty-toast';
TastyToast.show({
message: 'My Toast',
length: TastyToast.LENGTH_LONG,
type: TastyToast.SUCCESS,
});
TastyToast.cancel();
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
- Android: yadav-rahul/TastyToast
If you are using this library in one of your projects, add it in this list below. β¨
There are few ways you can do it:
- Starring and sharing the projects you like π
- Please follow dilipsuthar97 on GitHub.
Thanks! β€οΈ
dilipsuthar97.github.io
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.