[ADD] col component
This commit is contained in:
@@ -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,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user