-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from BOBpossible/feat/#25_My
Feat/#25 my
- Loading branch information
Showing
25 changed files
with
239 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
rootProject.name = 'BOB_FrontEnd' | ||
include ':react-native-svg' | ||
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') | ||
include ':react-native-config' | ||
project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') | ||
include ':react-native-nmap' | ||
project(':react-native-nmap').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-nmap/android') | ||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) | ||
include ':app' | ||
includeBuild('../node_modules/react-native-gradle-plugin') | ||
|
||
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { | ||
include(":ReactAndroid") | ||
project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') | ||
} | ||
include ':react-native-config' | ||
project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
import React, {useState} from 'react'; | ||
import type {FC} from 'react'; | ||
import { View, StyleSheet, Text, TouchableOpacity, Image } from 'react-native'; | ||
import {Colors} from 'react-native-paper'; | ||
|
||
export type MyUserProps = { | ||
userprofile?: any; //????????? | ||
username: string; | ||
userid: number; | ||
status: string; //"start","request","onrequest","success", "review" | ||
}; | ||
|
||
//prettier-ignore | ||
export const MyUser: FC<MyUserProps> = ({username, userid, status }) => { | ||
const [statusMessage, setMessage] = useState(""); | ||
// useEffect(()=>{ | ||
// if (status==='request') {setMessage('미션중')} | ||
// else if (status==='onrequest') {setMessage('사장님 확인중')} | ||
// else if (status==='success') {setMessage('미션 성공')} | ||
// }, [status]); | ||
|
||
return ( | ||
<View style={[styles.userInfo]}> | ||
<View style={[styles.userCard]}> | ||
<View style={[styles.profileWrap]}> | ||
<Image | ||
style={[styles.profileImg]} | ||
source={require('../assets/images/tmpUserImage.png')} // | ||
/> | ||
</View> | ||
<View style={[styles.userWrap]}> | ||
<View style={[styles.username]}> | ||
<Text style={[styles.usernameText]}>{username}</Text> | ||
<Text style={[styles.userauthText]}>인증?</Text> | ||
</View> | ||
<Text style={[styles.useridText]}>{userid}</Text> | ||
</View> | ||
{/* <View style={[styles.statusWrap]}> | ||
<View> | ||
<Text style={[styles.statusText, status === 'success' && { color: '#6C69FF' }]}>{statusMessage}</Text> | ||
</View> | ||
</View> */} | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
userInfo: { | ||
height: 148, | ||
backgroundColor: Colors.white, | ||
marginBottom: 8, | ||
}, | ||
userCard: { | ||
flexDirection: 'row', | ||
}, | ||
profileWrap: { | ||
marginTop: 16, | ||
marginLeft: 16, | ||
|
||
marginBottom: 14, | ||
marginRight: 11, | ||
}, | ||
profileImg: { | ||
width: 48, | ||
height: 48, | ||
borderRadius: 24, | ||
// marginBottom: 8, | ||
}, | ||
userWrap: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'baseline', | ||
}, | ||
username: { | ||
flexDirection: 'column', | ||
}, | ||
usernameText: { | ||
color: '#111111', | ||
fontSize: 16, | ||
marginBottom: 2, | ||
}, | ||
userauthText: { | ||
color: 'red', | ||
}, | ||
useridText: { | ||
fontSize: 14, | ||
color: '#111111', | ||
}, | ||
statusWrap: { | ||
marginRight: 24, | ||
justifyContent: 'center', | ||
}, | ||
statusText: { | ||
color: '#111111', | ||
fontSize: 16, | ||
}, | ||
}); |
Oops, something went wrong.