📅  最后修改于: 2022-03-11 15:01:57.486000             🧑  作者: Mango
const styles = StyleSheet.create({
//Container for View or Text or etc. that must be centered.
parent:{
flex:1, // Covers the available space
justifyContent:"center", // aligns through main axis
alignItems:"center" // aligns though secondary axis
}
});