mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
17381f197f
commit
bc4825ee9d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user