react-native-highcharts icon indicating copy to clipboard operation
react-native-highcharts copied to clipboard

load() event is not logging anything to remote debugger

Open raghavgarg1257 opened this issue 7 years ago • 1 comments

I am trying to log some data inside of the load() event, but it seems console is not accessible in it.

This code is working perfectly fine, its just I can't log anything to remote debugger from inside of this function.

events: {
    load: function() {

        console.log('[event:load] start'); // should print to the remote debugger

        var series = this.series[0];
        
        setInterval( function() {

            var x = (new Date()).getTime();
            var y = Math.random() * Math.floor(10000);
            
            console.log("[data] ", y); // should print to the remote debugger

            series.addPoint([x, y], true, true);
            
        }, 100);

        console.log('[event:load] end'); // should print to the remote debugger

    }
}

raghavgarg1257 avatar Feb 02 '18 06:02 raghavgarg1257

I think the reason in that this code rendered in WebView, but not in react-native platform

uramanovich avatar Mar 27 '18 05:03 uramanovich