NativeScript

Submit and vote on ideas for the NativeScript framework and NativeScript plugins

Support Cordova Plugins

Tabris.js is in the same nature as NativeScript, ReactNative and Appcelerator. It supports Cordova plugins (https://tabrisjs.com/documentation/1.0/cordova)

  • Wan Chiu
  • May 19 2015
Link to GitHub issue
  • Attach files
  • Valio Stoychev commented
    May 20, 2015 13:39

    Thanks Wan!

    We do support 3rd party native iOS and Android libraries. What would be the reason a developer to want a PhoneGap plugin?

  • Juan Capdevila commented
    May 20, 2015 15:40

    I think that would be great to reuse the cordova plugins, even a smart thing to do since cordova plugins provide a common api in JS to use platform dependent code.

    But I think it does not make sense to support them in the NS runtime or core.

    I would rather see a tool that parse and converts the cordova plugins to NS modules and manually refactor the output to match the specific NS API. Of course that means you will end up with a fork of the plugin that needs to be maintained separately.

    The reason I think this would be better is because if I need to debug a NS module, I'd rather see calls to the NS HTTP module etc than to work with the IOS or Android way to do HTTP requests. 

  • Tang Giu commented
    May 21, 2015 22:34

    I think it is good to embrace the existing plugins that are already big and most of them built for iOS and Android.

     

  • Oscar Lito Pablo commented
    June 9, 2015 03:01

    Juan Capdevila's ideas and suggestions make a lot of sense to me. +1 to that.

  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar