Skip to content

Commit

Permalink
Allow passing a stateless component as TabBarComponent (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
anddon authored and ardaogulcan committed Oct 17, 2018
1 parent f10223a commit 67620c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KeyboardAwareTabBarComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export default class KeyboardAwareTabBarComponent extends React.PureComponent {
}

KeyboardAwareTabBarComponent.propTypes = {
TabBarComponent: PropTypes.node.isRequired,
TabBarComponent: PropTypes.oneOfType([ PropTypes.node, PropTypes.func ]).isRequired,
};

0 comments on commit 67620c5

Please sign in to comment.