const BorderedInput = ({hasMarginBottom, ...rest}: Props) => { return ( <TextInput style={[styles.input, hasMarginBottom && styles.margin]} {...rest} /> ); };
react 에서 props 를 rest 파라미터로 받을 수 있다 근데 가독성이.. 이거 맞나 싶은..??