2.0.0 • Published 6 years ago

react-native-root-toast-ct v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

fork react-native-root-toast https://github.com/magicismight/react-native-root-toast

custom message text =>react component


Features

  1. message support text and react component

Install

npm install react-native-root-toast-ct

Settings

Toast.show("hello world", { position: Toast.positions.CENTER });

or 

const msg = (
  <View><Text style={{ color: "red" }}>
    hello
      </Text>
    <Text style={{ color: "#ffffff" }}>
      world
      </Text>
  </View>
);

Toast.show(msg, { position: Toast.positions.CENTER });