Skip to content

Commit

Permalink
add font and Text component
Browse files Browse the repository at this point in the history
  • Loading branch information
emzet93 committed Jul 1, 2024
1 parent 4e94a4e commit 9eb97c2
Show file tree
Hide file tree
Showing 31 changed files with 2,097 additions and 664 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: ["expo", "prettier"],
plugins: ["prettier", "import"],
rules: {
"prettier/prettier": "error",
"import/order": [
"error",
{
"newlines-between": "always",
pathGroups: [
{
pattern: "@/**",
group: "parent",
},
],
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ web-build/

# macOS
.DS_Store

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

expo-env.d.ts
# @end expo-cli
6 changes: 4 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.emzet.poolsuite"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"package": "com.emzet.poolsuite"
},
"web": {
"bundler": "metro",
Expand Down
37 changes: 0 additions & 37 deletions app/(tabs)/_layout.tsx

This file was deleted.

102 changes: 0 additions & 102 deletions app/(tabs)/explore.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions app/(tabs)/index.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions app/+html.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/+not-found.tsx

This file was deleted.

27 changes: 12 additions & 15 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
import * as SplashScreen from 'expo-splash-screen';
import { useEffect } from 'react';
import 'react-native-reanimated';
import { useFonts } from "expo-font";
import { Stack } from "expo-router";
import * as SplashScreen from "expo-splash-screen";
import { useEffect } from "react";

import { useColorScheme } from '@/hooks/useColorScheme';
import { setupThemes } from "@/theme";
import "react-native-reanimated";

setupThemes();

// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync();

export default function RootLayout() {
const colorScheme = useColorScheme();
const [loaded] = useFonts({
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
Chicago: require("../assets/fonts/Chicago.ttf"),
});

useEffect(() => {
Expand All @@ -27,11 +27,8 @@ export default function RootLayout() {
}

return (
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
</ThemeProvider>
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
</Stack>
);
}
Loading

0 comments on commit 9eb97c2

Please sign in to comment.