-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.android_LWF.js
28 lines (23 loc) · 1017 Bytes
/
index.android_LWF.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React, { Component } from 'react';
import { AppRegistry, View } from 'react-native';
export default class FixedDimensionsBasics extends Component {
render() {
return (
<View style={{
flex:1,
flexDirection:'column',
justifyContent: 'flex-start',
alignItems:'stretch'}}>
<View style={{width:50,height:50,backgroundColor:'yellow'}}/>
<View style={{width:50,height:50,backgroundColor:'skyblue'}}/>
<View style={{width:50,height:50,backgroundColor:'steelblue'}}/>
</View>
// <View style={{flex: 1}}>
// <View style={{flex: 1, backgroundColor:'powderblue'}}/>
// <View style={{flex: 2, backgroundColor:'skyblue'}}/>
// <View style={{flex: 3, backgroundColor:'steelblue'}}/>
// </View>
);
}
}
AppRegistry.registerComponent('AwesomeProject',()=>FixedDimensionsBasics);