│ │ │ 1. Device Token Registration Error (HTTP 500) │ │ - File: service/api-device-token.ts │ │ - Fix: Hapus nested data wrapper pada payload │ │ - Improvement: Tambahkan error logging detail │ │ │ │ 2. Uncaught Promise Errors │ │ - File: components/Notification/NotificationInitializer.tsx │ │ - Fix: Better error handling untuk device token registration │ │ - File: app/(application)/(user)/home.tsx │ │ - Fix: Add .catch() untuk userData() dan error handling apiUser() │ │ - File: app/(application)/(user)/profile/[id]/index.tsx │ │ - Fix: Add error handling untuk apiProfile(), apiUser(), userData() │ │ │ │ 3. UI Improvements │ │ - File: app/(application)/(user)/home.tsx │ │ - Feature: 4 skeleton lingkaran untuk loading state grid features │ │ │ │ 4. Maps Migration │ │ - File: app/(application)/admin/maps.tsx │ │ - Change: Replace react-native-maps dengan MapsV2Custom (Maplibre) │ │ - Cleanup: Hapus unused imports dan interfaces │ │ │ │ Files Modified (7) │ │ - app/(application)/(user)/home.tsx │ │ - app/(application)/(user)/profile/[id]/index.tsx │ │ - app/(application)/admin/maps.tsx │ │ - components/Notification/NotificationInitializer.tsx │ │ - service/api-device-token.ts │ │ - constants/constans-value.ts │ │ - screens/Home/bottomFeatureSection.tsx │ │ - screens/UserSeach/MainView_V2.tsx ### No Issue
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
import { Platform } from "react-native";
|
|
|
|
export {
|
|
OS_ANDROID_HEIGHT,
|
|
OS_IOS_HEIGHT,
|
|
OS_HEIGHT,
|
|
TEXT_SIZE_SMALL,
|
|
TEXT_SIZE_MEDIUM,
|
|
TEXT_SIZE_LARGE,
|
|
TEXT_SIZE_XLARGE,
|
|
ICON_SIZE_XLARGE as ICON_SIZE_XLARGE,
|
|
ICON_SIZE_LARGE as ICON_SIZE_MEDIUM,
|
|
ICON_SIZE_MEDIUM as ICON_SIZE_SMALL,
|
|
ICON_SIZE_XSMALL as ICON_SIZE_XSMALL,
|
|
ICON_SIZE_SMALLL as ICON_SIZE_BUTTON,
|
|
DRAWER_HEIGHT,
|
|
RADIUS_BUTTON,
|
|
PADDING_EXTRA_SMALL,
|
|
PADDING_SMALL,
|
|
PADDING_MEDIUM,
|
|
PADDING_LARGE,
|
|
PAGINATION_DEFAULT_TAKE
|
|
};
|
|
|
|
// OS Height
|
|
const OS_ANDROID_HEIGHT = 115
|
|
const OS_IOS_HEIGHT = 80
|
|
const OS_HEIGHT = Platform.OS === "ios" ? OS_IOS_HEIGHT : OS_ANDROID_HEIGHT
|
|
|
|
// Text Size
|
|
const TEXT_SIZE_SMALL = 12;
|
|
const TEXT_SIZE_MEDIUM = 14;
|
|
const TEXT_SIZE_LARGE = 16;
|
|
const TEXT_SIZE_XLARGE = 18;
|
|
|
|
// Icon Size
|
|
const ICON_SIZE_XSMALL = 10
|
|
const ICON_SIZE_SMALLL = 14
|
|
const ICON_SIZE_MEDIUM = 18;
|
|
const ICON_SIZE_LARGE = 22;
|
|
const ICON_SIZE_XLARGE = 26;
|
|
|
|
// Drawer Height
|
|
const DRAWER_HEIGHT = 500; // tinggi drawer5
|
|
|
|
// Radius Button
|
|
const RADIUS_BUTTON = 50
|
|
|
|
// Padding
|
|
const PADDING_EXTRA_SMALL = 10
|
|
const PADDING_SMALL = 12
|
|
const PADDING_MEDIUM = 16
|
|
const PADDING_LARGE = 20
|
|
|
|
// Pagination
|
|
const PAGINATION_DEFAULT_TAKE = 10;
|