react-web-native-sketch
Version:
[TODO: We need an overview of how this can be used via npm vs as a local package]
13 lines (9 loc) • 311 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import style from './style';
const CenterView = props => <View style={style.main}>{props.children}</View>;
CenterView.propTypes = {
children: PropTypes.node.isRequired,
};
export { CenterView as default };