react-native-android-native-app-settings

0.1.6 • Public • Published

react-native-android-native-app-settings

Getting started

npm install react-native-android-native-app-settings --save

Mostly automatic installation

react-native link react-native-android-native-app-settings

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNAndroidNativeAppSettingsPackage; to the imports at the top of the file
  • Add new RNAndroidNativeAppSettingsPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-android-native-app-settings'
    project(':react-native-android-native-app-settings').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-android-native-app-settings/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-android-native-app-settings')
    

Usage

settings.android.js

import RNAndroidNativeAppSettings from 'react-native-android-native-app-settings';
 
export default async function getAppSettings() {
    return await RNAndroidNativeAppSettings.getAll();
}

Readme

Keywords

Package Sidebar

Install

npm i react-native-android-native-app-settings

Weekly Downloads

2

Version

0.1.6

License

MIT

Unpacked Size

67.9 MB

Total Files

3484

Last publish

Collaborators

  • vankop