【发布时间】:2019-02-02 06:18:38
【问题描述】:
我一直在使用 react native 并添加了这个问题:
使用style={[style.container, { height: this.state.position }]} 时,我的视图没有设置所需的高度,并且我的组件搞砸了。但后来遇到了style={{...style.container, height: this.state.position }} 和我的风格,并按预期工作。
on和other有什么区别?
【问题讨论】:
标签: react-native styles