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
const { | |
withAppDelegate, | |
withInfoPlist, | |
withEntitlementsPlist, | |
withAppBuildGradle, | |
withMainApplication, | |
withStringsXml, | |
AndroidConfig, | |
} = require('@expo/config-plugins'); | |
const { mergeContents } = require('@expo/config-plugins/build/utils/generateCode'); |
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
{ | |
"main": "index.tsx", | |
} |
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 { | |
blue, | |
blueDark, | |
gray, | |
grayDark, | |
green, | |
greenDark, | |
orange, | |
orangeDark, | |
pink, |
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 { createContext, useContext, useRef } from 'react' | |
import { Button, Text } from 'tamagui' | |
import { createStore, useStore, type StateCreator, type StoreApi } from 'zustand' | |
const ViewModelContext = createContext<StoreApi<any> | null>(null) | |
const ViewModelProvider = <T,>({ | |
children, | |
initializer, | |
}: React.PropsWithChildren<{ initializer: StateCreator<T> }>) => { |
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 { useState } from 'react' | |
import Animated, { | |
Extrapolation, | |
interpolate, | |
useAnimatedScrollHandler, | |
useAnimatedStyle, | |
useSharedValue, | |
} from 'react-native-reanimated' | |
import { Card, Text, View } from 'tamagui' |
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 { useForm, FormProvider } from "react-hook-form"; | |
import { zodResolver } from "@hookform/resolvers/zod"; | |
import { z } from "zod"; | |
const baseRincianNilaiSchema = z | |
.object({ | |
name: z.string(), | |
persenan: z.string(), | |
child: z.array(z.any()).optional(), // Fine-tune this as needed |
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 { CountryCode } from 'libphonenumber-js'; | |
import { AppLocale } from './i18n'; | |
export const countriesWithLocale: Record<AppLocale, Record<CountryCode, string>> = { | |
en: { | |
AC: 'Ascension Island', | |
AD: 'Andorra', | |
AE: 'United Arab Emirates', | |
AF: 'Afghanistan', |
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
enum Currency { | |
IDR = "IDR", | |
USD = "USD", | |
} | |
const separator: Record<Currency, string> = { | |
IDR: ".", | |
USD: ",", | |
}; |
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 { View, TextInput, Text } from 'react-native'; | |
import { verticalScale, horizontalScale, moderateScale } from '@/utils/sizing'; | |
export function Input(props: { placeholder: string; label: string; isNumPad?: boolean }) { | |
return ( | |
<View | |
style={{ | |
backgroundColor: '#F8FAFC', | |
paddingTop: verticalScale(8), |
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 { Dimensions } from 'react-native'; | |
const { width, height } = Dimensions.get('window'); | |
const guidelineBaseWidth = 360; | |
const guidelineBaseHeight = 724; | |
/** | |
* | |
* @param size number |
NewerOlder