-
-
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.
- Loading branch information
Showing
35 changed files
with
346 additions
and
213 deletions.
There are no files selected for viewing
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,12 @@ | ||
# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) | ||
# and commit this file to your remote git repository to share the goodness with others. | ||
|
||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart | ||
|
||
tasks: | ||
- command: | | ||
curl -fsSL https://bun.sh/install | bash | ||
source /home/gitpod/.bashrc | ||
bun install | ||
bun web |
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 |
---|---|---|
|
@@ -67,5 +67,6 @@ buck-out/ | |
.expo/ | ||
web-build/ | ||
dist/ | ||
expo-env.d.ts | ||
|
||
# @end expo-cli |
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig", | ||
"extends": "expo/tsconfig.base", | ||
"compilerOptions": { | ||
"composite": true, | ||
"strict": true, | ||
"noEmit": true | ||
}, | ||
"include": ["**/*.ts", "**/*.tsx"] | ||
"include": ["app/**/*.ts", "app/**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"] | ||
} |
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,59 @@ | ||
'use client' | ||
|
||
import '@tamagui/core/reset.css' | ||
import '@tamagui/font-inter/css/400.css' | ||
import '@tamagui/font-inter/css/700.css' | ||
import { config } from '@my/ui' | ||
import { Provider } from 'app/provider' | ||
import { useServerInsertedHTML } from 'next/navigation' | ||
import type { ReactNode } from 'react' | ||
import { StyleSheet } from 'react-native' | ||
|
||
if (process.env.NODE_ENV === 'production') { | ||
require('../public/tamagui.css') | ||
} | ||
|
||
export function NextTamaguiProvider({ children }: { children: ReactNode }) { | ||
useServerInsertedHTML(() => { | ||
// @ts-ignore | ||
const rnwStyle = StyleSheet.getSheet() | ||
return ( | ||
<> | ||
<style dangerouslySetInnerHTML={{ __html: rnwStyle.textContent }} id={rnwStyle.id} /> | ||
|
||
<style | ||
dangerouslySetInnerHTML={{ | ||
// the first time this runs you'll get the full CSS including all themes | ||
// after that, it will only return CSS generated since the last call | ||
__html: config.getNewCSS(), | ||
}} | ||
/> | ||
|
||
<style | ||
dangerouslySetInnerHTML={{ | ||
__html: config.getCSS({ | ||
// if you are using "outputCSS" option, you should use this "exclude" | ||
// if not, then you can leave the option out | ||
exclude: process.env.NODE_ENV === 'production' ? 'design-system' : null, | ||
}), | ||
}} | ||
/> | ||
|
||
<script | ||
dangerouslySetInnerHTML={{ | ||
// avoid flash of animated things on enter: | ||
__html: `document.documentElement.classList.add('t_unmounted')`, | ||
}} | ||
/> | ||
|
||
<style jsx global>{` | ||
html { | ||
font-family: 'Inter'; | ||
} | ||
`}</style> | ||
</> | ||
) | ||
}) | ||
|
||
return <Provider>{children}</Provider> | ||
} |
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,63 @@ | ||
import { Analytics } from '@vercel/analytics/next' | ||
import type { Metadata } from 'next' | ||
import type { ReactNode } from 'react' | ||
import { NextTamaguiProvider } from './NextTamaguiProvider' | ||
|
||
const APP_TITLE = 'Tamagui Expo Next.js Monorepo App' | ||
const APP_TITLE_TEMPLATE = '%s - Tamagui App' | ||
const APP_DESCRIPTION = 'Tamagui, Expo, Next.js & Solito monorepo' | ||
const APP_URL = 'https://expo-next-tamagui-monorepo.vercel.app/' | ||
const APP_TWITTER = '@HuuQuyetNg' | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
// You can use `suppressHydrationWarning` to avoid the warning about mismatched content during hydration in dev mode | ||
<html lang="en" suppressHydrationWarning> | ||
<body> | ||
<NextTamaguiProvider>{children}</NextTamaguiProvider> | ||
<Analytics /> | ||
</body> | ||
</html> | ||
) | ||
} | ||
|
||
export const metadata: Metadata = { | ||
applicationName: APP_TITLE, | ||
title: { | ||
default: APP_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
manifest: '/manifest.json', | ||
metadataBase: new URL('https://${process.env.VERCEL_URL}'), | ||
appleWebApp: { | ||
capable: true, | ||
statusBarStyle: 'default', | ||
title: APP_TITLE, | ||
// startUpImage: [], | ||
}, | ||
formatDetection: { | ||
telephone: false, | ||
}, | ||
openGraph: { | ||
type: 'website', | ||
siteName: APP_TITLE, | ||
title: { | ||
default: APP_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
url: APP_URL, | ||
images: ['/vercel.svg'], | ||
}, | ||
twitter: { | ||
card: 'summary', | ||
title: { | ||
default: APP_TITLE, | ||
template: APP_TITLE_TEMPLATE, | ||
}, | ||
description: APP_DESCRIPTION, | ||
site: APP_TWITTER, | ||
}, | ||
keywords: ['Todo', 'Tamagui', 'Expo', 'Solito', 'Next.js', 'zustand', 'monorepo'], | ||
} |
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 @@ | ||
'use client' | ||
|
||
import { TodoApp } from 'app/features/home' | ||
|
||
export default TodoApp |
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
Oops, something went wrong.