TradingPal / react-native-highcharts

📈 Add Highcharts charts to react-native app for IOS and Android
https://github.com/TradingPal/react-native-highcharts
256 stars 158 forks source link

load() event is not logging anything to remote debugger #70

Open raghavgarg1257 opened 6 years ago

raghavgarg1257 commented 6 years ago

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

    }
}
OverVlad commented 6 years ago

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