From b9a3cd09c7bbb7150bd8b0877e81cda961fa73f2 Mon Sep 17 00:00:00 2001 From: Mike Martin <2hip2carebear@gmail.com> Date: Wed, 12 Jun 2019 05:19:58 -0700 Subject: [PATCH] Adding animating to ProgressBarAndroid (#36128) --- types/react-native/index.d.ts | 6 ++++++ types/react-native/test/index.tsx | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 1aa3397a5c..72b1197b4b 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -21,6 +21,7 @@ // Wojciech Tyczynski // Jake Bloom // Ceyhun Ozugur +// Mike Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -3299,6 +3300,11 @@ export interface ProgressBarAndroidProps extends ViewProps { */ progress?: number; + /** + * Whether to show the ProgressBar (true, the default) or hide it (false). + */ + animating?: boolean; + /** * Color of the progress bar. */ diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index b9e9912e27..44b186322f 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -90,6 +90,7 @@ import { NetInfo, PermissionsAndroid, Platform, + ProgressBarAndroid, PushNotificationIOS, } from "react-native"; @@ -937,6 +938,16 @@ const PlatformTest = () => { } }; +// ProgressBarAndroid +const ProgressBarAndroidTest = () => { + +}; + // Push notification const PushNotificationTest = () => { PushNotificationIOS.scheduleLocalNotification({