Skip to content

Commit

Permalink
NavigationService types [nfc]: Annotate some exports.
Browse files Browse the repository at this point in the history
This will help move us along toward Flow's new "Types-First" mode;
switching entirely is zulip#4907.
  • Loading branch information
chrisbobbe authored and gnprice committed Aug 12, 2021
1 parent f64e10c commit 66aad74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nav/NavigationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import type {
NavigationContainerType,
} from '@react-navigation/native';

export const isReadyRef = React.createRef<boolean>();
export const navigationContainerRef = React.createRef<React$ElementRef<NavigationContainerType>>();
export const isReadyRef: {| current: null | boolean |} = React.createRef();
export const navigationContainerRef: {|
current: null | React$ElementRef<NavigationContainerType>,
|} = React.createRef();

const getContainer = () => {
if (navigationContainerRef.current === null) {
Expand Down

0 comments on commit 66aad74

Please sign in to comment.