This repository was archived by the owner on Dec 19, 2021. It is now read-only.
This repository was archived by the owner on Dec 19, 2021. It is now read-only.
Change CommonOptions to abstract the nativeView instead of platform options. #1
Open
Description
Which platform(s) does your issue occur on?
- iOS/Android/Both
It occurs when tns run ios
or tns run android
Please, provide the following version numbers that your issue occurs with:
- CLI: 5.4.2
- Cross-platform modules: 5.4.3
- Runtime(s): tns-android 5.4.0 / tns-ios 5.4.2
- Plugin(s):
"dependencies": {
"@nstudio/nativescript-loading-indicator": "^1.0.0",
"nativescript-background-http": "^3.4.0",
"nativescript-cardview": "^3.1.1",
"nativescript-carousel": "^4.1.0",
"nativescript-checkbox": "^3.0.3",
"nativescript-facebook": "^3.0.1",
"nativescript-floatingactionbutton": "^5.0.3",
"nativescript-image-cache-it": "^5.0.0-alpha.3",
"nativescript-imagepicker": "^6.2.0",
"nativescript-oauth2": "^1.4.3",
"nativescript-pager": "^9.5.4",
"nativescript-plugin-firebase": "^8.3.2",
"nativescript-purchase": "^2.0.12",
"nativescript-theme-core": "~1.0.4",
"nativescript-toasty": "^1.3.1",
"nativescript-ui-listview": "^6.3.1",
"nativescript-windowed-modal": "^5.0.6",
"tns-core-modules": "^5.4.3",
"uglifyjs-webpack-plugin": "^2.1.3",
"validator": "^11.0.0"
},
"devDependencies": {
"nativescript-dev-typescript": "^0.9.0",
"nativescript-dev-webpack": "^0.24.1"
},
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
I removed the android.view and ios.view from the options.
const options: OptionsCommon = {
...
android: {
// view: someStackLayout.android, // Target view to show on top of (Defaults to entire window)
cancelable: true,
cancelListener: function(dialog) {
console.log('Loading cancelled');
}
},
ios: {
// view: someButton.ios, // Target view to show on top of (Defaults to entire window)
square: false
...
It works.
But, I have a build error log.
When i tns run ios
or tns run android
in CLI,
i get the error message.
but it works.. is this ok?
+ 299 hidden modules
ERROR in /Users/.../dev/gitlab/app_name/node_modules/@nstudio/nativescript-loading-indicator/index.d.ts
ERROR in /Users/.../dev/gitlab/app_name/node_modules/@nstudio/nativescript-loading-indicator/index.d.ts(77,10):
TS2304: Cannot find name 'UIView'.
ERROR in /Users/.../dev/gitlab/app_name/node_modules/@nstudio/nativescript-loading-indicator/index.d.ts
ERROR in /Users/.../dev/gitlab/app_name/node_modules/@nstudio/nativescript-loading-indicator/index.d.ts(85,10):
TS2503: Cannot find namespace 'android'.
Webpack compilation complete. Watching for file changes.
Webpack build done!
nativescript-plugin-firebase: building for same environment, not forcing prepare.
Preparing project...
Project successfully prepared (Android)
Configure firebase
Successfully transferred all files on device 06157df6e2a....
Restarting application on device 06157df6e2a......