You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Application,CSSUtils}from'@nativescript/core';exportfunctiontoggleGlobalClass(className: string){constrootView=Application.getRootView();constenabled=rootView.cssClasses.has(className);if(enabled){CSSUtils.removeSystemCssClass(className);rootView.cssClasses.delete(className);// also remove from all modalsrootView._getRootModalViews().forEach((view)=>{view.cssClasses.delete(className);view._onCssStateChange();});}else{CSSUtils.pushToSystemCssClasses(className);rootView.cssClasses.add(className);// also add to all modalsrootView._getRootModalViews().forEach((view)=>{view.cssClasses.add(className);view._onCssStateChange();});}rootView._onCssStateChange();}
Added npm install --save @nativescript/tailwind tailwindcss
removed ..
"@nativescript/theme": "~3.1.0",
"nativescript-theme-core": "~1.0.4",
Are these required ?
The text was updated successfully, but these errors were encountered: