@umituz/react-native-splash 1.8.1 → 1.9.0

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": "@umituz/react-native-splash",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Generic splash screen for React Native apps with animations, gradients, and customizable branding. SOLID, DRY, KISS principles applied.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -50,7 +50,7 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
50
50
 
51
51
  const styles = getStyles(insets, tokens.spacing);
52
52
 
53
- const timerRef = useRef<NodeJS.Timeout>();
53
+ const timerRef = useRef<NodeJS.Timeout | null>(null);
54
54
 
55
55
  useEffect(() => {
56
56
  if (!visible) return;
@@ -18,7 +18,7 @@ export const useSplash = ({
18
18
  }: UseSplashOptions = {}) => {
19
19
  const [isVisible, setIsVisible] = useState(true);
20
20
  const [isReady, setIsReady] = useState(false);
21
- const timerRef = useRef<NodeJS.Timeout>();
21
+ const timerRef = useRef<NodeJS.Timeout | null>(null);
22
22
  const isReadyRef = useRef(false);
23
23
 
24
24
  const hide = () => {