New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rn-code-input

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-code-input

React-Native Code input implementation

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source

React Native Screen Keyboard

Demo

React Native Screen Keyboard is a virutal screen keyboard implementation for React Native. It is fully customizable, the last row of the keys can be completely customized or changed to fit perfectly with your projects.

It support's Expo

Installation

npm
npm i rn-code-input
yarn
yarn add rn-code-input

Example

import React from "react";
import { StyleSheet, View } from "react-native";

import RNScreenKeyboard from "rn-screen-keyboard";
import RNCodeInput from "rn-code-input";

export default function App() {
  const [value, setValue] = React.useState<string>("");
  return (
    <View style={styles.container}>
      <RNCodeInput
        value={value}
        length={5}
        activeBoxStyle={{
          borderColor: "red"
        }}
        inActiveBoxStyle={{
          borderColor: "gray"
        }}
        boxStyle={{
          borderRadius: 99,
          marginHorizontal: 5
        }}
        hide
      />
      <RNScreenKeyboard
        value={value}
        onKeyPress={setValue}
        cellStyle={{
          borderRadius: 99
        }}
        Footer={null}
        rowStyle={{
          width: "80%",
          justifyContent: "space-between",
          marginVertical: 10
        }}
        textLength={5}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: "center",
    justifyContent: "center"
  }
});


License

MIT

MIT License

Copyright (c) 2022 Usman Hassan

Keywords

FAQs

Package last updated on 01 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc