diff --git a/publish/pack.sh b/publish/pack.sh index 212f22f..e956670 100755 --- a/publish/pack.sh +++ b/publish/pack.sh @@ -7,7 +7,7 @@ ROOT_DIR=..; PUBLISH=--publish install(){ - npm i + npm i ts-patch -D } pack() { diff --git a/src/index.d.ts b/src/index.d.ts index 4e90b5a..61cb0a2 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -import { Color } from "tns-core-modules/color"; +import { Color } from "@nativescript/core/color"; export declare class ModalDatetimepicker { constructor(); diff --git a/src/modal-datetimepicker.ios.ts b/src/modal-datetimepicker.ios.ts index 12324bb..d10685c 100644 --- a/src/modal-datetimepicker.ios.ts +++ b/src/modal-datetimepicker.ios.ts @@ -178,7 +178,7 @@ export class ModalDatetimepicker { ); pickerHolderView = UIView.alloc().init(); - const appearance = Application.systemAppearance(); + const appearance = Application.ios.systemAppearance; if (appearance) { pickerHolderView.backgroundColor = appearance === "dark" ? UIColor.blackColor : UIColor.whiteColor; diff --git a/src/package.json b/src/package.json index 449ef56..9c3a99d 100644 --- a/src/package.json +++ b/src/package.json @@ -19,7 +19,7 @@ }, "scripts": { "tsc": "tsc -skipLibCheck", - "build": "npm i && tsc", + "build": "npm i && ts-patch install && npm run tsc", "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link", "test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", "test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",