diff --git a/src/screens/DashboardScreen.tsx b/src/screens/DashboardScreen.tsx index 11c8c29..90b0ef7 100644 --- a/src/screens/DashboardScreen.tsx +++ b/src/screens/DashboardScreen.tsx @@ -12,7 +12,7 @@ import { Text, View, } from 'react-native'; -import { SafeAreaView } from 'react-native-safe-area-context'; +import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context'; import { colors } from '../theme/colors'; import { formatRupiah, formatRupiahShort, todayLabel } from '../utils/format'; import { @@ -38,6 +38,7 @@ const QUOTES = [ ]; export function DashboardScreen() { + const insets = useSafeAreaInsets(); const navigation = useNavigation>(); const [balance, setBalance] = useState(0); @@ -203,6 +204,7 @@ export function DashboardScreen() { return ( +