-
Notifications
You must be signed in to change notification settings - Fork 1
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
16 changed files
with
58,467 additions
and
2,980 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
53,431 changes: 53,431 additions & 0 deletions
53,431
packages/mobile-app/.tamagui/tamagui.config.json
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
import { | ||
DarkTheme, | ||
DefaultTheme, | ||
ThemeProvider, | ||
} from "@react-navigation/native"; | ||
import { Stack } from "expo-router"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
|
||
import { FacadeProvider } from "../data"; | ||
import { useColorScheme } from "react-native"; | ||
import { UIKitProvider } from "@ironfish/ui"; | ||
|
||
const queryClient = new QueryClient(); | ||
|
||
export default function Layout() { | ||
const scheme = useColorScheme(); | ||
return ( | ||
<QueryClientProvider client={queryClient}> | ||
<FacadeProvider> | ||
<Stack> | ||
<Stack.Screen | ||
name="(tabs)" | ||
options={{ | ||
headerShown: false, | ||
}} | ||
/> | ||
</Stack> | ||
</FacadeProvider> | ||
</QueryClientProvider> | ||
<ThemeProvider value={scheme === "dark" ? DarkTheme : DefaultTheme}> | ||
<UIKitProvider colorScheme={scheme || "light"}> | ||
<QueryClientProvider client={queryClient}> | ||
<FacadeProvider> | ||
<Stack> | ||
<Stack.Screen | ||
name="(tabs)" | ||
options={{ | ||
headerShown: false, | ||
}} | ||
/> | ||
</Stack> | ||
</FacadeProvider> | ||
</QueryClientProvider> | ||
</UIKitProvider> | ||
</ThemeProvider> | ||
); | ||
} |
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,6 +1,19 @@ | ||
module.exports = function(api) { | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
presets: ["babel-preset-expo"], | ||
plugins: [ | ||
...(process.env.EAS_BUILD_PLATFORM === "android" | ||
? [] | ||
: [ | ||
[ | ||
"@tamagui/babel-plugin", | ||
{ | ||
components: ["@ironfish/ui", "tamagui"], | ||
config: "../../packages/ui-kit/src/theme/config.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
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.