From 66aad74ad1275b5598fe0c4755c7abdbfb635adb Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Thu, 5 Aug 2021 12:57:23 -0400 Subject: [PATCH] NavigationService types [nfc]: Annotate some exports. This will help move us along toward Flow's new "Types-First" mode; switching entirely is #4907. --- src/nav/NavigationService.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nav/NavigationService.js b/src/nav/NavigationService.js index 4ef524b8bee..6ceb191bfc2 100644 --- a/src/nav/NavigationService.js +++ b/src/nav/NavigationService.js @@ -6,8 +6,10 @@ import type { NavigationContainerType, } from '@react-navigation/native'; -export const isReadyRef = React.createRef(); -export const navigationContainerRef = React.createRef>(); +export const isReadyRef: {| current: null | boolean |} = React.createRef(); +export const navigationContainerRef: {| + current: null | React$ElementRef, +|} = React.createRef(); const getContainer = () => { if (navigationContainerRef.current === null) {