refactor shape elements add responder system.

refactor shape elements add responder system.
Just iOS.
This commit is contained in:
Horcrux
2016-05-15 00:40:43 +08:00
parent 1f7a908406
commit 8d01e8eccb
65 changed files with 2354 additions and 213 deletions

View File

@@ -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
},