react-native-toggle-soft-keys-android

1.1.1 • Public • Published

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;

Package Sidebar

Install

npm i react-native-toggle-soft-keys-android

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

5.43 kB

Total Files

8

Last publish

Collaborators

  • olegvolkov