diff --git a/src/NavBar.js b/src/NavBar.js index d8d72eb43..229313078 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -108,10 +108,6 @@ const styles = StyleSheet.create({ }, }); -const contextTypes = { - drawer: PropTypes.object, -}; - const propTypes = { navigationState: PropTypes.object, backButtonImage: PropTypes.number, @@ -124,6 +120,10 @@ const propTypes = { navigationBarStyle: PropTypes.object, }; +const contextTypes = { + drawer: PropTypes.object, +}; + const defaultProps = { drawerImage: require('./menu_burger.png'), backButtonImage: require('./back_chevron.png'), @@ -382,8 +382,8 @@ class NavBar extends React.Component { } } +NavBar.propTypes = propTypes; NavBar.contextTypes = contextTypes; NavBar.defaultProps = defaultProps; -NavBar.propTypes = propTypes; export default NavBar;