diff --git a/lib/creators/createReactFunctionComponent/getIndexContent.js b/lib/creators/createReactFunctionComponent/getIndexContent.js index c579cdb..b70ea9e 100644 --- a/lib/creators/createReactFunctionComponent/getIndexContent.js +++ b/lib/creators/createReactFunctionComponent/getIndexContent.js @@ -19,13 +19,22 @@ export default function(name, isRN) { if (isRN) return forRN(name) return `import React from 'react' import styles from './styles.css' +import PropTypes from 'prop-types' -export default function ${name}(props) { +const propTypes = { + +} + +function ${name}(props) { return (
${name}
) } + +${name}.propTypes = propTypes + +export default ${name} ` }