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

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

代码示例3
// Add these styles to a parent element (could be a view)
   
const styles = StyleSheet.create({
    parent:{
        flex:1, // Covers the available space
        justifyContent:"center", // aligns through main axis
        alignItems:"center" // aligns though secondary axis
    }
});