Use generated Java delegate for setting properties on ReactProgressBarViewManager

Summary: This diff migrates `ReactProgressBarViewManager` to use the generated `AndroidProgressBarManagerDelegate` for setting its properties.

Reviewed By: JoshuaGross, mdvacca

Differential Revision: D17315619

fbshipit-source-id: 6293c6fc18567a934b6f3dce9b77abcc408052d8
This commit is contained in:
Oleksandr Melnykov
2019-09-23 07:18:09 -07:00
committed by Facebook Github Bot
parent 23557d1f9a
commit 2e7545cf7e
5 changed files with 35 additions and 6 deletions
@@ -12,7 +12,7 @@
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
import type {ViewProps} from '../View/ViewPropTypes';
import type {Float, WithDefault} from '../../Types/CodegenTypes';
import type {Double, WithDefault} from '../../Types/CodegenTypes';
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
import {type NativeComponentType} from '../../Utilities/codegenNativeComponent';
@@ -24,7 +24,7 @@ type NativeProps = $ReadOnly<{|
styleAttr?: string,
typeAttr?: string,
indeterminate: boolean,
progress?: WithDefault<Float, 0>,
progress?: WithDefault<Double, 0>,
animating?: WithDefault<boolean, true>,
color?: ?ColorValue,
testID?: WithDefault<string, ''>,