NathanWalker / nativescript-loading-indicator

Progress/Loading indicator with options for NativeScript. iOS + Android.
Apache License 2.0
112 stars 41 forks source link

ReferenceError: UIView is not defined #59

Closed thukuwanjiku closed 5 years ago

thukuwanjiku commented 5 years ago

I'm getting this error from the ios loader options. It compiles fine when I comment out the ios options.

screenshot_20181115-152744

nginx17 commented 5 years ago

Same problem, i was add declare const UIView, MBProgressHUDModeDeterminate; but still error tns-platform-declarations are installed

package.json

thukuwanjiku commented 5 years ago

@nginx17 I commented the UIView option, and it runs successfully on android. I have not run the same on ios so I cannot tell if commenting will break it in ios

ibnYusrat commented 5 years ago

@nginx17 I commented the UIView option, and it runs successfully on android. I have not run the same on ios so I cannot tell if commenting will break it in ios

Of course it will break.

ibnYusrat commented 5 years ago

Still no solution to this issue?

bradmartin commented 5 years ago

Lots of changes recently and the plugin has been migrated to nStudio. https://github.com/nstudio/nativescript-loading-indicator

iOS and Android demos are running fine. AndroidX support and a simplified common API.

This version is deprecated now and I don't think you'll run into this issue with the @nstudio/nativescript-loading-indicator version. Please open an issue there if you do.