top of page
Writer's pictureJino Shaji

React-native- FlexBox Layout demo

Updated: Jun 9, 2020




import React from ‘react’;
import { StyleSheet, Text, View } from ‘react-native’;
export default class App extends React.Component{
 render(){
 return(
 <View style={styles.container}>
 <View style={{width:50,height:50,backgroundColor:‘powderblue’}}>
 </View>
 <View style={{width:50,height:50,backgroundColor:‘skyblue’}}>
 </View>
 <View style={{width:50,height:50,backgroundColor:‘steelblue’}}>
 </View>
 </View>
    )
  }
}
const styles= StyleSheet.create({
 container: {
 flex: 1,
 backgroundColor: ‘#fff’,
 flexDirection: ‘row’,
 justifyContent: ‘space-between’,
 alignItems: ‘center’,
      }
})

0 views0 comments

Recent Posts

See All

Redux-Thunk Small Overview

Introduction Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be...

Comments


bottom of page