App06BasicDimensions.js 470 B

12345678910111213141516
  1. import React from 'react';
  2. import { View } from 'react-native';
  3. class FixedDimensionsBasics extends React.Component {
  4. render() {
  5. return (
  6. <View>
  7. <View style={{ width: 50, height: 50, backgroundColor: 'powderblue' }} />
  8. <View style={{ width: 100, height: 100, backgroundColor: 'skyblue' }} />
  9. <View style={{ width: 150, height: 150, backgroundColor: 'steelblue' }} />
  10. </View>
  11. );
  12. }
  13. }
  14. export default FixedDimensionsBasics;