diff --git a/docs/UsingNavigators.md b/docs/UsingNavigators.md index 16ef78f78..18bff8921 100644 --- a/docs/UsingNavigators.md +++ b/docs/UsingNavigators.md @@ -31,11 +31,12 @@ import React, { Component } from 'react'; import { View, Text } from 'react-native'; export default class MyScene extends Component { - getDefaultProps() { - return { - title: 'MyScene' - }; - } + static propTypes = { + title: React.PropTypes.string, + }; + static defaultProps = { + title: 'MyScene', + }; render() { return (