React Native error: Raw “ ” must be wrapped in an explicit Component

前端 未结 6 732
执笔经年
执笔经年 2021-01-19 14:27

Hi, I am having this error in react native and cannot figure out what is causing it. Help would be greatly appreciated.

Thank you

6条回答
  •  星月不相逢
    2021-01-19 14:56

    I have already solved the problem, the answer is need to add a space:

     
                        格子{this.state.size1}
                    
    

    not

    格子{this.state.size1}

提交回复
热议问题