react-tabs icon indicating copy to clipboard operation
react-tabs copied to clipboard

PropTypes validation

Open JuliusPopoola opened this issue 9 years ago • 3 comments

Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types Check the render method of Tabs.

Above the error message that I currently get using the NPM 0.8.3 version or react-tabs with react 15.0.2.

JuliusPopoola avatar May 02 '17 20:05 JuliusPopoola

Are you doing something special with the proptypes of react-tabs? Do you have an example? I cannot reproduce this currently.

danez avatar May 03 '17 20:05 danez

<div>	      
<Tabs onSelect={handleSelect}>
    <TabList>
      <Tab> Menu</Tab>
      <Tab>Search</Tab>
    </TabList>
    
    <TabPanel>
            <MenuPanel />
    </TabPanel>
    <TabPanel>
           <SearchPanel />
    </TabPanel>
    </Tabs>
</div>

JuliusPopoola avatar May 06 '17 13:05 JuliusPopoola

This is a problem with the combination of react-version your are using. We updated the code to work with react 15.5, but unfortunately this makes react version < 15.3 or <14.9 print this warning.

https://github.com/reactjs/prop-types/blob/master/README.md#compatibility

So either you update react to at least 15.3 or fix the version of react-tabs to 0.8.2.

danez avatar May 06 '17 13:05 danez