Small Changes (delete index.js)
This commit is contained in:
parent
8f39ec9bf4
commit
c960c41e3a
4 changed files with 45 additions and 32 deletions
|
|
@ -3,20 +3,19 @@ import {StyleSheet, View} from "react-native"
|
||||||
|
|
||||||
import { FontAwesome } from "@expo/vector-icons";
|
import { FontAwesome } from "@expo/vector-icons";
|
||||||
import {useThemeColor} from "../hooks/hooks";
|
import {useThemeColor} from "../hooks/hooks";
|
||||||
import {color} from "ansi-fragments";
|
|
||||||
|
|
||||||
export default function Layout() {
|
export default function Layout() {
|
||||||
const selectedColor: string = useThemeColor( "tabIconSelected");
|
const selectedColor: string = useThemeColor( "tabIconSelected");
|
||||||
const defaultColor: string = useThemeColor("tabIconDefault");
|
const defaultColor: string = useThemeColor("tabIconDefault");
|
||||||
const backgroundColor: string = useThemeColor("backgroundColor");
|
const backgroundColor: string = useThemeColor("backgroundColor");
|
||||||
|
const tabBarColor: string = useThemeColor("tabBarColor");
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
sceneContainer: {
|
sceneContainer: {
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
position: "absolute",
|
|
||||||
},
|
},
|
||||||
view: {
|
tabBar: {
|
||||||
backgroundColor: "red",
|
backgroundColor: tabBarColor,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,12 +23,11 @@ export default function Layout() {
|
||||||
tabBarActiveTintColor: selectedColor,
|
tabBarActiveTintColor: selectedColor,
|
||||||
tabBarInactiveTintColor: defaultColor,
|
tabBarInactiveTintColor: defaultColor,
|
||||||
headerShown: false,
|
headerShown: false,
|
||||||
|
tabBarStyle: styles.tabBar,
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs sceneContainerStyle={styles.sceneContainer} initialRouteName={"index"} screenOptions={{tabBarBackground: () => {
|
<Tabs sceneContainerStyle={styles.sceneContainer} initialRouteName={"index"} screenOptions={screenOptions}>
|
||||||
return <View style={styles.view}/>;
|
|
||||||
}}}>
|
|
||||||
<Tabs.Screen name="budget" options={
|
<Tabs.Screen name="budget" options={
|
||||||
{
|
{
|
||||||
tabBarLabel: "Budget",
|
tabBarLabel: "Budget",
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,25 @@
|
||||||
import { StyleSheet, View, Text } from 'react-native';
|
import { StyleSheet, View, Text } from 'react-native';
|
||||||
|
import {useThemeColor} from "../hooks/hooks";
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
|
|
||||||
|
const styles = StyleSheet.create({
|
||||||
|
container: {
|
||||||
|
flex: 1,
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
},
|
||||||
|
text: {
|
||||||
|
color: useThemeColor("color"),
|
||||||
|
fontSize: 70,
|
||||||
|
fontWeight: "bold"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<Text style={styles.text}>Home</Text>
|
<Text style={styles.text}>Home</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
|
||||||
container: {
|
|
||||||
flex: 1,
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "center",
|
|
||||||
},
|
|
||||||
text: {
|
|
||||||
fontSize: 70,
|
|
||||||
fontWeight: "bold"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
@ -1,20 +1,32 @@
|
||||||
export default {
|
export default {
|
||||||
light: {
|
light: {
|
||||||
|
primaryText: "#000000",
|
||||||
|
secondaryText: "#404040",
|
||||||
|
interactiveText: "#0645AD",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tabIconDefault: "gray",
|
tabIconDefault: "gray",
|
||||||
tabIconSelected: "orange",
|
tabIconSelected: "#ED7D31",
|
||||||
color: "orange",
|
color: "#000000",
|
||||||
contrastColor: "",
|
accentColor: "#ED7D31",
|
||||||
accentColor: "",
|
|
||||||
backgroundColor: "#ffffff",
|
backgroundColor: "#ffffff",
|
||||||
tabBarColor: "gray",
|
tabBarColor: "gray",
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
tabIconDefault: "gray",
|
// Text
|
||||||
tabIconSelected: "orange",
|
primaryText: "#FFFFFF",
|
||||||
color: "#1B9AAA",
|
secondaryText: "#B3B3B3",
|
||||||
contrastColor: "",
|
interactiveText: "#0645AD",
|
||||||
accentColor: "",
|
|
||||||
backgroundColor: "lightgray",
|
// Tabs
|
||||||
tabBarColor: "gray",
|
tabIconDefault: "#FFFFFF",
|
||||||
|
tabIconSelected: "#ED7D31",
|
||||||
|
|
||||||
|
//
|
||||||
|
color: "#FFFFFF",
|
||||||
|
accentColor: "#ED7D31",
|
||||||
|
backgroundColor: "#181818",
|
||||||
|
tabBarColor: "#121212",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1
index.js
1
index.js
|
|
@ -1 +0,0 @@
|
||||||
import "expo-router/entry";
|
|
||||||
Reference in a new issue