Code Monkey home page Code Monkey logo

nativescript-preferences's People

Contributors

danielicc avatar sitefinitysteve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nativescript-preferences's Issues

Empty preference screen on Android

I have an issue with opening preference screen on an android device (real device and emulator). It shows an empty activity screen.
In the console a got:
JS: topmost() is deprecated. Use Frame.topmost() instead

  • CLI: 6.5.0
  • Cross-platform modules: 6.5.1
  • Runtime(s): tns-android 6.5.0
  • dependencies: {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "@nativescript/theme": "~2.3.3",
    "nativescript-angular": "~8.21.0",
    "nativescript-localize": "^4.2.1",
    "nativescript-nfc": "^4.1.0",
    "nativescript-preferences": "^1.1.2",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.5.0",
    "zone.js": "~0.9.1"
    }

API 29 androidx

Has anyone upgraded this for API29?

I know the old PreferenceScreen is depreciated

<androidx.preference.PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">

</androidx.preference.PreferenceScreen>
instead of

It's not necessary but you can add this implementation into your Gradle too.

implementation 'androidx.preference:preference:1.0.0'

Getting Preferences is not a constructor error

Which platform(s) does your issue occur on?

  • Android
  • Marshmallow
  • Device

Please, provide the following version numbers that your issue occurs with:

  • CLI: 5.1.0
  • Cross-platform modules: 5.0.2
  • Runtime(s): 5.0.0
  • Plugin(s):
        "nativescript-dev-sass": "~1.6.0",
        "nativescript-dev-webpack": "~0.18.0",
        "eslint": "~5.8.0"

Please, tell us how to recreate the issue in as much detail as possible.

Installed the plugin via tns plugin add nativescript-preferences

Then Using below code which gives error:

const Preferences = require("nativescript-preferences");

const prefs = new Preferences(); // error on this line: "System.err: TypeError: Preferences is not a constructor"

Thanks

How to Add Actionbar to Preferences Screen

Which platform(s) does your issue occur on?

  • Android
  • Marshmallow
  • Device

Please, provide the following version numbers that your issue occurs with:

  • CLI: 5.1.0
  • Cross-platform modules: 5.0.2
  • Runtime(s): 5.0.0
  • Plugin(s):
        "nativescript-dev-sass": "~1.6.0",
        "nativescript-dev-webpack": "~0.18.0",
        "eslint": "~5.8.0"

Please, tell us how to recreate the issue in as much detail as possible.

Thanks for nice plugin!

I have implemented this and works fine. However on preferences screen, actionbar is missing.

Can you please tell how can I add actionbar to preferences screen to make it consistent with rest of the app.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.