@hoddy-ui/core 2.5.27 → 2.5.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "2.5.27",
3
+ "version": "2.5.28",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -77,6 +77,8 @@ const FlashMessage: React.FC = () => {
77
77
  // Animate out after duration
78
78
  const duration = msg.duration || 3000;
79
79
  timeoutRef.current = setTimeout(() => {
80
+ console.log("Auto-hiding flash message after duration");
81
+
80
82
  translateY.value = withTiming(-200, { duration: 300 });
81
83
  opacity.value = withTiming(0, { duration: 300 }, () => {
82
84
  runOnJS(hideMessage)();
@@ -93,7 +95,7 @@ const FlashMessage: React.FC = () => {
93
95
  }
94
96
  unsubscribe();
95
97
  };
96
- }, [message, opacity, translateY]);
98
+ }, []);
97
99
 
98
100
  const animatedStyle = useAnimatedStyle(() => {
99
101
  return {
@@ -128,7 +130,7 @@ const FlashMessage: React.FC = () => {
128
130
  },
129
131
  });
130
132
 
131
- // if (!message) return null;
133
+ if (!message) return null;
132
134
 
133
135
  return (
134
136
  <Animated.View style={[styles.root, animatedStyle]}>