react-native-custom-tiny-toast
v1.0.3
Published
React Native Tiny Toast for android and ios
Downloads
46
Maintainers
Readme
"# react-native-custom-tiny-toast"
Install
Install the package via npm:
npm i react-native-custom-tiny-toast --save
Configure
import { RootSiblingParent } from 'react-native-root-siblings'
<RootSiblingParent>
<App />
</RootSiblingParent>
Usage
Import the component:
import Toast from 'react-native-custom-tiny-toast'
Toast.show('Default Toast')
Toast.showSuccess('Success Toast')
Toast.show('Custom Toast',{
position: Toast.position.center,
containerStyle:{backgroundColor:'#a85032'},
textStyle: {},
textColor:'#000'
imgSource: require('image Path'),
imgStyle: {},
...
})
Toast.showLoading('Loading...')
hide Toast
Toast.hide()