
React Native에서는 px로 쓰지않는다
이런식으로 선언한다.
기본적으로 카멜케이스로 작성
const styles = StyleSheet.create({
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
});
스타일시트참고
https://github.com/vhpoet/react-native-styling-cheat-sheet
웹개발자기준에서
Text -> span
View -> div. 라고 이해하면되는데
텍스트는 한상 Text로 감싸줘야된다
<View><Text> 텍스트 부분 </Text></View>
보통 최상단은 SafeAriaView로 만든다.
노치 -> SafeAriaView 쓰면 죽은공간으로 만들어준다
사실 그냥 필요할때마다 공식문서 또는 구글링하는게 빠르다.......