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

react-native-identifier

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-identifier

A reticle for image detection

npmnpm
Version
0.3.1
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

Table of Contents

  • Description
  • Introduction
  • Installation
  • GIF
  • Example Usage
  • Props
  • License

Description

A reticle for image detection

Introduction

This library is intended for identifying and highlighting part of an image (usually a face) with an accuracy indicator on a mobile device.

Installation

npm i react-native-identifier or yarn add react-native-identifier

GIF

Typical Usage

Typical Usage Example

With Optional Image Overlay

Optional Image Example

Example Usage

import { Identifier } from "react-native-identifier
...
<Identifier
  accuracy={this.state.accuracy}
  image={{ uri: "https://placekitten.com/201/201" }}
/>

----------------------------------------------------------------------------------------

import { Identifier } from "react-native-identifier
...
const myImage = require("./my-image.png")

<Identifier
  accuracy={this.state.accuracy}
  image={myImage}
  blinkRate={1000}
  gaugeWidth={12}
/>

Props

NameDescriptionDefaultRequiredType
accuracyThe accuracy rate of the identification from 0-10NONumber
blinkRateThe starting rate for the blinking indicators - increase for more delay - decrease for craziness750NONumber
imageAn optional image to blink on the identifier when accuracy is > 0.85 (85%)N/ANOObject or require
styleAn optional style override for the component - can be used to set its position on the screenN/ANOObject
gaugeWidthWidth of the accuracy indicator gauge8NONumber
License

MIT License

FAQs

Package last updated on 29 Aug 2018

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