Skip to content

Commit

Permalink
Merge pull request #302 from SCCapstone/feature/cachedImage_component
Browse files Browse the repository at this point in the history
Feature/cached image component
  • Loading branch information
nathandolbir authored Apr 3, 2023
2 parents 58d1d77 + d184c3d commit 9e68f91
Show file tree
Hide file tree
Showing 73 changed files with 3,423 additions and 788 deletions.
74 changes: 39 additions & 35 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ExploreScreen } from "./src/screens/ExploreScreen.js";
import { MutualScreen } from "./src/screens/MutualScreen.js";
import { CreatePost } from "./src/screens/CreatePost.js";
import { CalendarScreen } from "./src/screens/CalendarScreen.js";
import { WorkoutsScreen } from "./src/screens/WorkoutsScreen.js";
import { GoalsScreen } from "./src/screens/GoalsScreen.js";
import { ProfileScreen } from "./src/screens/ProfileScreen.js";
import { FollowerScreen } from "./src/screens/FollowerScreen.js";
Expand All @@ -18,6 +19,8 @@ import { withAuthenticator, AmplifyTheme } from "aws-amplify-react-native";
import { StyleSheet, View, TitleText } from "react-native";
import { Storage } from "@aws-amplify/storage";
import * as clients3 from "@aws-sdk/client-s3";
import { useState } from "react";
import { Toast } from "react-native-toast-message/lib/src/Toast.js";
import { blueThemeColor } from "./src/library/constants.js";

Amplify.configure({
Expand Down Expand Up @@ -49,42 +52,43 @@ Amplify.configure({
const Stack = createMaterialTopTabNavigator();

const app = () => {
const [refresh, setRefresh] = useState(false);
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
tabBarShowLabel: true,
tabBarScrollEnabled: true,
lazy: true,
tabBarLabelStyle: {
width: 125,
height: 30,
textAlign: "center",
color: "black",
fontSize: 15,
fontWeight: "bold",
},
}}
initialRouteName="Mutuals"
tabBarPosition="bottom"
>
<Stack.Screen name="Settings" component={SettingsScreen} />
{/* <Stack.Screen name="Explore" component={ExploreScreen} /> */}
<Stack.Screen name="Mutuals" component={MutualScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
{/* <Stack.Screen name="CreatePost" component={CreatePost} /> */}
{/* <Stack.Screen name="Calendar" component={CalendarScreen} /> */}
<Stack.Screen name="Goals" component={GoalsScreen} />
<Stack.Screen
name="Followers"
component={FollowerScreen}
initialParams={{ isFollowerPage: false }}
/>
<Stack.Screen name="Notifications" component={NotificationsScreen} />
{/* <Stack.Screen name="CreateGoal" component={CreateGoalScreen} /> */}
</Stack.Navigator>
</NavigationContainer>
<>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
tabBarShowLabel: true,
tabBarScrollEnabled: true,
lazy: true,
tabBarLabelStyle: {
width: 125,
height: 30,
textAlign: "center",
color: "black",
fontSize: 15,
fontWeight: "bold",
},
}}
initialRouteName="Mutuals"
tabBarPosition="bottom"
>
<Stack.Screen name="Settings" component={SettingsScreen} />
{/* <Stack.Screen name="Explore" component={ExploreScreen} /> */}
<Stack.Screen name="Mutuals">{(props) => <MutualScreen {...props} refresh={refresh} setRefresh={setRefresh} />}</Stack.Screen>
<Stack.Screen name="Profile">{(props) => <ProfileScreen {...props} refresh={refresh} setRefresh={setRefresh} />}</Stack.Screen>
{/* <Stack.Screen name="CreatePost" component={CreatePost} /> */}
{/* <Stack.Screen name="Calendar" component={CalendarScreen} /> */}
<Stack.Screen name="Goals" component={GoalsScreen} />
<Stack.Screen name="Workouts" component={WorkoutsScreen} />
<Stack.Screen name="Followers" component={FollowerScreen} initialParams={{ isFollowerPage: false }} />
<Stack.Screen name="Notifications" component={NotificationsScreen} />
{/* <Stack.Screen name="CreateGoal" component={CreateGoalScreen} /> */}
</Stack.Navigator>
</NavigationContainer>
<Toast />
</>
);
};

Expand Down
Binary file added assets/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
.xcode.env.local

# Bundle artifacts
*.jsbundle

# CocoaPods
/Pods/
11 changes: 11 additions & 0 deletions ios/.xcode.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This `.xcode.env` file is versioned and is used to source the environment
# used when running script phases inside Xcode.
# To customize your local environment, you can create an `.xcode.env.local`
# file that is not versioned.

# NODE_BINARY variable contains the PATH to the node executable.
#
# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
# . "$(brew --prefix nvm)/nvm.sh" --no-use
export NODE_BINARY=$(command -v node)
Loading

0 comments on commit 9e68f91

Please sign in to comment.