fork react-native-root-toast https://github.com/magicismight/react-native-root-toast
- message support text and react component
npm install react-native-root-toast-ct
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 });