react native android 踩的坑

1、报错Cannot add a child that doesn't have a YogaNode to a parent without a measure function!

报错原因 1)render方法中注释语句写法不正确 

                2)在三目运算中,条件不是boolean类型,可以加在条件前 !! 变成boolean类型

未完待续。。。

猜你喜欢

转载自blog.csdn.net/Lee_taotao/article/details/82425488