Common API to allow users to use native (familiar) app settings screens instead of having to craft custom UIs
npm i --save @nativescript-community/preferences
  • Version: 1.3.0
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  3
    • Last Month: 20

Twitter Follow


This plugin allows native preference saving\loading on iOS and Android

iOS Prerequisites

Android Prerequisites


Describe your plugin installation steps. Ideally it would be something like:

tns plugin add @nativescript-community/preferences


    var prefs = new Preferences();

//Get existing value

//Set value
prefs.setValue("name_preference", "some new text");


Property Default Description
openSettings(): any; Opens the native settings panes
getValue(key: string): any; Gets the value for the preference
setValue(key: string, value: any): void; Sets the passed value to the preference


Apache License Version 2.0, January 2004