feat: fixes and formatter

This commit is contained in:
2026-01-12 16:01:32 +01:00
parent 85c6084351
commit 11e632acff
353 changed files with 23315 additions and 27361 deletions
+17 -19
View File
@@ -1,15 +1,15 @@
import { useState, useEffect, createContext, useRef } from "react";
import { StyleSheet, Animated } from "react-native";
import { Palette, Style } from "../styles";
import { Image } from "expo-image";
import { useState, useEffect, createContext, useRef } from 'react'
import { StyleSheet, Animated } from 'react-native'
import { Palette, Style } from '../styles'
import { Image } from 'expo-image'
export const SplashAnimationContext = createContext();
export const SplashAnimationContext = createContext()
const SplashAnimationProvider = ({ children }) => {
const [isFullyLoaded, setIsFullyLoaded] = useState(false);
const [showOverlay, setShowOverlay] = useState(true);
const [isFullyLoaded, setIsFullyLoaded] = useState(false)
const [showOverlay, setShowOverlay] = useState(true)
const fadeAnim = useRef(new Animated.Value(1)).current;
const fadeAnim = useRef(new Animated.Value(1)).current
useEffect(() => {
if (isFullyLoaded) {
@@ -18,15 +18,13 @@ const SplashAnimationProvider = ({ children }) => {
duration: 500,
useNativeDriver: true,
}).start(() => {
setShowOverlay(false);
});
setShowOverlay(false)
})
}
}, [isFullyLoaded]);
}, [isFullyLoaded])
return (
<SplashAnimationContext.Provider
value={{ isFullyLoaded, setIsFullyLoaded }}
>
<SplashAnimationContext.Provider value={{ isFullyLoaded, setIsFullyLoaded }}>
{children}
{showOverlay && (
@@ -40,8 +38,8 @@ const SplashAnimationProvider = ({ children }) => {
}}
>
<Image
source={require("../../assets/splash.png")}
contentFit={"contain"}
source={require('../../assets/splash.png')}
contentFit={'contain'}
style={{
width: 250,
height: 250,
@@ -50,7 +48,7 @@ const SplashAnimationProvider = ({ children }) => {
</Animated.View>
)}
</SplashAnimationContext.Provider>
);
};
)
}
export default SplashAnimationProvider;
export default SplashAnimationProvider