Skip to content

Commit

Permalink
Merge pull request #2 from BOBpossible/feat/#1
Browse files Browse the repository at this point in the history
Feat/#1
  • Loading branch information
psh320 authored May 30, 2022
2 parents 625cc6c + 1c51d81 commit 96487c5
Show file tree
Hide file tree
Showing 27 changed files with 316 additions and 99 deletions.
4 changes: 1 addition & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ export default function App() {
return () => clearTimeout(id);
}, []);

console.log(loading);

return (
<SafeAreaView style={styles.SafeAreaView}>
<SafeAreaView style={[styles.SafeAreaView]}>
<NavigationContainer>
<Stack.Navigator screenOptions={{headerShown: false, gestureEnabled: false}}>
{loading ? (
Expand Down
Binary file removed android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/FontAwesome.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Fontisto.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/MaterialIcons.ttf
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
80 changes: 8 additions & 72 deletions ios/BOB_FrontEnd.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
7699B88040F8A987B510C191 /* libPods-BOB_FrontEnd-BOB_FrontEndTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-BOB_FrontEnd-BOB_FrontEndTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
16CE8A06BD024311B31AB1D8 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF53B131E70C456A81BAE932 /* AntDesign.ttf */; };
64FA3A4FA261458E83E8B158 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3BE8BC5FDB914844B886E31F /* Entypo.ttf */; };
FE5C5432FCD840C0944AF9A7 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E284D96825E4471CA97E60BF /* EvilIcons.ttf */; };
A58667989F414420AEC81DF3 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F527BB51F34A45A9B5C4F343 /* Feather.ttf */; };
10410503F8E3462092F68FA1 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CF28EE034FD24A299CFD5509 /* FontAwesome.ttf */; };
C20FFFEAAA7647B49AE1F212 /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E03366E45F2A4C6BB9D2AC08 /* FontAwesome5_Brands.ttf */; };
51A31D5A35C44260A7E43C09 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 182D29EBF3D2415FA9F93CE9 /* FontAwesome5_Regular.ttf */; };
1313503BABEE4CEDA1C55F6C /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 55F9E58FCD3149C18879CE4A /* FontAwesome5_Solid.ttf */; };
97DBF4021B994A4DBA52AAF5 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF4FF1AA861046DCADA934C8 /* Fontisto.ttf */; };
340638C4CB9E4253B0042256 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AA671C41B42A4E459AF1DAC0 /* Foundation.ttf */; };
4BDEB4E9CBA849AA950EC6EB /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FB35A6F190774AD49AF1FFEE /* Ionicons.ttf */; };
7E91FC36B02449B898E4BBBB /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A65D035DE2424F579A996DE8 /* MaterialCommunityIcons.ttf */; };
ADF7468B5D8B4AE2AD393B1A /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C45A79691424C6B9E337F7D /* MaterialIcons.ttf */; };
75E830631F4E4CC0947ED23B /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D8B6BC57B0274253B1922494 /* Octicons.ttf */; };
D5596CAABEFD4C01A3787802 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A917B93A14A1496FA5867C36 /* SimpleLineIcons.ttf */; };
C7E55AB6C5A9415F998EE8E7 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6DEBF6595FD54850BD86A4A3 /* Zocial.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -60,22 +44,6 @@
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = BOB_FrontEnd/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-BOB_FrontEnd-BOB_FrontEndTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BOB_FrontEnd-BOB_FrontEndTests.release.xcconfig"; path = "Target Support Files/Pods-BOB_FrontEnd-BOB_FrontEndTests/Pods-BOB_FrontEnd-BOB_FrontEndTests.release.xcconfig"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
EF53B131E70C456A81BAE932 /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
3BE8BC5FDB914844B886E31F /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
E284D96825E4471CA97E60BF /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
F527BB51F34A45A9B5C4F343 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
CF28EE034FD24A299CFD5509 /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
E03366E45F2A4C6BB9D2AC08 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
182D29EBF3D2415FA9F93CE9 /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
55F9E58FCD3149C18879CE4A /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
EF4FF1AA861046DCADA934C8 /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
AA671C41B42A4E459AF1DAC0 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
FB35A6F190774AD49AF1FFEE /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
A65D035DE2424F579A996DE8 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
4C45A79691424C6B9E337F7D /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
D8B6BC57B0274253B1922494 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
A917B93A14A1496FA5867C36 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
6DEBF6595FD54850BD86A4A3 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -170,6 +138,14 @@
name = Products;
sourceTree = "<group>";
};
AC1C87521CC8484FAD7C0ACD /* Resources */ = {
isa = PBXGroup;
children = (
);
name = Resources;
path = "";
sourceTree = "<group>";
};
BBD78D7AC51CEA395F1C20DB /* Pods */ = {
isa = PBXGroup;
children = (
Expand All @@ -181,30 +157,6 @@
path = Pods;
sourceTree = "<group>";
};
AC1C87521CC8484FAD7C0ACD /* Resources */ = {
isa = "PBXGroup";
children = (
EF53B131E70C456A81BAE932 /* AntDesign.ttf */,
3BE8BC5FDB914844B886E31F /* Entypo.ttf */,
E284D96825E4471CA97E60BF /* EvilIcons.ttf */,
F527BB51F34A45A9B5C4F343 /* Feather.ttf */,
CF28EE034FD24A299CFD5509 /* FontAwesome.ttf */,
E03366E45F2A4C6BB9D2AC08 /* FontAwesome5_Brands.ttf */,
182D29EBF3D2415FA9F93CE9 /* FontAwesome5_Regular.ttf */,
55F9E58FCD3149C18879CE4A /* FontAwesome5_Solid.ttf */,
EF4FF1AA861046DCADA934C8 /* Fontisto.ttf */,
AA671C41B42A4E459AF1DAC0 /* Foundation.ttf */,
FB35A6F190774AD49AF1FFEE /* Ionicons.ttf */,
A65D035DE2424F579A996DE8 /* MaterialCommunityIcons.ttf */,
4C45A79691424C6B9E337F7D /* MaterialIcons.ttf */,
D8B6BC57B0274253B1922494 /* Octicons.ttf */,
A917B93A14A1496FA5867C36 /* SimpleLineIcons.ttf */,
6DEBF6595FD54850BD86A4A3 /* Zocial.ttf */,
);
name = Resources;
sourceTree = "<group>";
path = "";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -301,22 +253,6 @@
files = (
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
16CE8A06BD024311B31AB1D8 /* AntDesign.ttf in Resources */,
64FA3A4FA261458E83E8B158 /* Entypo.ttf in Resources */,
FE5C5432FCD840C0944AF9A7 /* EvilIcons.ttf in Resources */,
A58667989F414420AEC81DF3 /* Feather.ttf in Resources */,
10410503F8E3462092F68FA1 /* FontAwesome.ttf in Resources */,
C20FFFEAAA7647B49AE1F212 /* FontAwesome5_Brands.ttf in Resources */,
51A31D5A35C44260A7E43C09 /* FontAwesome5_Regular.ttf in Resources */,
1313503BABEE4CEDA1C55F6C /* FontAwesome5_Solid.ttf in Resources */,
97DBF4021B994A4DBA52AAF5 /* Fontisto.ttf in Resources */,
340638C4CB9E4253B0042256 /* Foundation.ttf in Resources */,
4BDEB4E9CBA849AA950EC6EB /* Ionicons.ttf in Resources */,
7E91FC36B02449B898E4BBBB /* MaterialCommunityIcons.ttf in Resources */,
ADF7468B5D8B4AE2AD393B1A /* MaterialIcons.ttf in Resources */,
75E830631F4E4CC0947ED23B /* Octicons.ttf in Resources */,
D5596CAABEFD4C01A3787802 /* SimpleLineIcons.ttf in Resources */,
C7E55AB6C5A9415F998EE8E7 /* Zocial.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
19 changes: 1 addition & 18 deletions ios/BOB_FrontEnd/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,6 @@
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
<string>Fontisto.ttf</string>
</array>
<array/>
</dict>
</plist>
121 changes: 121 additions & 0 deletions src/components/AnimatedHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
import React, {FC, useEffect, useRef} from 'react';
import {View, Animated, Text, StyleSheet} from 'react-native';
import {TouchableOpacity} from 'react-native-gesture-handler';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useStyle} from '../hooks';
import {CircleBar} from './CircleBar';

const HEADER_HEIGHT = 250;
type AnimatedHeaderProps = {
animatedValue: Animated.Value;
};

export const AnimatedHeader: FC<AnimatedHeaderProps> = ({animatedValue}) => {
const heightAnimStyle = useStyle({
height: animatedValue.interpolate({
inputRange: [0, HEADER_HEIGHT],
outputRange: [HEADER_HEIGHT, 120],
extrapolate: 'clamp',
}),
});

const circleAnimStyle = useStyle({
opacity: animatedValue.interpolate({
inputRange: [100, 140],
outputRange: [1, 0],
extrapolate: 'clamp',
}),
transform: [
{
scale: animatedValue.interpolate({
inputRange: [50, 150],
outputRange: [1, 0.4],
extrapolate: 'clamp',
}),
},
],
});

const barAnimStyle = useStyle({
opacity: animatedValue.interpolate({
inputRange: [130, 160],
outputRange: [0, 1],
extrapolate: 'clamp',
}),
});

const styles = StyleSheet.create({
headerWrap: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
zIndex: 10,
backgroundColor: 'white',
width: '100%',
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.35,
shadowRadius: 3.84,
elevation: 5,
borderBottomLeftRadius: 20,
borderBottomRightRadius: 20,
},
flexRow: {
flexDirection: 'row',
alignItems: 'center',
},
locationText: {
fontSize: 20,
fontWeight: '600',
},
headerRow1: {
margin: 15,
},
circleWrap: {
position: 'absolute',
bottom: 20,
alignSelf: 'center',
},
barWrap: {
marginTop: 20,
marginLeft: 15,
},
});

const expandHeader = () => {
return (
<Animated.View style={[styles.circleWrap, circleAnimStyle]}>
<CircleBar radius={75} progress={7} />
<Text style={{marginTop: 5}}>미션 10개 달성시 1000P</Text>
</Animated.View>
);
};

const shrinkHeader = () => {
return (
<Animated.View style={[barAnimStyle, styles.barWrap]}>
<View style={{width: '80%', borderWidth: 5, borderColor: '#615EFF'}} />
<Text style={{marginTop: 5}}>미션 10개 달성시 1000P</Text>
</Animated.View>
);
};

return (
<Animated.View style={[styles.headerWrap, heightAnimStyle]}>
<View style={[styles.flexRow, styles.headerRow1]}>
<TouchableOpacity style={[styles.flexRow]}>
<Text style={[styles.locationText]}>삼성동</Text>
<Icon name="menu-down" size={18} color="black" />
</TouchableOpacity>
</View>
{shrinkHeader()}
{expandHeader()}
</Animated.View>
);
};

export default AnimatedHeader;
38 changes: 38 additions & 0 deletions src/components/CircleBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React, {useEffect} from 'react';
import type {FC} from 'react';
import {View, StyleSheet, Text} from 'react-native';
import {Colors} from 'react-native-paper';

export type CircleBarProps = {
radius: number;
progress: number;
};
export const CircleBar: FC<CircleBarProps> = ({radius, progress}) => {
const styles = StyleSheet.create({
flex: {flex: 1},
bigCircle: {
width: radius * 2,
height: radius * 2,
borderRadius: radius,
backgroundColor: '#EDEDED',
justifyContent: 'center',
alignItems: 'center',
},
progressLayer: {
width: radius * 2,
height: radius * 2,
borderRadius: radius,
borderWidth: 7,
borderColor: '#615EFF',
position: 'absolute',
},
});
return (
<View style={[styles.flex]}>
<View style={styles.bigCircle}>
<View style={[styles.progressLayer]} />
<Text>{progress}</Text>
</View>
</View>
);
};
48 changes: 48 additions & 0 deletions src/components/HomeMission.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from 'react';
import type {FC} from 'react';
import {View, StyleSheet, Text, TouchableOpacity} from 'react-native';
import {Colors} from 'react-native-paper';

export type HomeMissionProps = {
name: string;
category: string;
day: number;
minCost: number;
point: number;
};

export const HomeMission: FC<HomeMissionProps> = ({name, category, day, minCost, point}) => {
return (
<View style={[styles.missionBox]}>
<Text style={[styles.dDay]}>D-{day}</Text>
<View style={[styles.nameBox]}>
<Text style={[styles.nameText]}>{name}</Text>
<Text style={[styles.categoryText]}>{category}</Text>
</View>
<View style={[styles.seperateLine]} />
<View style={[styles.contentBox]}>
<Text>
<Text style={[styles.boldText]}>{minCost}원 이상</Text>
<Text>의 식사시 </Text>
<Text style={[styles.pointText]}>{point}P 적립</Text>
</Text>
</View>
<TouchableOpacity>
<View style={[styles.missionButton]}>
<Text>미션 도전!</Text>
</View>
</TouchableOpacity>
</View>
);
};

const styles = StyleSheet.create({
missionBox: {
flex: 1,
height: 190,
width: '100%',
backgroundColor: Colors.white,
},
dDay: {position: 'absolute', top: 20, right: 30, fontWeight: '600', color: '#615EFF'},
nameBox: {flexDirection: 'column', justifyContent: 'center', alignItems: 'center'},
});
3 changes: 3 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './AnimatedHeader';
export * from './HomeMission';
export * from './CircleBar';
1 change: 1 addition & 0 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './useStyle';
5 changes: 5 additions & 0 deletions src/hooks/useStyle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {useMemo} from 'react';

export const useStyle = (style: object, deps: any[] = []) => {
return useMemo(() => style, deps);
};
Loading

0 comments on commit 96487c5

Please sign in to comment.