2.0.0 • Published 6 years ago
react-native-root-toast-ct v2.0.0
fork react-native-root-toast https://github.com/magicismight/react-native-root-toast
custom message text =>react component
Features
- 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 });