nativescript-ui-charts icon indicating copy to clipboard operation
nativescript-ui-charts copied to clipboard

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

Open dasarijit88 opened this issue 4 years ago • 1 comments

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

dasarijit88 avatar Feb 12 '21 10:02 dasarijit88

@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.

shiv19 avatar Apr 13 '21 22:04 shiv19