[ADD] col component

This commit is contained in:
Chloé CHAUVIN
2022-09-13 12:49:38 +02:00
parent 2b66d9e8cd
commit f60197f235
+20
View File
@@ -0,0 +1,20 @@
import React, {Component} from 'react';
import {StyleSheet, View} from 'react-native';
export default class Col extends Component{
render() {
let customStyles = Object.assign({}, this.props.customStyles, styles.container);
return (
<View style={customStyles}>
{this.props.children}
</View>
);
}
}
const styles = StyleSheet.create({
container: {
marginLeft: 5,
marginRight: 5,
}
});