Skip to content

Commit

Permalink
Fix/image (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsjmine129 authored Jun 1, 2024
1 parent da1a722 commit a1cdf1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/screens/mypage/MypageScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function MyPageScreen() {
<TouchableOpacity
style={styles.text6Position}
onPress={() => {
navigation.navigate('UserDataChange');
navigation.navigate('UserDataChange', {data: profileImageUrl});
}}>
<Text style={styles.text6}>{nickname}</Text>
<Image
Expand Down
6 changes: 4 additions & 2 deletions src/screens/mypage/UserDataChangeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ import RNFS from 'react-native-fs';
import {SvgXml} from 'react-native-svg';
import {svgXml} from '../../assets/svg';

export default function UserDataChangeScreen() {
export default function UserDataChangeScreen(props) {
const navigation = useNavigation();
const context = useContext(AppContext);

const [profileImage, setProfileImage] = useState('');
const {route} = props;
// const profile = route.params?.profile;
const [profileImage, setProfileImage] = useState(route.params?.data);
const [nickname, setNickname] = useState('');
const [email, setEmail] = useState('');
const [duplicateMessage, setDuplicateMessage] = useState('');
Expand Down

0 comments on commit a1cdf1a

Please sign in to comment.