react-native-material-design
Version:
React Native Material Design Components
27 lines (21 loc) • 529 B
JavaScript
import React, {Component, PropTypes} from "react";
import {StyleSheet, View} from "react-native";
export default class Body extends Component {
static propTypes = {
children: PropTypes.node.isRequired
};
render() {
const { theme, children } = this.props;
return (
<View style={ styles.container }>
{children}
</View>
);
}
}
const styles = StyleSheet.create({
container: {
paddingTop: 16,
paddingBottom: 16
}
});