From e5a8f4270ea71749a5ce6bd7ae198f695edb4307 Mon Sep 17 00:00:00 2001 From: simek Date: Tue, 14 Jul 2020 08:36:23 -0700 Subject: [PATCH] fix StatusBar showHideTransition flow type issue (#29034) Summary: This small PR adds third, missing [`StatusBarAnimation`](https://github.com/facebook/react-native/blob/master/Libraries/Components/StatusBar/StatusBar.js#L45) possible value to the `showHideTransition` prop validation - `'none'`. This fixes the following issue when `` code is used: Screenshot 2020-06-02 at 22 39 37 ## Changelog [iOS] [Fixed] - fix StatusBar showHideTransition flow type issue Pull Request resolved: https://github.com/facebook/react-native/pull/29034 Test Plan: I have run the `flow` check in the test project which uses local working copy of `react-native` with this change included. Reviewed By: GijsWeterings Differential Revision: D22493825 Pulled By: cpojer fbshipit-source-id: 463badec67e6725cb8711a79aa43d84f9b09f796 --- Libraries/Components/StatusBar/StatusBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/StatusBar/StatusBar.js b/Libraries/Components/StatusBar/StatusBar.js index 9352594540a38d..021e75494d12fa 100644 --- a/Libraries/Components/StatusBar/StatusBar.js +++ b/Libraries/Components/StatusBar/StatusBar.js @@ -87,7 +87,7 @@ type IOSProps = $ReadOnly<{| * * @platform ios */ - showHideTransition?: ?('fade' | 'slide'), + showHideTransition?: ?('fade' | 'slide' | 'none'), |}>; type Props = $ReadOnly<{|