constructor(props, context) {
    super(props, context);

    this.onTextLayout = this.onTextLayout.bind(this);

    const styles = getStyles(props, context);

    this.state = {
      bottomPosition: 0,
      styles,
      visible: props.visible,
    };
  }
Component for snackbars
https://material.io/guidelines/components/snackbars-toasts.html