New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rnck

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnck

rnck enables to create custom keyboards in react native.

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
1
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

rnck (react-native-custom-keyboard)

rnck enables to create custom keyboards in react native.

Note: this is still very much under development and currently works only on Android

Getting started

$ npm install rnck --save

$ react-native link rnck

Usage

import React, { Component } from 'react';
import {TextInput} from 'react-native';
import Keyboard from 'rnck';

export default class RnckExample extends Component {

  constructor(props) {
    super(props);
    this.state = { showKeyboard: false, text: '' };
  }

  render() {
    return (
      <View>
        <TextInput
          onFocus={() => this.setState({showKeyboard: true})}
          onEndEditing={() => this.setState({showKeyboard: false})}
          value={this.state.text}></TextInput>
        <Keyboard
          keys={[['1','2', '3'], ['4', '5', '6'], ['7', '8', '9']]}
          show={this.state.showKeyboard}
          onKeyPress={(event) => this.setState({text: this.state.text + event.key})}/>
      </View>
    );
  }
}

Keywords

react-native

FAQs

Package last updated on 10 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts