PeterStaev / nativescript-purchase

:moneybag: A NativeScript plugin for making in-app purchases!
Apache License 2.0
83 stars 28 forks source link

Question about JavaScript vs Typescript #82

Closed coffeeneed closed 5 years ago

coffeeneed commented 5 years ago

Hi! When I started my Nativescript project I chose JavaScript as coding language, not TypeScript. Will I be able to use this plugin using JavaScript?

PeterStaev commented 5 years ago

Any nativescript plugin is compatible with Core TS and Core JS flavors of NS. So yes, you will be able to use it. You just need to adapt the demos/examples to how you import things in JS.

PeterStaev commented 5 years ago

No further response so closing this one for now. In case you still have problems, please provide more details.

MariSpr commented 4 years ago

Hey, sorry for reopening the thread.i recently published an js app using vanilla js (after changing code) and it works fine in Android, however, my app was rejected by the app store as it crashed on launch (even though I could not reproduce any crashes on real devices or emulators.

Anyway, I removed the plug-in and republished and the app was approved, so I wonder if there are any known issues with iOS?

I will try again but wonder if have to keep the references.ts or change them to js?

Thanks in advance! Mariana

PeterStaev commented 4 years ago

Hey @MariSpr , as far as I know there are no issues with iOS.

There is no need to keep the TS files in the release bundle.