Skip to content

Commit

Permalink
Merge branch 'main' into ocf-18-qr-gen-edge
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 authored Dec 7, 2024
2 parents d885e2f + 3e1cb03 commit f682583
Show file tree
Hide file tree
Showing 40 changed files with 9,769 additions and 9,313 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@ module.exports = {
extends: ['expo', 'prettier', 'eslint:recommended'],
plugins: ['prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
env: {
node: true,
},
rules: {
// add project-specific linting rules here
'prettier/prettier': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-shadow': 'error',
},
ignorePatterns: ['src/supabase/functions/'],
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ node_modules/
dist/
web-build/

# Platforms
ios/
android/

# Native
*.orig.*
*.jks
Expand Down
42 changes: 23 additions & 19 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import { StyleSheet, Text, View } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import Logo from '@/components/Logo';
import React from 'react';
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() {
return (
<View style={styles.container}>
<Logo />
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const [fontsLoaded] = useFonts({
DMSans_400Regular,
DMSans_700Bold,
});

if (!fontsLoaded) {
return null;
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
const defaultFontFamily = 'DMSans_400Regular';
(Text as any).defaultProps = (Text as any).defaultProps || {};
(Text as any).defaultProps.style = { fontFamily: defaultFontFamily };

return <AppNavigator />;
}
25 changes: 23 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,31 @@
"expo": {
"name": "Our City Forest",
"slug": "our-city-forest",
"owner": "calblueprint",
"owner": "ocfdev",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/bp-icon.png",
"userInterfaceStyle": "light",
"plugins": [
[
"expo-camera",
{
"cameraPermission": "Allow Our City Forest to access your camera to scan QR codes."
}
],
[
"expo-dev-launcher",
{
"launchMode": "most-recent"
}
]
],
"splash": {
"image": "./assets/bp-splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"platforms": ["ios", "android", "web"],
"ios": {
"bundleIdentifier": "org.calblueprint.ourcityforest",
"supportsTablet": true,
Expand All @@ -29,6 +44,12 @@
},
"web": {
"favicon": "./assets/bp-favicon.png"
}
},
"extra": {
"eas": {
"projectId": "d04f2944-f495-4c9b-b330-6e13ce59c6ff"
}
},
"scheme": "our-city-forest"
}
}
Binary file added assets/ocf_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"cli": {
"version": ">= 12.6.1",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"autoIncrement": true
}
},
"submit": {
"production": {}
}
}
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 f682583

Please sign in to comment.