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

NativeScript port #7

Open
scamianbas opened this issue Jan 12, 2017 · 7 comments
Open

NativeScript port #7

scamianbas opened this issue Jan 12, 2017 · 7 comments

Comments

@scamianbas
Copy link

Hi Eddy,
I was wondering how hard is it to port this cordova plugin to a nativescript module ?
Do I have to know the Android and IOS developer API reference ?
Thanks,

@EddyVerbruggen
Copy link
Owner

It would be one of the easiest plugins. Just translate the Java and ObjC code to TypeScript (or plain JavaScript if that's your thing). Are you pondering doing it yourself?

@scamianbas
Copy link
Author

Hi Eddy,
I would like to but it's not clear for me in the NativeScript docs how each Java/ObjC statement translates to its javascript equivalent ... Could you help to get me started ? Thanks!

@EddyVerbruggen
Copy link
Owner

Perhaps it's best to look at how any other plugin does that. I can recommend one, but it depends on if you'd like to use JavaScript or TypeScript to create the plugin.

@scamianbas
Copy link
Author

I have a preference for plain old JavaScript.

@EddyVerbruggen
Copy link
Owner

Then this repo may be a good one to clone. It's loosely based on native code available in this plugin so you should be able to see how to translate between native and JS.

There's also some good pointers here.

@scamianbas
Copy link
Author

Thanks Eddy, I'll check that asap.

@kieranthompson
Copy link

Hi Eddy, would it be possible to send a typescript example??? thanks, mate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants