Kantongku: content area dengan pojok atas rounded di atas teal

This commit is contained in:
Bro
2026-08-16 16:13:25 +07:00
parent a93cc7f642
commit 99ee84a998
+11 -11
View File
@@ -12,7 +12,7 @@ import {
Text,
View,
} from 'react-native';
import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
import { SafeAreaView } from 'react-native-safe-area-context';
import { colors } from '../theme/colors';
import { formatRupiah, formatRupiahShort, todayLabel } from '../utils/format';
import {
@@ -38,7 +38,6 @@ const QUOTES = [
];
export function DashboardScreen() {
const insets = useSafeAreaInsets();
const navigation = useNavigation<BottomTabNavigationProp<RootTabParamList>>();
const [balance, setBalance] = useState(0);
@@ -204,8 +203,8 @@ export function DashboardScreen() {
return (
<SafeAreaView style={styles.safe} edges={['top']}>
<View style={[styles.statusStrip, { height: insets.top }]} />
<ScrollView style={styles.container} contentContainerStyle={styles.content}>
<View style={styles.contentWrap}>
<ScrollView style={styles.container} contentContainerStyle={styles.content}>
<LinearGradient
colors={['#FFFFFF', '#FFFFFF', colors.background]}
style={styles.header}
@@ -600,18 +599,19 @@ export function DashboardScreen() {
})
)}
</ScrollView>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
safe: { flex: 1, backgroundColor: colors.background },
statusStrip: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
backgroundColor: colors.primary,
safe: { flex: 1, backgroundColor: colors.primary },
contentWrap: {
flex: 1,
backgroundColor: colors.background,
borderTopLeftRadius: 24,
borderTopRightRadius: 24,
overflow: 'hidden',
},
container: { flex: 1 },
content: { paddingBottom: 32 },