Guest User

Untitled

a guest
Feb 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import React, {Component} from ‘react’;
  2. import {AppRegistry,View}from ‘react - native’;
  3.  
  4. export default class FlexDirectionBasics extends Component {
  5. render() {
  6. return (
  7. <View style = {
  8. {
  9. flex: 1,
  10. flexDirection: ‘column’
  11. }
  12. } > //changed flexDirection to row and you get fig. 1.2 as a result.
  13. < View style = {{width: 50,height: 50,backgroundColor: ‘powderblue’}} />
  14. < View style = {{width: 50,height: 50,backgroundColor: ‘skyblue’}} />
  15. < View style = {{width: 50,height: 50,backgroundColor: ‘steelblue’}} />
  16. </View>);
  17. }
  18. };
Add Comment
Please, Sign In to add comment