22 lines
440 B
JavaScript
22 lines
440 B
JavaScript
|
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
|
||
|
|
||
|
import React, { PropTypes } from 'react';
|
||
|
import { View } from 'react-native';
|
||
|
import style from './style';
|
||
|
|
||
|
export default function CenterView(props) {
|
||
|
return (
|
||
|
<View style={style.main}>
|
||
|
{props.children}
|
||
|
</View>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
CenterView.defaultProps = {
|
||
|
children: null,
|
||
|
};
|
||
|
|
||
|
CenterView.propTypes = {
|
||
|
children: PropTypes.node,
|
||
|
};
|