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

latest
npmnpm
Version
0.4.5
Version published
Maintainers
1
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

GIFs

Typical Usage

Typical Usage Example

Optional Image Overlay

Optional Image Example

Horizontal Meter

Horizontal Meter Example

Horizontal Meter with Pulse

Horizontal Meter with Pulse 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
styleAn optional style override for the component - can be used to set its position on the screenN/AYESObject
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
gaugeWidthWidth of the accuracy indicator gauge8NONumber
horizontalWhether the accuracy gauge should be horizontal - underneath the reticlefalseNOBoolean
pulseWhether the horizontal gauge should pulse outfalseNOBoolean
License

MIT License

FAQs

Package last updated on 02 Sep 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