Fix typing for ProgressBarAndroid

Summary: `ProgressBarAndroid` exported the wrong type and Flow wasn't catching some issues with it because they were hidden by a `$FlowFixMe` annotation. This exports the right type and fixes the bad usages.

Differential Revision: D16938853

fbshipit-source-id: 7ea4bbf379a010a76dc68ccb405e1f890d7e590a
This commit is contained in:
Rubén Norte
2019-08-21 19:03:06 -07:00
committed by Facebook Github Bot
parent 17381f197f
commit bc4825ee9d
3 changed files with 6 additions and 5 deletions
@@ -100,4 +100,4 @@ ProgressBarAndroidToExport.defaultProps = {
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
* error found when Flow v0.89 was deployed. To see the error, delete this
* comment and run Flow. */
module.exports = (ProgressBarAndroidToExport: ProgressBarAndroidNativeComponent);
module.exports = (ProgressBarAndroidToExport: typeof ProgressBarAndroidNativeComponent);