Storybook working

This commit is contained in:
Federico Kereki
2018-09-23 01:55:14 -03:00
parent 6159e3c5c3
commit 4133bd644c
13 changed files with 7739 additions and 299 deletions
+25
View File
@@ -0,0 +1,25 @@
/* @flow */
import React from "react";
import { View, StyleSheet } from "react-native";
import PropTypes from "prop-types";
const centerColor = "white";
const styles = StyleSheet.create({
centered: {
flex: 1,
backgroundColor: centerColor,
alignItems: "center",
justifyContent: "center"
}
});
export class Centered extends React.Component<{ children: node }> {
static propTypes = {
children: PropTypes.node.isRequired
};
render() {
return <View style={styles.centered}>{this.props.children}</View>;
}
}