-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi!
I'm having problems getting the console messages to display in the ConsolePanel. When debugging it seems that "this.waiting" is always true in the index.js:
ConsoleStack.prototype.notifyListeners = function () {
if (this.waiting) {
return;
}
this.timeout = setTimeout(()=> {
this.listeners.forEach((callback)=>{
callback();
clearTimeout(this.timeout);
this.waiting = false;
});
}, 500);
this.waiting = true;
}
After adding this.waiting = false in the "bindUpdateListener" it stared to work.
ConsoleStack.prototype.bindUpdateListener = function (callback) {
this.waiting = false;
this.listeners.push(callback);
}
Is there something I'm doing wrong?
I have just added the following line in the top of my component
var ConsolePanel = require('react-native-console-panel').displayIgnoreDevVariable();
and this in the render method (as the example states)
{ConsolePanel}
Thanks for sharing this component, I really like the functionality!
Metadata
Metadata
Assignees
Labels
No labels