react native 各種居中
import React,{Component} from 'react';
import {View,Text} from 'react-native';
export default class Demo13Component extends Component{
render(){
return (
<View>
<View style={{height:100,width:100,backgroundColor:'#eee',alignItems:'center'}}>
<Text>水平居中</Text>
</View>
<View style={{height:100,width:100,backgroundColor:'green',justifyContent:'center'}}>
<Text>垂直居中</Text>
</View>
<View style={{height:100,width:100,backgroundColor:'red',alignItems:'center',justifyContent:'center'}}>
<Text>水平垂直居中</Text>
</View>
</View>
)
}
}
相關文章
- 各種CSS居中方案CSS
- CSS佈局-各種居中CSS
- ****CSS各種居中方法CSS
- CSS居中的各種實現方式CSS
- React Router各種資源集React
- css實現盒子模型的各種居中方式CSS模型
- [React Native]react-native-scrollabReact Native
- React Native 使用 react-native-webview 渲染 HTMLReact NativeWebViewHTML
- React Native Icon方案:react-native-svgReact NativeSVG
- React Native轉web方案:react-native-webReact NativeWeb
- iOS React Native 混合開發整合React NativeiOSReact Native
- react-native配置react-native-image-crop-pickerReact
- React Native 上手React Native
- react-nativeReact
- react native FlatListReact Native
- Hello React NativeReact Native
- RN幾種腳手架工具的使用和對比(react-native-cli、create-react-native-app、exp)ReactAPP
- React Native / React除錯技巧React Native除錯
- 在react中使用svg的各種騷姿勢ReactSVG
- 《React Native高效開發》之create-react-native-appReact NativeAPP
- React Native選擇器元件-react-native-slidepickerReact Native元件IDE
- react native 包學不包會系列--認識react nativeReact Native
- react-native呼叫native步驟React
- 16種方法實現水平居中垂直居中
- react/react-native效能優化React優化
- 詳解 React NativeReact Native
- React Native 熱更新React Native
- Redux for react native 指南ReduxReact Native
- react native fetchReact Native
- React Native List列表React Native
- react native快速上手React Native
- react-native打包React
- React Native雜談React Native
- [譯] Airbnb 在 React Native 上下的賭注(四):React Native 退役AIReact Native
- [React Native] Animate the Scale of a React Native Button using Animated.springReact NativeSpring
- React-Native ‘WKWebView` has no propType for native propReactWebView
- React Native學習 認識Recat NativeReact Native
- css居中幾種方法CSS