1.0.3 • Published 11 months ago

react-native-custom-tiny-toast v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

"# 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()