import { useState } from 'react'; import { Pressable, Text, View } from 'react-native'; import AsyncStorage from '@react-native-async-storage/async-storage'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer } from '@react-navigation/native'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated'; import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'; import Svg, { Circle } from 'react-native-svg'; const Tabs = createBottomTabNavigator(); function Home() { const [count, setCount] = useState(0); const opacity = useSharedValue(1); const style = useAnimatedStyle(() => ({ opacity: opacity.value })); return ( Saved: {count} { const next = count + 1; await AsyncStorage.setItem('count', String(next)); opacity.value = withTiming(0.5); setCount(next); }} > Save counter ); } function Details() { return ( Details screen ); } export default function App() { return ( ); }