Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@duell10111/react-native-image-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duell10111/react-native-image-keyboard

Enables clipboard image pasting and GIFs from TextInput.

  • 2.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@duell10111/react-native-image-keyboard

NPM Version Badge

iOSAndroid
iOS Example GIFAndroid Example GIF

About this package

This package extends React Native's TextInput component to enable keyboard image input on:

  • Android (e.g. Gboard GIFs)
  • iOS (e.g. Pasting images copied to the clipboard)

Getting started

$ npm install react-native-image-keyboard --save

Mostly automatic installation

$ react-native link react-native-image-keyboard (RN < 0.60)

$ cd ios/ && pod install

Usage

import {TextInput} from 'react-native';

const App = () => {
  const _onImageChange = (event) => {
    const {uri, linkUri, mime, data} = event.nativeEvent;

    // Do something with this data
  }

  return <TextInput onImageChange={_onImageChange} />;
}

Credits

Original logic from [Gustash] (https://github.com/Gustash/react-native-image-keyboard)

Android logic based on stwiname's PR: https://github.com/facebook/react-native/pull/26088

Keywords

FAQs

Package last updated on 04 Feb 2022

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