mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +00:00
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:
committed by
GitHub
parent
38f52a5c14
commit
8be3f7e412
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user