1.1.1 • Published 6 years ago

react-native-toggle-soft-keys-android v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

react-native-toggle-soft-keys

Getting started

$ npm install react-native-toggle-soft-keys --save

Mostly automatic installation

$ react-native link react-native-toggle-soft-keys

Manual installation

Android

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

Usage

import RNToggleSoftKeys from 'react-native-toggle-soft-keys';

// TODO: What to do with the module?
RNToggleSoftKeys;