Kantongku: content area dengan pojok atas rounded di atas teal
This commit is contained in:
@@ -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,7 +203,7 @@ export function DashboardScreen() {
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.safe} edges={['top']}>
|
||||
<View style={[styles.statusStrip, { height: insets.top }]} />
|
||||
<View style={styles.contentWrap}>
|
||||
<ScrollView style={styles.container} contentContainerStyle={styles.content}>
|
||||
<LinearGradient
|
||||
colors={['#FFFFFF', '#FFFFFF', colors.background]}
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user