[react native] Invariant Violation: View config getter callback for component `firstView` must be a function (received `undefined`). Make sure to start component names with a capital letter.
반응형
Invariant Violation: View config getter callback for component `firstView` must be a function (received `undefined`). Make sure to start component names with a capital letter.
export default () => {
const firstView = () => {
return (
<View>
<Text> hello </Text>
</View>
);
};
return (
<>
<View>
<firstView/> <--- 요기
</View>
</>
)
}
?? 갑자기 왜 안되지..?
컴포넌트 명칭은 대문자로 시작 해야한다...
이런 간단한거를... (머쓱)
firstView -> FirstView 로 변경
Make sure to start component names with a capital letter.
구성 요소 이름은 대문자로 시작해야합니다.
반응형