Giter VIP home page Giter VIP logo

frontend's Introduction

frontend - 인증 탭 enroll page 구현

frontend's People

Contributors

jewon98 avatar jwaminju avatar kchanghun avatar

Forkers

jewon98 jwaminju

frontend's Issues

해결) Empty Data 텍스트 화면의 center로 옮기는 법

스크린샷 2022-04-14 오전 2 12 19

문제점: empty data가 가운데로 오지 않는다
원하는 것: 보통은 flex 값을 1로 두어서 가운데로 오게 하지만, 찾아보니 flex는 누적합의 비율을 계산해서 위치를 잡는다고 한다.
flex 활용법 참고 링크: https://reactnative.dev/docs/flexbox

해볼것: 현재 text 외에는 아무것도 없는 페이지 인데, 왜 flex 값을 1로 두면 안되는지 다른 방법없나 찾아보는 중입니다.

색칠해 보니까, empty data 가 차지하는 공간이 전체가 아니라 일부임
스크린샷 2022-04-14 오전 2 31 21

authentication branch 관리에 관하여

authentication branch를 만들었는데
저희가 만들 템플릿의 구현이 이루어지는 곳입니다.

이 브랜치는 아래와 같이 관리하겠습니다.
새로운 템플릿을 구현하실 때에는 먼저 authentication branch로 checkout하고
만들 template의 간략한 이름으로 branch를 만들어주시고 그곳에서 구현 하신 다음에
해당 template이 완성이 되면 authentication branch와 merge시켜주시면 되겠습니다.

부모 view component 의 사이즈를 알아내는 법 #onLayout

해결 내용: 부모 컴포넌트의 사이즈를 알아낼 수 있는 onLayout
문제점: 저번에 원 size를 resposive(반응형)으로 설정할때 적용할 수 있음-컴포넌트 사이즈 측정 훅을 만든다

참고한 내용:
https://stackoverflow.com/questions/56738500/react-native-onlayout-with-react-hooks
https://ko.reactjs.org/docs/hooks-custom.html
두개 참고했고, 코드는 아래처럼 짬. 훅은 class의 단점들을 보완하기 위해 생긴 것이라고 함.

결론: dogCard(Item)에 있던 원 size를 부모 component size에 맞출 수 있었다..

function Item({item}) {
const [parentHeight, setParentHeight] = useState({height:0}); // 동적인 값 관리
const onLayout=(event)=> {
const {x, y, height, width} = event.nativeEvent.layout; // position (x, y), size (height, width)
setParentHeight({height:height});
};

return (
<View style={styles.item} onLayout={onLayout}>
<Image source={{uri: item.photo}}
style={ {width: parentHeight.height/2,
height:parentHeight.height/2,

borderRadius:50,
margin: '3%'}}/>
{item.title}
나이: {item.title}
성별: {item.title} 중성화: {1}
입양처: {item.title}

)
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.