mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
revert D4656347 to fix crashes
Reviewed By: jingc Differential Revision: D4659669 fbshipit-source-id: 2c95c212a19cc8b67ce4ec62963c8374aecb3ef6
This commit is contained in:
committed by
Facebook Github Bot
parent
8f0c16d7af
commit
b87f4abf78
@@ -2187,13 +2187,7 @@ function attachNativeEvent(viewRef: any, eventName: string, argMapping: Array<?M
|
||||
|
||||
return {
|
||||
detach() {
|
||||
eventMappings.forEach((mapping) => {
|
||||
NativeAnimatedAPI.removeAnimatedEventFromView(
|
||||
viewTag,
|
||||
eventName,
|
||||
mapping.animatedValueTag,
|
||||
);
|
||||
});
|
||||
NativeAnimatedAPI.removeAnimatedEventFromView(viewTag, eventName);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user