react-navigation: Fix lint (#21173)

This commit is contained in:
Andy
2017-11-01 10:28:36 -07:00
committed by GitHub
parent 216ea719fa
commit e40d7b5227

View File

@@ -76,8 +76,7 @@ interface NextScreenNavigationParams {
id: number;
name: string;
}
interface NextScreenProps extends NavigationScreenProps<NextScreenNavigationParams> { }
class NextScreen extends React.Component<NextScreenProps> {
class NextScreen extends React.Component<NavigationScreenProps<NextScreenNavigationParams>> {
render() {
// Implicit type checks.
const navigationStateParams: NextScreenNavigationParams = this.props.navigation.state.params;