Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for "Cannot read property 'substr'" error when calling Applicatio… #73

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion publish/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ROOT_DIR=..;
PUBLISH=--publish

install(){
npm i
npm i ts-patch -D
}

pack() {
Expand Down
24 changes: 12 additions & 12 deletions publish/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"devDependencies": {
"ncp": "^2.0.0",
"rimraf": "^2.5.0"
}
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion publish/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PACK_DIR=package;
publish() {
cd $PACK_DIR
echo 'Publishing to npm...'
npm publish *.tgz
npm publish *.tgz --access public
}

./pack.sh && publish
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color } from "tns-core-modules/color";
import { Color } from "@nativescript/core/color";

export declare class ModalDatetimepicker {
constructor();
Expand Down
2 changes: 1 addition & 1 deletion src/modal-datetimepicker.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading