Skip to content

Commit

Permalink
password auth: Write a real type for navigation prop.
Browse files Browse the repository at this point in the history
This mirrors the assumptions on this type that are provided in
navActions when we navigate to this screen.
  • Loading branch information
gnprice committed Apr 4, 2019
1 parent 22de35e commit a4b621c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/start/PasswordAuthScreen.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* @flow */
/* @flow strict-local */
import { connect } from 'react-redux';

import React, { PureComponent } from 'react';
import { View, StyleSheet } from 'react-native';
import type { NavigationScreenProp } from 'react-navigation';

import type { Auth, Dispatch, GlobalState } from '../types';
import { fetchApiKey } from '../api';
Expand All @@ -28,7 +28,7 @@ const styles = StyleSheet.create({
type Props = {|
partialAuth: Auth,
dispatch: Dispatch,
navigation: Object,
navigation: NavigationScreenProp<{ params: {| requireEmailFormat: boolean |} }>,
|};

type State = {|
Expand Down

0 comments on commit a4b621c

Please sign in to comment.