How to use the react-native-flash-message.hideMessage function in react-native-flash-message

To help you get started, we’ve selected a few react-native-flash-message 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 MetaMask / metamask-mobile / app / core / PaymentChannelsClient.js View on Github external
const newInternalTxs = this.handleInternalTransactions(newStatus.txHash);
					Engine.context.TransactionController.update({ internalTransactions: newInternalTxs });
					this.setState({ withdrawalPending: false, withdrawalPendingValue: undefined });
				}
			}
		}

		if (newStatus.type !== status.type) {
			newStatus.reset = true;
			if (newStatus.type && newStatus.type !== 'DEPOSIT_PENDING') {
				const notification_type = newStatus.type
					.toLowerCase()
					.split('_')
					.reverse()
					.join('_');
				hideMessage();
				setTimeout(() => {
					TransactionsNotificationManager.showInstantPaymentNotification(notification_type);
				}, 300);
			}
		}
		this.setState({ status: newStatus });
	}

react-native-flash-message

React Native flashbar and top notification alert utility

MIT
Latest version published 9 months ago

Package Health Score

64 / 100
Full package analysis