mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +00:00
Add Basic support to transform props, including translate, rotate, scale, skewX, skewY and matrix. Keep in mind that the current implementation doesn't support 3-arguments rotate(a, x, y) transform yet.
This commit is contained in:
@@ -24,11 +24,7 @@ export default function(props, ref) {
|
||||
Object.assign(extractedProps, extractStroke(props, styleProperties));
|
||||
Object.assign(extractedProps, extractFill(props, styleProperties));
|
||||
|
||||
if (props.transform) {
|
||||
extractedProps.matrix = extractTransform(props.transform);
|
||||
} else {
|
||||
extractedProps.matrix = extractTransform(props);
|
||||
}
|
||||
extractedProps.matrix = extractTransform(props);
|
||||
|
||||
Object.assign(extractedProps, extractResponder(props, ref));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user