NativeScript / nativescript-ui-charts

NativeScript wrapper around HiCharts library
Apache License 2.0
26 stars 6 forks source link

JS: ERROR TypeError: this._nativeView.setForceDarkAllowed is not a function #14

Open dasarijit88 opened 3 years ago

dasarijit88 commented 3 years ago

I get the below error when i try to run nativescript-ui-chart in latest android version. However it works fine for Android 8.0. I understand this is due to the introduction of dark theme. Is there a way to handle this issue?

JS: ERROR TypeError: this._nativeView.setForceDarkAllowed is not a function

shiv19 commented 3 years ago

@dasarijit88 are you calling this._nativeView.setForceDarkAllowed somewhere in your code? This plugin is not calling that function anywhere currently. But I noticed that this method is present in the typings. We released a new version yesterday, 0.1.0, please try this version.