redbaron76 / navbar-native

a fully customizable navbar component for React-Native
90 stars 24 forks source link

Navbar is undefined error #2

Closed t2n3qqq closed 8 years ago

t2n3qqq commented 8 years ago

I get an error at this point: static buttonShape = PropTypes.shape(Navbar.buttonPropTypes); static arrayOfButtons = PropTypes.arrayOf(Navbar.buttonShape);

Navbar is undefined inside this static fields, it works fine when I use "this" instead of classname. So I can't even start my app for this reason.

wankang189 commented 8 years ago

The same problem, could you tell me how to solve

t2n3qqq commented 8 years ago

@wankang189 Just change Navbar classname on 'this' keyword in your node_modules/navbar-native/components/navbar.js. Like this #5