-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Naveen-g09/extraUI
So many new features
- Loading branch information
Showing
38 changed files
with
2,103 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,79 @@ | ||
import React from "react"; | ||
import { View, Text, StatusBar, ScrollView } from "react-native"; | ||
import Feather from "react-native-vector-icons/Feather"; | ||
import FontAwesome from "react-native-vector-icons/FontAwesome"; | ||
import Ionic from "react-native-vector-icons/Ionicons"; | ||
import { BottomSheetModal, useBottomSheetModal } from "@gorhom/bottom-sheet"; | ||
import { Link } from "expo-router"; | ||
import React, { useRef } from "react"; | ||
import { View, Text, StyleSheet, TouchableOpacity } from "react-native"; | ||
|
||
import Post from "../Post"; | ||
import Stories from "../Stories"; | ||
|
||
//TODO: add a notification icon | ||
//TODO: add a bottomsheet onpress of details tab which shows details of resident | ||
//TODO: add grids for posts, members, and events, chats, notices, posts, announcements, and polls | ||
import CalenderSheet from "@/components/calenderBS"; | ||
|
||
const Community = () => { | ||
return ( | ||
<View style={{ backgroundColor: "white", height: "100%" }}> | ||
<StatusBar backgroundColor="white" barStyle="dark-content" animated /> | ||
<View | ||
style={{ | ||
justifyContent: "space-between", | ||
flexDirection: "row", | ||
paddingHorizontal: 15, | ||
alignItems: "center", | ||
}} | ||
> | ||
<FontAwesome name="plus-square-o" style={{ fontSize: 24 }} /> | ||
<Text | ||
style={{ | ||
fontFamily: "Lobster-Regular", | ||
fontSize: 25, | ||
fontWeight: "500", | ||
}} | ||
> | ||
</Text> | ||
<Feather name="navigation" style={{ fontSize: 24 }} /> | ||
</View> | ||
const calenderBottomSheetRef = useRef<BottomSheetModal>(null); | ||
const handleCalenderPress = () => calenderBottomSheetRef.current?.present(); | ||
|
||
<ScrollView> | ||
<Stories /> | ||
<Post /> | ||
<View | ||
style={{ | ||
justifyContent: "center", | ||
alignItems: "center", | ||
padding: 20, | ||
}} | ||
> | ||
<Ionic | ||
name="ios-reload-circle-sharp" | ||
style={{ fontSize: 60, opacity: 0.2 }} | ||
/> | ||
</View> | ||
</ScrollView> | ||
const { dismiss } = useBottomSheetModal(); | ||
Check warning on line 12 in app/(tabs)/community.tsx GitHub Actions / lint
|
||
return ( | ||
<View style={styles.container}> | ||
<TouchableOpacity style={styles.button} onPress={handleCalenderPress}> | ||
<Text style={styles.buttonText}>Calendar</Text> | ||
</TouchableOpacity> | ||
<Link href="/Members" asChild> | ||
<TouchableOpacity style={styles.button}> | ||
<Text style={styles.buttonText}>Members</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
<Link href="/notice" asChild> | ||
<TouchableOpacity style={styles.button}> | ||
<Text style={styles.buttonText}>Notices</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
<Link href="/connect" asChild> | ||
<TouchableOpacity style={styles.button}> | ||
<Text style={styles.buttonText}>Posts</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
<Link href="/Announcement" asChild> | ||
<TouchableOpacity style={styles.button}> | ||
<Text style={styles.buttonText}>Announcement</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
<CalenderSheet ref={calenderBottomSheetRef} /> | ||
</View> | ||
); | ||
}; | ||
|
||
export default Community; | ||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: "center", | ||
alignItems: "center", | ||
// backgroundColor: "powderblue", | ||
}, | ||
button: { | ||
flexDirection: "row", | ||
alignItems: "center", | ||
paddingHorizontal: 20, | ||
paddingVertical: 10, | ||
marginVertical: 10, | ||
backgroundColor: "powderblue", | ||
borderRadius: 5, | ||
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, | ||
}, | ||
image: { | ||
marginRight: 10, | ||
}, | ||
buttonText: { | ||
color: "#000", | ||
fontSize: 18, | ||
marginLeft: 10, | ||
fontWeight: "bold", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.