Skip to content

No messages displayed #7

Description

@yberstad

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions