Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 469 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 469 Bytes

react-native-toast

Install

npm i @huxin957/react-native-toast @huxin957/react-native-portal react-native-line-style --save

yarn add @huxin957/react-native-toast @huxin957/react-native-portal react-native-line-style

How to use

portal: https://github.com/HuXin957/react-native-portal

import Toast from "@huxin957/react-native-toast"

Toast.show('hello')
Toast.error('error')
Toast.show(()=><Text>custom</Text>)
Toast.loading()
Toast.removeAll()