Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kmagiera/af095af4a008e401056efa2b8be52c15 to your computer and use it in GitHub Desktop.
Save kmagiera/af095af4a008e401056efa2b8be52c15 to your computer and use it in GitHub Desktop.
diff --git a/src/core/AnimatedNode.js b/src/core/AnimatedNode.js
index ac08f2873..819ce0a14 100644
--- a/src/core/AnimatedNode.js
+++ b/src/core/AnimatedNode.js
@@ -147,6 +147,7 @@ export default class AnimatedNode {
__nativeInitialize() {
if (!this.__initialized) {
+ console.log(`REANIMATED_BUG JS CREATE ${this.__nodeID}`);
ReanimatedModule.createNode(this.__nodeID, { ...this.__nodeConfig });
this.__initialized = true;
}
@@ -154,6 +155,7 @@ export default class AnimatedNode {
__nativeTearDown() {
if (this.__initialized) {
+ console.log(`REANIMATED_BUG JS DROP ${this.__nodeID}`);
ReanimatedModule.dropNode(this.__nodeID);
this.__initialized = false;
}
diff --git a/src/core/AnimatedProps.js b/src/core/AnimatedProps.js
index 1f260e976..3713bc8ca 100644
--- a/src/core/AnimatedProps.js
+++ b/src/core/AnimatedProps.js
@@ -78,6 +78,7 @@ class AnimatedProps extends AnimatedNode {
nativeViewTag != null,
'Unable to locate attached view in the native tree'
);
+ console.log(`REANIMATED_BUG JS DISCONNECT_FROM_VIEW ${this.__nodeID}`);
this._disconnectAnimatedView(nativeViewTag);
super.__detach();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment