Skip to content

Commit

Permalink
chore: initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sachdevavaibhav committed May 9, 2024
1 parent 08a0a86 commit 8a9bf6c
Show file tree
Hide file tree
Showing 21 changed files with 19,272 additions and 644 deletions.
6 changes: 6 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

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

expo-env.d.ts
# @end expo-cli
37 changes: 0 additions & 37 deletions example/app/(tabs)/_layout.tsx

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

38 changes: 3 additions & 35 deletions example/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
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 { useColorScheme } from '@/hooks/useColorScheme';

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

import React from 'react';
import App from '../src/App';
export default function RootLayout() {
const colorScheme = useColorScheme();
const [loaded] = useFonts({
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
});

useEffect(() => {
if (loaded) {
SplashScreen.hideAsync();
}
}, [loaded]);

if (!loaded) {
return null;
}

return (
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
</ThemeProvider>
);
return <App />;
}
41 changes: 0 additions & 41 deletions example/components/Collapsible.tsx

This file was deleted.

Loading

0 comments on commit 8a9bf6c

Please sign in to comment.