import { Dimensions } from 'react-native'; const { width, height } = Dimensions.get('screen'); export const metrics = Object.freeze({ APOLLO: { DEBOUNCE_TIMEOUT: 100, }, LIMITS: { rooms: 100, messages: 100, notifications: 100, }, STORAGE: { THEME_KEY: '@theme', ACCESS_TOKEN_KEY: '@accessToken', REFRESH_TOKEN_KEY: '@refreshToken', PUSH_NOTIFICATION_TOKEN_KEY: '@pushNotificationToken', LANGUAGE_KEY: '@language', ACTIVE_ROOM_ID: '@activeRoomId', PRE_REQUESTED_ROUTE: '@preRequestedRoute', DRAFT_ID: '@draftId', }, DURATION: { alertStayTime: 5, }, STYLES: { topBarHeight: 50, headerHeight: 50, bottomBarHeight: 50, sideBarWidth: 260, sideBarCollapseWidth: 66, sideBarCollapsedItemWidth: 46, happeningBarWidth: 290, screenPaddingBottom: 45, rightPopUpWidth: 290, radius: { chip: 30, card: 10, button: 5, }, }, Z_INDEX: { messageAction: 11, sideBar: 10, sideBarUnderLay: 9, alert: 100, dialogUnderLay: 19, dialog: 20, content: 3, }, RICH_TEXT_EDITOR: { INPUT_DEBOUNCE: 2000, }, DIMENSIONS: { WIDTH: width, HEIGHT: height, }, });