mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove feature flag removeListenersOnDetach
Summary: changelog: [internal] Remove unused feature flag. Reviewed By: yungsters Differential Revision: D41188496 fbshipit-source-id: 13507197e7943aea9303ffb828feddb77c94ab0c
This commit is contained in:
1 parent
b8893c7003
commit
49d5e7c519
2 files changed
+1
-6
No files matched your search
@@ -30,9 +30,7 @@ export default class AnimatedNode {
|
|||||||
__nativeAnimatedValueListener: ?any;
|
__nativeAnimatedValueListener: ?any;
|
||||||
__attach(): void {}
|
__attach(): void {}
|
||||||
__detach(): void {
|
__detach(): void {
|
||||||
if (ReactNativeFeatureFlags.removeListenersOnDetach()) {
|
this.removeAllListeners();
|
||||||
this.removeAllListeners();
|
|
||||||
}
|
|
||||||
if (this.__isNative && this.__nativeTag != null) {
|
if (this.__isNative && this.__nativeTag != null) {
|
||||||
NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);
|
NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);
|
||||||
this.__nativeTag = undefined;
|
this.__nativeTag = undefined;
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ export type FeatureFlags = {|
|
|||||||
* to render react components driven by classes written in C++.
|
* to render react components driven by classes written in C++.
|
||||||
*/
|
*/
|
||||||
enableCppRenderSystem: () => boolean,
|
enableCppRenderSystem: () => boolean,
|
||||||
|
|
||||||
removeListenersOnDetach: () => boolean,
|
|
||||||
|};
|
|};
|
||||||
|
|
||||||
const ReactNativeFeatureFlags: FeatureFlags = {
|
const ReactNativeFeatureFlags: FeatureFlags = {
|
||||||
@@ -54,7 +52,6 @@ const ReactNativeFeatureFlags: FeatureFlags = {
|
|||||||
animatedShouldDebounceQueueFlush: () => false,
|
animatedShouldDebounceQueueFlush: () => false,
|
||||||
animatedShouldUseSingleOp: () => false,
|
animatedShouldUseSingleOp: () => false,
|
||||||
enableCppRenderSystem: () => false,
|
enableCppRenderSystem: () => false,
|
||||||
removeListenersOnDetach: () => false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = ReactNativeFeatureFlags;
|
module.exports = ReactNativeFeatureFlags;
|
||||||
Reference in new issue
Block a user