1.1.0 • Published 5 years ago

rn-top-toast v1.1.0

Weekly downloads
13
License
-
Repository
-
Last release
5 years ago

rn-toast

install

npm install --save rn-top-toast

usage

import React from "react";
import { StyleSheet, View } from "react-native";
import { RootToast, Toast } from "./MaskModal";

class App extends React.Component {
  componentDidMount() {
    setTimeout(() => {
      Toast.open({ text: "hello", duration: 5000 });
    }, 100);
  }

  render() {
    return (
      <View style={styles.container}>
        <RootToast />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center"
  }
});
1.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago