-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RSN-12 Renamed folder 'packages' to 'shared, implemented base generic…
… API services and auth services
- Loading branch information
Showing
29 changed files
with
496 additions
and
126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.DS_Store | ||
THUMBS_DB |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { | ||
Button, | ||
H1, | ||
Paragraph, | ||
Separator, | ||
YStack, | ||
} from '@my/ui' | ||
import { useLink } from 'solito/link' | ||
|
||
export const HomeScreen = () => { | ||
const link = useLink({ | ||
href: '/user/420', | ||
}) | ||
|
||
return ( | ||
<YStack f={1} jc="center" ai="center" p="$4" gap> | ||
<YStack gap="$4" bc="$background"> | ||
<H1 ta="center">Reasn.</H1> | ||
<Separator /> | ||
<Paragraph>find your reasn to meet</Paragraph> | ||
<Button {...link}> | ||
user | ||
</Button> | ||
</YStack> | ||
</YStack> | ||
) | ||
} |
26 changes: 26 additions & 0 deletions
26
Client/reasn-client/shared/app/features/user/detail-screen.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Button, H1, Paragraph, Separator, YStack } from '@my/ui' | ||
import { ChevronLeft } from '@tamagui/lucide-icons' | ||
import { createParam } from 'solito' | ||
import { useLink } from 'solito/link' | ||
|
||
const { useParam } = createParam<{ id: string }>() | ||
|
||
export const UserDetailScreen = () => { | ||
const [id] = useParam('id') | ||
const link = useLink({ | ||
href: '/', | ||
}) | ||
|
||
return ( | ||
<YStack f={1} jc="center" ai="center" p="$4" gap> | ||
<YStack gap="$4" bc="$background"> | ||
<H1 ta="center">Reasn.</H1> | ||
<Separator /> | ||
<Paragraph ta="center">{`User ID: ${id}`}</Paragraph> | ||
<Button {...link} icon={ChevronLeft}> | ||
back | ||
</Button> | ||
</YStack> | ||
</YStack> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// leave this blank | ||
// don't re-export files from this workspace. it'll break next.js tree shaking | ||
// https://github.com/vercel/next.js/issues/12557 | ||
export {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": "0.0.0", | ||
"name": "app", | ||
"main": "index.ts", | ||
"private": true, | ||
"sideEffects": [ | ||
"*.css" | ||
], | ||
"dependencies": { | ||
"@my/ui": "0.0.1", | ||
"@tamagui/animations-react-native": "^1.91.4", | ||
"@tamagui/colors": "^1.91.4", | ||
"@tamagui/font-inter": "^1.91.4", | ||
"@tamagui/lucide-icons": "^1.91.4", | ||
"@tamagui/shorthands": "^1.91.4", | ||
"@tamagui/themes": "^1.91.4", | ||
"burnt": "^0.12.1", | ||
"expo-constants": "~14.4.2", | ||
"expo-linking": "~5.0.2", | ||
"react-native-safe-area-context": "4.6.3", | ||
"solito": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.27", | ||
"@types/react-native": "^0.71.3" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ToastViewport as ToastViewportOg } from '@my/ui' | ||
import { useSafeAreaInsets } from 'react-native-safe-area-context' | ||
|
||
export const ToastViewport = () => { | ||
const { top, right, left } = useSafeAreaInsets() | ||
return <ToastViewportOg top={top + 5} left={left} right={right} /> | ||
} |
5 changes: 5 additions & 0 deletions
5
Client/reasn-client/shared/app/provider/ToastViewport.web.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { ToastViewport as ToastViewportOg } from '@my/ui' | ||
|
||
export const ToastViewport = () => { | ||
return <ToastViewportOg left={0} right={0} top={10} /> | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { CustomToast, TamaguiProvider, TamaguiProviderProps, ToastProvider, config } from '@my/ui' | ||
import { useColorScheme } from 'react-native' | ||
|
||
import { ToastViewport } from './ToastViewport' | ||
|
||
export function Provider({ children, ...rest }: Omit<TamaguiProviderProps, 'config'>) { | ||
const scheme = useColorScheme() | ||
return ( | ||
<TamaguiProvider | ||
config={config} | ||
disableInjectCSS | ||
defaultTheme={scheme === 'dark' ? 'dark' : 'light'} | ||
{...rest} | ||
> | ||
<ToastProvider | ||
swipeDirection="horizontal" | ||
duration={6000} | ||
native={ | ||
[ | ||
/* uncomment the next line to do native toasts on mobile. NOTE: it'll require you making a dev build and won't work with Expo Go */ | ||
// 'mobile' | ||
] | ||
} | ||
> | ||
{children} | ||
|
||
<CustomToast /> | ||
<ToastViewport /> | ||
</ToastProvider> | ||
</TamaguiProvider> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.base", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"composite": true, | ||
"jsx": "react-jsx" | ||
}, | ||
"references": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { config } from '@my/config' | ||
|
||
export type Conf = typeof config | ||
|
||
declare module '@my/ui' { | ||
interface TamaguiCustomConfig extends Conf {} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "@my/config", | ||
"version": "0.0.1", | ||
"sideEffects": [ | ||
"*.css" | ||
], | ||
"private": true, | ||
"types": "./src", | ||
"main": "src/index.ts", | ||
"files": [ | ||
"types", | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tamagui-build --skip-types", | ||
"watch": "tamagui-build --skip-types --watch" | ||
}, | ||
"dependencies": { | ||
"@tamagui/animations-react-native": "^1.91.4", | ||
"@tamagui/font-inter": "^1.91.4", | ||
"@tamagui/react-native-media-driver": "^1.91.4", | ||
"@tamagui/shorthands": "^1.91.4", | ||
"@tamagui/themes": "^1.91.4", | ||
"tamagui": "^1.91.4" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "^1.91.4" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './tamagui.config' |
Oops, something went wrong.