Skip to content

Commit

Permalink
Merge branch 'main' into cwz/ocf-30-navigation-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
christophertorres1 authored Dec 7, 2024
2 parents 6e95c8c + 3e1cb03 commit 54885fa
Show file tree
Hide file tree
Showing 34 changed files with 986 additions and 17,080 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-shadow': 'error',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
};
13 changes: 2 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ dist/
web-build/

# Platforms
ios/*
android/*
ios/
android/

# Native
*.orig.*
Expand Down Expand Up @@ -38,12 +38,3 @@ yarn-error.*

# typescript
*.tsbuildinfo

<<<<<<< HEAD
ios/
android/
=======
# ios
ios/*
android/*
>>>>>>> 893ea80 (auth)
28 changes: 28 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';


import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
Expand Down Expand Up @@ -72,4 +74,30 @@ export default function App() {
</LoginStack.Navigator>
</NavigationContainer>
);


import { Text } from 'react-native';
import { useFonts } from 'expo-font';
import { DMSans_400Regular, DMSans_700Bold } from '@expo-google-fonts/dm-sans';
import { DefaultTheme } from '@react-navigation/native';
import AppNavigator from '@/navigation/AppNavigator';
import colors from '@/styles/colors';

DefaultTheme.colors.background = colors.white;

export default function App() {
const [fontsLoaded] = useFonts({
DMSans_400Regular,
DMSans_700Bold,
});

if (!fontsLoaded) {
return null;
}

const defaultFontFamily = 'DMSans_400Regular';
(Text as any).defaultProps = (Text as any).defaultProps || {};
(Text as any).defaultProps.style = { fontFamily: defaultFontFamily };

return <AppNavigator />;
}
1 change: 0 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},

"platforms": ["ios", "android", "web"],
"ios": {
"bundleIdentifier": "org.calblueprint.ourcityforest",
Expand Down
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { registerRootComponent } from 'expo';
import App from './App';

registerRootComponent(App);
Loading

0 comments on commit 54885fa

Please sign in to comment.