在React-native 0.39,
@H_502_16@我经常得到这个错误,但我不太明白为什么(指出我没有设置flexGrow的事实).
这是控制台的错误
View was rendered with explicitly set width/height but with a 0 flexBasis. (This might be fixed by changing flex: to flexGrow:) View: <RCTShadowView: 0x6080005a02a0; viewName: RCTView; reactTag: 2608; frame: {{0,0},{nan,nan}}>
有人可以向我解释为什么这个错误被触发?
flex: 1,// remove width and height to override fixed static size width: null,height: null,
但是,如果有人能够反思自己的样式,或者导致我获得良好的资源,我将不胜感激:)