📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

react-native-image-tagging

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react-native-image-tagging

This package allows you to add multiple tags to an image

1.0.3
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React Native Image Tagging

Tag your images with a responsive package that returns x & y coordinates respectively. Supports RTL.

ezgif com-gif-maker (1)

Installation

  • Install React Native Image Tagging package.

    yarn add react-native-image-tagging
    # or using npm
    npm install react-native-image-tagging --save
    
  • Install React Native Vector Icons package and make sure fonts are included on the native project - more info: https://github.com/oblador/react-native-vector-icons

    yarn add react-native-vector-icons
    # or using npm
    npm install react-native-vector-icons --save
    

Example:

import Tagging from "react-native-image-tagging";

const [tags, setTags] = useState([]);
const [availablePersons, setAvailablePersons] = useState([
  { id: 1, name: "John Doe" },
  { id: 2, name: "Jane Doe" },
  { id: 3, name: "John Doe 2" },
  { id: 4, name: "Jane Doe 2" },
]);

return (
  <View style={{ flex: 1, justifyContent: "center" }}>
    <Tagging
      tagsState={[tags, setTags]}
      availablePersonsState={[availablePersons, setAvailablePersons]}
    >
      <Image
        style={{
          height: WP(100),
          width: WP(100),
          resizeMode: "contain",
        }}
        source={require("./image.png")}
      />
    </Tagging>
  </View>
);

Pass tags & available persons state and setter as tagsState & availablePersonsState. Pass an image as the child for the Tagging JSX

Keywords

react

FAQs

Package last updated on 05 Jun 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