mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Adding 'setLayoutAnimationEnabledExperimental' flag to UIManagerStatic for Android LayoutAnimation (#16317)
This commit is contained in:
committed by
Mohamed Hegazy
parent
ff4eaf5d61
commit
8e1e46db87
Vendored
+12
@@ -7471,6 +7471,18 @@ export interface UIManagerStatic {
|
||||
onFail: () => void, /* currently unused */
|
||||
onSuccess: MeasureLayoutOnSuccessCallback
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Automatically animates views to their new positions when the
|
||||
* next layout happens.
|
||||
*
|
||||
* A common way to use this API is to call it before calling `setState`.
|
||||
*
|
||||
* Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
|
||||
*
|
||||
* UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
|
||||
*/
|
||||
setLayoutAnimationEnabledExperimental(value: boolean): void;
|
||||
}
|
||||
|
||||
export interface SwitchPropertiesIOS extends ViewProperties {
|
||||
|
||||
Reference in New Issue
Block a user