Skip to content

Commit

Permalink
Revert "adding eslint"
Browse files Browse the repository at this point in the history
This reverts commit b515646.
  • Loading branch information
Naveen-g09 committed Mar 16, 2024
1 parent b515646 commit 161c8ff
Show file tree
Hide file tree
Showing 32 changed files with 580 additions and 1,514 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/preview.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:

- name: Expo GitHub Action
uses: expo/[email protected]

13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**This is an application for Society Housing managment which is created for the purpose of MCA collaborative project.**
`Built with Expo-react-Native`
`This will have features such as:`

```Built with Expo-react-Native```
```This will have features such as:```
1. Community Page
2. Call for services and book amenties
3. manage services in the society
Expand All @@ -12,16 +11,16 @@
8. keep a proper track of records
and much more features to be added

`Why Residentron?`

```Why Residentron?```
- We are focusing on being open source and using open source tech stack, which will reduce the cost for customers to pay minimal prices and experiece a seamless connected world while being at home
- `Tech Stack includes (not finalised)`
- ``` Tech Stack includes (not finalised) ```
- Expo
- Supabase
- SQLite

`USP?:`
``` USP?: ```
We are trying to develop it based on age for user (ex: better color modes, font sizes, notification customization, automation, restriction for children), basically something for everyone


figma link:
https://www.figma.com/file/CUdRvs42DT7ZTRutq617pM/Wireframe-1?type=design&node-id=1-2&mode=design&t=TPgUYMvRyLzLWx31-0
8 changes: 6 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.cheetahworks.residentron"
Expand All @@ -29,7 +31,9 @@
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": ["expo-router"],
"plugins": [
"expo-router"
],
"experiments": {
"typedRoutes": true
},
Expand Down
16 changes: 8 additions & 8 deletions app/(tabs)/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useLocalSearchParams, Stack } from "expo-router";
import React from "react";
import { View, Text, StyleSheet } from "react-native";
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { useLocalSearchParams, Stack } from 'expo-router';

const NewPage = () => {
const { id } = useLocalSearchParams();
Expand All @@ -16,15 +16,15 @@ const NewPage = () => {
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F5FCFF", // Add your desired background color
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF', // Add your desired background color
},
text: {
fontSize: 20,
textAlign: "center",
textAlign: 'center',
margin: 10,
color: "#333", // Add your desired text color
color: '#333', // Add your desired text color
},
});

Expand Down
39 changes: 15 additions & 24 deletions app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import FontAwesome from "@expo/vector-icons/FontAwesome";
import { Link, Tabs } from "expo-router";
import React from "react";
Expand All @@ -19,10 +20,12 @@ export default function RootLayout() {
const colorScheme = useColorScheme();
return (
<Tabs>
<Tabs.Screen


<Tabs.Screen
name="index"
options={{
title: "Home",
title: 'Home',
tabBarIcon: (props) => <TabBarIcon {...props} name="home" />,
headerTitleAlign: "center",
headerStyle: {
Expand All @@ -44,28 +47,16 @@ export default function RootLayout() {
),
}}
/>
<Tabs.Screen
name="category"
options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="list" />,
headerShown: false,
}}
/>
<Tabs.Screen
name="community"
options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="users" />,
headerShown: false,
}}
/>
<Tabs.Screen
name="account"
options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="user" />,
headerShown: false,
}}
/>
<Tabs.Screen name="[id]" options={{ headerShown: false, href: null }} />
<Tabs.Screen name="category" options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="list" />,
headerShown: false}}/>
<Tabs.Screen name="community" options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="users" />,
headerShown: false}}/>
<Tabs.Screen name="account" options={{
tabBarIcon: (props) => <TabBarIcon {...props} name="user" />,
headerShown: false}}/>
<Tabs.Screen name="[id]" options={{headerShown: false, href:null}}/>
</Tabs>
);
}
50 changes: 23 additions & 27 deletions app/(tabs)/account.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import { View, Text, TouchableOpacity, ScrollView, StyleSheet, Button } from 'react-native'
import { BottomSheetModal, useBottomSheetModal } from "@gorhom/bottom-sheet";
import React, { useRef } from "react";
import {
View,
Text,
TouchableOpacity,
ScrollView,
StyleSheet,
Button,
} from "react-native";

import AccountSheet from "../../components/bottomSheet";
import React, { useRef } from 'react'

import AccountSheet from '../../components/bottomSheet';

//TODO: add a notification icon
//TODO: add a profile icon
Expand Down Expand Up @@ -52,47 +45,50 @@ const account = () => {
<Button title="Dismiss" onPress={() => dismiss()} />

<AccountSheet ref={bottomSheetRef} />

</ScrollView>
);
};
)
}

const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
paddingVertical: 20,
backgroundColor: "powderblue",
backgroundColor: 'powderblue',


},
button: {
flexDirection: "row",
alignItems: "center",
flexDirection: 'row',
alignItems: 'center',
paddingHorizontal: 20,
paddingVertical: 10,
marginVertical: 10,
backgroundColor: "white",
backgroundColor: 'white',
borderRadius: 5,
width: "80%",
height: "10%",
shadowColor: "#000", // Shadow color
width: '80%',
height: '10%',
shadowColor: '#000', // Shadow color
shadowOffset: {
width: 0,
height: 2, // Shadow offset
},
shadowOpacity: 0.25, // Shadow opacity
shadowRadius: 3.84, // Shadow radius
elevation: 5,
elevation: 5
},
image: {
marginRight: 10,
},
buttonText: {
color: "#000",
color: '#000',
fontSize: 18,
marginLeft: 10,
fontWeight: "bold",
fontWeight: 'bold'
},
});

export default account;
export default account
Loading

0 comments on commit 161c8ff

Please sign in to comment.