fix(🐛): Expose RN Transform API in types

The SVG module supports the RN transform API. In fact, it is the recommended approach when animating SVG transform. This exposes the API via the TS types.
This commit is contained in:
William Candillon
2021-08-09 13:38:31 +02:00
committed by GitHub
parent 38f52a5c14
commit 8be3f7e412
+2 -2
View File
@@ -1,6 +1,6 @@
import * as React from 'react';
import * as ReactNative from 'react-native';
import { GestureResponderEvent } from 'react-native';
import { GestureResponderEvent, TransformStyle } from 'react-native';
// Common props
export type NumberProp = string | number;
@@ -203,7 +203,7 @@ export type ColumnMajorTransformMatrix = [
];
export interface TransformProps extends TransformObject {
transform?: ColumnMajorTransformMatrix | string | TransformObject;
transform?: ColumnMajorTransformMatrix | string | TransformObject | TransformStyle["transform"];
}
export interface CommonMaskProps {