Browse Source

0.0.6 Basic dimensions.

Frederic G. MARAND 6 years ago
parent
commit
31f1e8060e
1 changed files with 16 additions and 0 deletions
  1. 16 0
      App06BasicDimensions.js

+ 16 - 0
App06BasicDimensions.js

@@ -0,0 +1,16 @@
+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;