How to use the react-native-root-toast.hide function in react-native-root-toast

To help you get started, we’ve selected a few react-native-root-toast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wutongke / react-native-one / Utils / ToastUtil.js View on Github external
export const toastShort = (content) => {
  if (toast !== undefined) {
    Toast.hide(toast);
  }
  toast = Toast.show(content.toString(), {
    duration: Toast.durations.SHORT,
    position: Platform.OS === 'android' ? Toast.positions.BOTTOM : Toast.positions.CENTER,
    shadow: true,
    animation: true,
    hideOnPress: true,
    delay: 0
  });
};
github CarGuo / GSYGithubAPP / app / components / common / ToastProxy.js View on Github external
export function hideToast(toast) {
    Toast.hide(toast)
}
github odota / mobile / app / components / PlayerCard.js View on Github external
setTimeout(function () {
                    Toast.hide(toast);
                }, 2000);
            } else {
github wutongke / react-native-one / Utils / ToastUtil.js View on Github external
export const toastLong = (content) => {
  if (toast !== undefined) {
    Toast.hide(toast);
  }
  toast = Toast.show(content.toString(), {
    duration: Toast.durations.LONG,
    position: Platform.OS === 'android' ? Toast.positions.BOTTOM : Toast.positions.CENTER,
    shadow: true,
    animation: true,
    hideOnPress: true,
    delay: 0
  });
};
github yoonzm / react-native-alphabet-flat-list / AlphabetListView.js View on Github external
setTimeout(() => {
          toast && Toast.hide(toast);
          toast = null;
        }, 100);
      }
github odota / mobile / app / components / PeersCard.js View on Github external
setTimeout(function () {
                Toast.hide(toast);
            }, 2000);
        } else {
github seawind8888 / Nobibi / app / common / ToastUtil.js View on Github external
export const toastLong = (content) => {
  if (toast !== undefined) {
    Toast.hide(toast);
  }
  toast = Toast.show(content.toString(), {
    duration: Toast.durations.LONG,
    position: Toast.positions.BOTTOM,
    shadow: true,
    animation: true,
    hideOnPress: true,
    delay: 0
  });
};

react-native-root-toast

react native toast like component, pure javascript solution

MIT
Latest version published 7 months ago

Package Health Score

72 / 100
Full package analysis