title: defaultProps in React Native?
body: <p>Is it possible to use defaultProps in React Native?
  I’ve tried the following 2 ways of defining defaultProps and I get null when trying to access the defaultProp</p>
  
  <pre><code>export default class Foo extends Component {
    // 1. define defaultProps within Class
    static defaultProps = {
      someData: 'Hello',
    }
  
    constructor(props) {
      super(props);
    }
  
    componentDidMount() {
      console.log(this.props.someData);
    }
  
    render() {
      return (
        &lt;View&gt; {this.props.someData} &lt;/View&gt;
      )
    }
  }
    // 2. define defaultProps outside Class
  Foo.defaultProps = { someData: 'Hello' }
  </code></pre>