react-native-toggle-soft-keys-android
v1.1.1
Published
Toggle android soft keys / soft navigation bar
Downloads
3
Maintainers
Readme
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
- 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 thegetPackages()
method
- 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')
- 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;