# react-native-stub-toast **Repository Path**: UnPourTous/react-native-stub-toast ## Basic Information - **Project Name**: react-native-stub-toast - **Description**: A Toast component which can be called with static function, It does not need to add every page. - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-13 - **Last Updated**: 2025-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-native-stub-toast [![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) ## Introduction A Toast component which can be called with static function, It does not need to add `` every page. ## Installation ``` npm install @unpourtous/react-native-stub-toast --save ``` ## Usage First, add PopupStub as sibling node of you Root Node ``` js export default class example extends Component { render () { return ( {/* Your root node */} { // Step three: Use Toast with static function Toast.show('This is a Toast') Toast.show('This is a another Toast') }}> Show Toast {/* Step One: Add popup stub */} { this._popupStub = component // Step Two: Init toast with PopupStub ref Toast.init(this._popupStub) }} /> ) } } ``` ## License This library is distributed under MIT Licence.