-
`onToggle` should be omitted from `Accordion.Item` `propTypes`. i.e. `Accordion.Item` should be a new child component defined in `Accordion.jsx`, that renders an `ExpanderPanel`, instead of being a di…
-
For all of the following examples, `propTypes` are incorrectly not removed:
```jsx
import PropTypes from 'prop-types';
export default function Foo({ children }) {
return children();
}
Fo…
-
```
var { requireNativeComponent, PropTypes } = require('react-native');
var iface = {
'IconTextView':{
name: 'IconTextView',
propTypes: {
text: PropTypes.strin…
-
I've implemented a new [``](https://www.lightningdesignsystem.com/components/dueling-picklist/) component for my team's internal project (Salesforce employee), which I would like to contribute.
Pr…
-
`PropTypes.oneOf`, `PropTypes.arrayOf(React.PropTypes.number)` and other proptypes will make it easier to use your component, thanks to more meaningful error messages.
http://devdocs.io/react/docs/r…
-
backgroundSource propTypes should be:
```
PropTypes.oneOfType([
PropTypes.shape({
uri: PropTypes.string,
}),
// Opaque type returned by require('./image.jpg')
PropType…
-
React is discontinuing `View.propTypes`
https://github.com/facebook/react-native/issues/16542#issuecomment-386073107
-
## 🚀 Feature request
### Current Behavior
I guess the only way to _type_ Formik forms correctly today is to use TypeScript, but if you don't, you have to declare PropTypes manually (unless I'm m…
-
Hi there!
**screenshot:**
![react-doc-generator_defaultValue](https://user-images.githubusercontent.com/5007050/60528042-d53c5e00-9cf3-11e9-8b63-c0fa5f55d207.png)
**Problem**
My default value …
-
We use a common library of proptypes. Add events type check and change the object at each one of the files that use this prop.