user3289157
user3289157

Reputation: 665

Can any Javascript library be used with phonegap?

I am trying to learn about Phonegap, and it is clear that any app can be developed by using exclusively web languages. However, I am wondering whether any javascript library could be used with it. For example, would something like Three.js work with it? What about bootstrap? Can I simply include it in the www folder, just as if it was a normal website?

Upvotes: 0

Views: 117

Answers (2)

Harazi
Harazi

Reputation: 122

Phonegap uses webview control of each platfrom. For iOS it's safari based, android - android browser (chromium starting from kitkat - andoroid 4.4), and windows - IE. This means that normal DOM exists out-here. So basically yes - you may use libraries just as if it was a normal website.

However with phonegap you will still have some platform and browser differences and also using libraries that are developed for desktops may have a great performance impact on mobile.

For handling touch differences between the different platforms I would recommend using HandJS library.

Upvotes: 4

LukasFT
LukasFT

Reputation: 164

It should work, but it might be unstable depending on how complex they are; you need to test them to see if they work :) Idk about Three.js, but the naked Bootstrap libary (CSS and JS) has been working great with Cordova/PhoneGap.

Upvotes: 0

Related Questions