Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kmagiera/44af019f6fb079156adf468b4b8959ac to your computer and use it in GitHub Desktop.
Save kmagiera/44af019f6fb079156adf468b4b8959ac to your computer and use it in GitHub Desktop.
diff --git a/ios/REANodesManager.m b/ios/REANodesManager.m
index 472ff05ed..7bc0f279e 100644
--- a/ios/REANodesManager.m
+++ b/ios/REANodesManager.m
@@ -299,11 +299,13 @@ - (void)createNode:(REANodeID)nodeID
node.nodesManager = self;
node.updateContext = _updateContext;
_nodes[nodeID] = node;
+ NSLog(@"REANIMATED_BUG CREATE %@ %@", nodeID, node);
}
- (void)dropNode:(REANodeID)nodeID
{
REANode *node = _nodes[nodeID];
+ NSLog(@"REANIMATED_BUG DROP %@ %@", nodeID, node);
if (node) {
[node onDrop];
[_nodes removeObjectForKey:nodeID];
@@ -342,6 +344,7 @@ - (void)connectNodeToView:(REANodeID)nodeID
{
RCTAssertParam(nodeID);
REANode *node = _nodes[nodeID];
+ NSLog(@"REANIMATED_BUG CONNECT_TO_VIEW %@ %@", nodeID, node);
RCTAssertParam(node);
if ([node isKindOfClass:[REAPropsNode class]]) {
@@ -354,6 +357,7 @@ - (void)disconnectNodeFromView:(REANodeID)nodeID
{
RCTAssertParam(nodeID);
REANode *node = _nodes[nodeID];
+ NSLog(@"REANIMATED_BUG DISCONNECT_FROM_VIEW %@ %@", nodeID, node);
RCTAssertParam(node);
if ([node isKindOfClass:[REAPropsNode class]]) {
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