This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
import { Pressable } from 'react-native' | |
import { Text } from '..' | |
import { formatDate } from '../../helpers/date' | |
import Box from '../Box' | |
import DatePicker, { DatePickerProps } from '../DatePicker' | |
import { isIOS } from '@internals/helpers' | |
export interface Props extends Pick<DatePickerProps, 'maximumDate' | 'minimumDate'> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CaretRight, Lock } from 'phosphor-react-native' | |
import React from 'react' | |
import { StyleSheet, View, TouchableOpacity } from 'react-native' | |
import { Box, Text } from '@internals/components' | |
import { normalize } from '@internals/helpers' | |
import { globalStyles, themedColors } from '@internals/theme' | |
export type FormInfoProps = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { TouchableOpacity, ViewStyle, View, ActivityIndicator, StyleSheet } from 'react-native' | |
import Box from '../Box' | |
import Text from '../Text' | |
import { normalize } from '@internals/helpers' | |
import { ColorKey } from '@internals/types' | |
import { colors, fonts, fontSizes, sizes, themedColors } from '../../theme' | |
import { globalStyles } from '@internals/theme' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 675323520, | |
"booking_id": 145056483, | |
"user_id": 1511861, | |
"shift_date": "2024-10-13", | |
"originator": "DF5532A4-A96C-4F4E-BD2A-04DC0AB903BA", | |
"publisher": null, | |
"delta": "{\"status\": \"seated\", \"status_updated_at\": \"2024-10-13T10:06:30.610847Z\"}", | |
"previous_state": "{\"id\": 145056483, \"to\": \"reservations.aoizakaya@gmail.com,pferreira@groupepassionne.com,reservations@markigroupe.com\", \"day\": \"2024-10-13\", \"url\": null, \"zip\": null, \"date\": \"2024-10-07 20:31:56\", \"lang\": \"fr\", \"time\": \"12:00\", \"type\": \"web\", \"uuid\": \"2fd34736-e1e0-4732-9ccc-315a553d2359\", \"email\": \"jopool71.guidable901@passmail.net\", \"budget\": null, \"moment\": null, \"review\": null, \"status\": \"confirmed\", \"comment\": null, \"country\": \"fr\", \"is_safe\": false, \"civility\": \"mr\", \"is_risky\": false, \"lastname\": \"borel\", \"resto_id\": 355322, \"allergies\": null, \"firstname\": \"jerom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const SCREEN_WIDTH = Dimensions.get('window').width | |
export const SCREEN_HEIGHT = Dimensions.get('window').height | |
// based on iphone 11 pro's scale | |
const scale = SCREEN_WIDTH / 375 | |
const scaleHeight = SCREEN_HEIGHT / 812 | |
export const normalize = (size: number, forHeight?: boolean) => { | |
const newSize = size * (forHeight ? scaleHeight : scale) | |
return Math.round(PixelRatio.roundToNearestPixel(newSize)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'react-native' | |
declare module 'react-native' { | |
namespace StyleSheet { | |
type Style = ViewStyle | TextStyle | ImageStyle | |
type NamedStyles<T> = { [P in keyof T]: Style } | |
/** | |
* Creates a StyleSheet style reference from the given object. | |
*/ |