Supporting Multiple Screens

Thread is closed for posting
4 posts, 0 answers
  1. suralal
    suralal avatar
    18 posts
    Member since:
    Mar 2016

    Posted 27 Feb 2017 Link to this post

    Hi,

    I am developing a nativescript angular app and currently the angular version is not supporting mutliple screens.i could see the documentation of support of nativescript core "http://docs.nativescript.org/ui/supporting-multiple-screens".i want to know when i could get support for multiple screens in nativescript angular 2

    Thanks

  2. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 28 Feb 2017 Link to this post

    Hello,
    Thank you for contacting us.
    Indeed this feature will be available for some of the next NativeScript Angular 2 version, unfortunately, I cannot commit to an exact time frame when this will be ready.

    For further info, you could keep track on the issue here, where this feature request has been logged.

    Meantime, you could use nativescript-themes plugin, which allows you to apply differently style on the app depending on some condition. For example, you could use it on while the orientation has been changed.

    For you convenience, I am attaching a sample project. You could also review the block post here.

    Hope this helps.
    Regards,
    nikolay.tsonev
    Telerik by Progress
  3. suralal
    suralal avatar
    18 posts
    Member since:
    Mar 2016

    Posted 06 Mar 2017 Link to this post

    Hi,

    When adding platform android to my nativescript  project,An exception is shown "
    Exception: The plugin tns-android@2.5.0 is already installed",When checked in the dependencies of package.json ""tns-android": "^2.5.0","  has got added.after removing the dependency the platform is added to app.Is this a bug ?

  4. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 06 Mar 2017 Link to this post

    Hello,

    If I understand correct, you are running `tns platform add android` on the attached sample project in my previous comment. In this case, this warning will be shown, because the tns-android and its version existed in the project package.json file.

    Regarding that, you should run the project with `tns run android ` without adding again the platform, which should allow you to build the project successfully.

    Hope this helps.
    Regards,
    nikolay.tsonev
    Telerik by Progress
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top