0.0.8 • Published 6 years ago

react-native-active-keyboards v0.0.8

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
6 years ago

react-native-react-native-active-keyboards

This is a simple module to let you determine if a specific keyboard is installed. Particularly useful if you have created your own custom keyboard.

Getting started

$ npm install react-native-active-keyboards --save

Mostly automatic installation

$ react-native link react-native-active-keyboards

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-active-keyboards and add RNReactNativeActiveKeyboards.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativeActiveKeyboards.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

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

Usage

import { keyboardEnabled } from "react-native-active-keyboards";

[...]
  async componentWillMount() {
    // @param keyboardId
    const enabled = await keyboardEnabled("keyboardName");
    console.log("IN APP", enabled);
  }
[...]
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago