📌  相关文章
📜  中心水平反应原生 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:57.486000             🧑  作者: Mango

代码示例3
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
    }
});