INNER CODE UNIT · JavaScript
hideMessage
lucasferreira/react-native-flash-message · src/FlashMessage.js:100
export function hideMessage(...args) {
if (!!FlashMessageManager._enabled) {
const ref = FlashMessageManager.getCurrent();
if (!!ref) ref.hideMessage(...args);
}
}
/**
* Default transition config for FlashMessage component
* You can create your own transition config with interpolation, just remember to return some style object with transform options
*/
export function FlashMessageTransition(animValue, position = "top") {
const opacity = animValue.interpolate({
inputRange: [0, 1],
outputRange: [0, 1],
});
if (position === "top") {