React Native-内联样式和属性不';我不想在IOS上工作

React Native-内联样式和属性不';我不想在IOS上工作,ios,react-native,styles,Ios,React Native,Styles,我正在用react native做一个多平台的应用程序,但是一些布局属性在Android中工作,但在IOS中不工作。在我们的代码中进行了一些搜索之后,我们发现内联属性为我们提供了throuble,就像在代码中: <Button style={principal_style.botoes} backgroundColor='#e3e3e3' onPress={() => this.logaUser() }> <Text style={pri

我正在用react native做一个多平台的应用程序,但是一些布局属性在Android中工作,但在IOS中不工作。在我们的代码中进行了一些搜索之后,我们发现内联属性为我们提供了throuble,就像在代码中:

 <Button
    style={principal_style.botoes}
    backgroundColor='#e3e3e3'
    onPress={() => this.logaUser() }>
    <Text style={principal_style.btntxtstylewhite}>{this.state.txtEntrar}</Text>
 </Button>
 <View style={{flex: 1, justifyContent: 'center', }}>
      <Text style={{color:'#ffffff', fontSize:12, textAlign: 'center', marginTop: 20,}}>V - 0.02</Text>
 </View>
我不知道还能做什么,也许是一些react命令,任何可以使用的东西,内联风格应该在IOS中工作,对吗

请告诉我一些关于那件事的情况

编辑1

我可以用它解决第一个问题

 <TouchableHighlight style={[styles.button,{ backgroundColor: '#f00'}]} 

react native按钮在Android和IOS上的工作方式不同,请检查颜色属性
botoes:{flex:2,}
max是1谢谢你们,伙计们,这有助于找到方法,我会解释我做错了什么。
 <TouchableHighlight style={[styles.button,{ backgroundColor: '#f00'}]} 
<TouchableHighlight style={[styles.button,{ backgroundColor: '#f00'}]}