Cannot add a child that doesn't have a YogaNodeto a parent without a measure function! (Tryingto add a 'ReactRaw TextShadowNode' to a'LayoutShadowNode') addChildAt

Screenshot_2018-08-16-18-23-04-794_com.ylxapp.png
經(jīng)查找發(fā)現(xiàn):
{
transferCity &&
<View style={styles.icon}><Text style={{ color: '#fff' }}>轉</Text></View>
}
上面的寫法引起的, ios這么寫沒問題, 安卓卻報錯了, 改成下面的寫法就好了
{
transferCity ?
<View style={styles.icon}><Text style={{ color: '#fff' }}>轉</Text></View> : null
}