This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BaseLoader<T> : IBaseLoader<T> | |
where T : class | |
{ | |
private readonly ConcurrentDictionary<string, Lazy<Task<T?>>> cache = new(); | |
public Task<T?> LoadAsync(string key, Func<Task<T?>> factory) | |
{ | |
return cache.GetOrAdd(key, (_) => new Lazy<Task<T?>>(factory)).Value; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react' | |
import Animated, { | |
useAnimatedStyle, | |
useSharedValue, | |
withDelay, | |
withSpring, | |
withTiming | |
} from 'react-native-reanimated' | |
const ScaleInOut = ({ |