-
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 #16 from Naveen-g09/tab-style
Tab style
- Loading branch information
Showing
14 changed files
with
399 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import { View, Text, StyleSheet } from 'react-native'; | ||
import { useLocalSearchParams, Stack } from 'expo-router'; | ||
|
||
const NewPage = () => { | ||
const { id } = useLocalSearchParams(); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<Stack.Screen options={{ headerShown: false }} /> | ||
<Text style={styles.text}>{id} Page</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#F5FCFF', // Add your desired background color | ||
}, | ||
text: { | ||
fontSize: 20, | ||
textAlign: 'center', | ||
margin: 10, | ||
color: '#333', // Add your desired text color | ||
}, | ||
}); | ||
|
||
export default NewPage; |
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,16 +1,78 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import { View, Text, Button, ScrollView, TouchableOpacity } from 'react-native' | ||
import React, { useRef } from 'react' | ||
import { StyleSheet } from 'react-native'; | ||
import { Link } from 'expo-router'; | ||
|
||
//TODO: add a notification icon | ||
//TODO: add 4 rectangle grid buttons which has options of everyday help, appliance repair, home cleaning, and moving | ||
//TODO: add a search bar | ||
|
||
const category = () => { | ||
|
||
return ( | ||
<View> | ||
<Text>category</Text> | ||
</View> | ||
<ScrollView contentContainerStyle={styles.container}> | ||
|
||
<Link href={"/ameneties"} asChild> | ||
<TouchableOpacity style={styles.button} > | ||
<Text style={styles.buttonText}>Ameneties</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
|
||
<Link href={"/help"} asChild> | ||
<TouchableOpacity style={styles.button} > | ||
<Text style={styles.buttonText}>Everyday Help</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
|
||
|
||
<Link href={"/repair"} asChild> | ||
<TouchableOpacity style={styles.button} > | ||
<Text style={styles.buttonText}>Appliances Repair</Text> | ||
</TouchableOpacity> | ||
</Link> | ||
</ScrollView> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
backgroundColor: 'powderblue', | ||
|
||
|
||
}, | ||
button: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
paddingHorizontal: 20, | ||
paddingVertical: 10, | ||
marginVertical: 10, | ||
backgroundColor: 'white', | ||
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' | ||
}, | ||
}); | ||
|
||
|
||
export default category |
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
Oops, something went wrong.