Adding animating to ProgressBarAndroid (#36128)

This commit is contained in:
Mike Martin
2019-06-12 14:19:58 +02:00
committed by Eloy Durán
parent bf029eae71
commit b9a3cd09c7
2 changed files with 17 additions and 0 deletions
+6
View File
@@ -21,6 +21,7 @@
// Wojciech Tyczynski <https://github.com/tykus160>
// Jake Bloom <https://github.com/jakebloom>
// Ceyhun Ozugur <https://github.com/ceyhun>
// Mike Martin <https://github.com/mcmar>
// 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.
*/
+11
View File
@@ -90,6 +90,7 @@ import {
NetInfo,
PermissionsAndroid,
Platform,
ProgressBarAndroid,
PushNotificationIOS,
} from "react-native";
@@ -937,6 +938,16 @@ const PlatformTest = () => {
}
};
// ProgressBarAndroid
const ProgressBarAndroidTest = () => {
<ProgressBarAndroid
animating
color="white"
styleAttr="Horizontal"
progress={0.42}
/>
};
// Push notification
const PushNotificationTest = () => {
PushNotificationIOS.scheduleLocalNotification({