js__react_native__fb/App06BasicDimensions.js

16 lines
470 B
JavaScript

import React from 'react';
import { View } from 'react-native';
class FixedDimensionsBasics extends React.Component {
render() {
return (
<View>
<View style={{ width: 50, height: 50, backgroundColor: 'powderblue' }} />
<View style={{ width: 100, height: 100, backgroundColor: 'skyblue' }} />
<View style={{ width: 150, height: 150, backgroundColor: 'steelblue' }} />
</View>
);
}
}
export default FixedDimensionsBasics;