Skip to content

Commit

Permalink
[DESIGN] inbox 최종
Browse files Browse the repository at this point in the history
  • Loading branch information
nayujin-dev committed Sep 30, 2023
1 parent b3ea1ab commit 74e1bbc
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 36 deletions.
4 changes: 3 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();

export default function App({navigation}) {


const [isLogin,setIsLogin]=useState(null);
const [accessToken,setAccessToken]=useState('');
const [userId,setUserId]=useState('');
Expand All @@ -28,8 +30,8 @@ export default function App({navigation}) {
setIsLogin(false);
}
}

useEffect(() => {

// AsyncStorage에 저장된 데이터가 있다면, 불러온다.
getData();

Expand Down
Binary file added assets/fonts/NotoSansKR-Black.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-ExtraBold.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-ExtraLight.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-Light.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-SemiBold.ttf
Binary file not shown.
Binary file added assets/fonts/NotoSansKR-Thin.ttf
Binary file not shown.
41 changes: 7 additions & 34 deletions components/MessageBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const MessageBox = ({navigation}) => {
<View style={styles.container}>
<StatusBar style="auto" />
<Image source={images.inbox} style={commomStyle.backgroundImage}/>
<View style={{ marginVertical: 60}}></View>
<View style={{ marginVertical: 60 }}></View>
<ScrollView contentContainerStyle={styles.scrollViewContainer}>
{messages.map((message) => (
<View style={styles.messageContainer}>
Expand Down Expand Up @@ -95,78 +95,51 @@ export default MessageBox;
const styles = StyleSheet.create({
container: {
flex: 1,
//flexDirection: 'column', // 수평으로 배치하기 위해 flexDirection를 row로 설정
padding: 10,
backgroundColor: color.bg,
// backgroundColor: "#FAF3EB",
},
messageContainer: {
flexDirection: 'row',
flex: 0.6,
backgroundColor: '#D2E0FB',
backgroundColor: '#E8EDF4',
padding: 10,
paddingVertical: 18,
borderRadius: 20,
width: "100%",
// borderWidth: 2,
// borderBottomWidth: 2,
borderColor:"#D2E0FB",
borderColor:"#E8F1F9",
borderStyle: 'solid',
marginBottom: 15,
marginBottom: 10,
},
scrollViewContainer:{
// backgroundColor:'green',
alignItems: 'center',
// marginTop:15,
padding:10,
//width: SCREEN_WIDTH-60,
//height: SCREEN_HEIGHT-200,
},
messageLeftContainer: {
flex: 1,
marginRight:5,
// backgroundColor: 'blue',
// justifyContent: 'center',
alignItems: 'center',
},
messageRightContainer: {
flex: 2,
// backgroundColor: 'purple',
justifyContent:'space-between',
// flexDirection: 'column',
},
image: {
// height: 100,
// width:100,
// width: "90%",
// height: "100%",
// marginLeft: "5%",
},

messageText:{
// height: 20,
fontSize: 18,
color: '#3B628C',
color: '#5E86B1',
fontWeight:'bold',
// backgroundColor: 'pink',
paddingLeft: 10,
// margin: 5,
// textAlign: 'center',
},
buttonContainer:{
//paddingTop: 20,
// height: "30%",
// marginBottom: 40,
alignItems:'flex-end',

// backgroundColor: "red",
},
buttonMargin: {
marginHorizontal: 8, // Add horizontal margin between buttons
},
buttonText: {
fontSize: 18,
color: 'white',
backgroundColor: '#5E86B1',
backgroundColor: '#8EACCD',
paddingHorizontal:10,
paddingVertical:5,
borderRadius: 20,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
"expo-media-library": "~15.4.1",
"expo-permissions": "~14.2.1",
"expo-status-bar": "~1.6.0",
"link": "^1.5.1",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native": "^0.72.4",
"react-native-asset": "^2.1.1",
"react-native-calendars": "^1.1300.0",
"react-native-dropdown-picker": "^5.4.6",
"react-native-global-props": "^1.1.5",
"react-native-material-dropdown": "^0.11.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
Expand Down
7 changes: 7 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./assets/fonts/'],
};

0 comments on commit 74e1bbc

Please sign in to comment.