mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-19 21:45:10 +00:00
refactor shape elements add responder system.
refactor shape elements add responder system. Just iOS.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import _ from 'lodash';
|
||||
import ReactNativeViewAttributes from 'react-native/Libraries/Components/View/ReactNativeViewAttributes';
|
||||
|
||||
function arrayDiffer(a, b) {
|
||||
if (_.isNil(a)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (a.length !== b.length) {
|
||||
return true;
|
||||
}
|
||||
@@ -57,6 +59,7 @@ function fontAndLinesDiffer(a, b) {
|
||||
}
|
||||
|
||||
const NodeAttributes = {
|
||||
...ReactNativeViewAttributes.UIView,
|
||||
transform: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user