学习交流:https://gitee.com/potato512/Learn_ReactNative
react-native学习交流QQ群:806870562
效果图
代码示例
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View,
Text
} from 'react-native';
let widthScreen = Dimensions.get('window').width;
let heightScreen = Dimensions.get('window').height;
type Props = {};
export default class StyleSheetPage extends Component<Props> {
render() {
return(
<View style={styles.containerStyle}>
<View style={styles.borderStyle}></View>
<View style={styles.marginStyle}/>