mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Adding animating to ProgressBarAndroid (#36128)
This commit is contained in:
Vendored
+6
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user