Skip to content

Commit

Permalink
updated expo to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
dyland88 committed Nov 14, 2024
1 parent 33ee2af commit a4e35cf
Show file tree
Hide file tree
Showing 5 changed files with 2,512 additions and 3,978 deletions.
5 changes: 3 additions & 2 deletions client/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
{
"locationAlwaysAndWhenInUsePermission": "Allow OSC Proximity Chat to access your location."
}
]
],
"expo-font"
]
}
}
}
55 changes: 31 additions & 24 deletions client/app/navigation/AppNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import {StyleSheet, Text, View} from 'react-native';
import { StyleSheet, Text, View } from "react-native";

Check warning on line 2 in client/app/navigation/AppNavigator.tsx

View workflow job for this annotation

GitHub Actions / lint (21.x)

'StyleSheet' is defined but never used
import * as React from "react";

import { LocationProvider } from "../contexts/LocationContext";
Expand All @@ -8,36 +8,43 @@ import { UserProvider } from "../contexts/UserContext";
import ChatScreen from "../screens/chat/ChatScreen";
import SettingsScreen from "../screens/settings/SettingsScreen";
import { Home } from "react-native-feather";
import {User} from "react-native-feather";
import { User } from "react-native-feather";
import { NavigationContainer } from "@react-navigation/native";

const Tab = createBottomTabNavigator();
const AppNavigator = () => {
return (
<LocationProvider>
<SocketProvider>
<UserProvider>
<Tab.Navigator
screenOptions={{
headerShown: false,
tabBarLabelStyle: {
fontSize: 15,
}
}}>
<Tab.Screen name="Home" component={ChatScreen} options={{
tabBarIcon:({ focused, color, size }) => {
return(<Home width = {size} stroke = {color}/>
)
}
}
}/>
<Tab.Screen name="Profile" component={SettingsScreen} options = {{
tabBarIcon:({ focused, color, size }) => {
return(<User width = {size} stroke = {color} />)
}
}
}
/>
</Tab.Navigator>
<NavigationContainer>
<Tab.Navigator
screenOptions={{
headerShown: false,
tabBarLabelStyle: {
fontSize: 15,
},
}}>
<Tab.Screen
name="Home"
component={ChatScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <Home width={size} stroke={color} />;
},
}}
/>
<Tab.Screen
name="Profile"
component={SettingsScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <User width={size} stroke={color} />;
},
}}
/>
</Tab.Navigator>
</NavigationContainer>
</UserProvider>
</SocketProvider>
</LocationProvider>
Expand Down
27 changes: 15 additions & 12 deletions client/app/navigation/AuthNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ import LoginScreen from "../screens/auth/LoginScreen";
import SignUpScreen from "../screens/auth/SignUpScreen";
import WelcomeScreen from "../screens/auth/WelcomeScreen";
import EmailVerificationScreen from "../screens/auth/EmailVerificationScreen";
import { NavigationContainer } from "@react-navigation/native";

const Stack = createStackNavigator();

const AuthNavigator = () => {
return (
<Stack.Navigator
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="Welcome" component={WelcomeScreen} />
<Stack.Screen name="Log In" component={LoginScreen} />
<Stack.Screen name="Sign Up" component={SignUpScreen} />
<Stack.Screen
name="Email Verification"
component={EmailVerificationScreen}
/>
</Stack.Navigator>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="Welcome" component={WelcomeScreen} />
<Stack.Screen name="Log In" component={LoginScreen} />
<Stack.Screen name="Sign Up" component={SignUpScreen} />
<Stack.Screen
name="Email Verification"
component={EmailVerificationScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);
};

Expand Down
Loading

0 comments on commit a4e35cf

Please sign in to comment.