You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<TextInputstyle={styles.numberInput}maxLength={2}keyboardType="number-pad"// 키보드 형식 지정autoCorrect={false}// 자동 수정 방지autoCapitalize="none"// 문자 입력시 자동 대문자 변경 방지/>
커스텀 버튼
import{View,Text,Pressable,StyleSheet}from"react-native";functionPrimaryButton({ children }){functionpressHandler(){console.log("Button pressed");}return(<Viewstyle={styles.buttonOuterContainer}><Pressable// ios 의 ripple (물결효과)를 위한 style 프로퍼티style={({ pressed })=>pressed// pressed가 true이면 2개의 스타일 객체를 적용 할 수 있음
? [styles.buttonInnerContainer,styles.pressed]
: styles.buttonInnerContainer}onPress={pressHandler}// androiod의 ripple 효과androiod_ripple={{color: "#640233"}}><Textstyle={styles.buttonText}>{children}</Text></Pressable></View>);}exportdefaultPrimaryButton;conststyles=StyleSheet.create({buttonOuterContainer: {borderRadius: 28,margin: 4,overflow: "hidden",},buttonInnerContainer: {backgroundColor: "#f7287b",paddingVertical: 8,paddingHorizontal: 16,elevation: 2,},buttonText: {color: "white",textAlign: "center",},pressed: {opacity: 0.75,},});
어려운 내용이 있었다면 무엇이고, 이를 어떻게 해결하였나요?
.
어떤 자료를 참고하였나요?
.
The text was updated successfully, but these errors were encountered:
무엇을 알게 되었나요?
커스텀 버튼 생성하기
ios & Android 스타일링
Text 필드 구성
커스텀 버튼
어려운 내용이 있었다면 무엇이고, 이를 어떻게 해결하였나요?
.
어떤 자료를 참고하였나요?
.
The text was updated successfully, but these errors were encountered: