我有一个简单的样式表在我的反应组件的底部声明。反应原生stylesheet.create函数返回映射数字而不是样式规则
const styles = StyleSheet.create({
start:{
flex:1
},
text:{
color: "red",
fontSize: 24,
flex: 1
},
separator:{
height: 2,
backgroundColor: "white"
}
});
当我尝试refernce任何这些样式,我回来了一些,而不是样式规则。
export default class ShowGallery extends Component{
render(){
return(
<View>
<Text style={styles.text}>Test </Text>
</View>
)
}
}
这里styles.text正在返回193?顺便说我使用的反应原生版本37.0