npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-zyprotectabio-module

v0.1.14

Published

React Native native module for ZyProtecta biometric integration

Downloads

703

Readme

react_native_zy_protectabio_module

Libreria la cual es encargada de verificación biométrica de personas peruanas. Esta libreria esta diseñada especificamente para le empresa Protecta.

NOTAS:

Ninguna

Anotaciones

Android: version minima de android es 24, version compilada con compileSDK 34, se recomienda usar compileSDK 34 o superior

iOS: aun en desarrollo

Installation

npm install [email protected] --legacy-peer-deps

Usage

MÉTODO

 const { ZyprotectabioModule } = NativeModules;

// ...

  const opciones = {
    tiDocumento: "1", // tipo Documento : DNI: 1 nuDocumento: documentNumber, // Numero de documento
    nuDocumento: "00112233", // Número de documento
    accessToken: "abcdfghi12345",  // Access token generado por ambiente
    bioPais: "PE", //Pais de verificacion (siempre PE)
    tiOperacion: "FLUJO_FACIAL_MANUAL", //Operacion debe ser FLUJO_FACIAL_MANUAL
    urlSource: "DEV2", // Ambiente a la conexion DEV2 , POC , DEVX , SIGN (PRODUCCION)
    flujoExterno,
  };
   const result = await ZyprotectabioModule.onZyBioCapture(opciones);

//..

//para mas información revisar el documento de especificación.

ANDROID FIRMA

  • Para esta version, para su funcionamiento es necesario correr el app con la firma(SHA-1) compartida a ZyTrust, tanto en debug/release porque la licencia esta vinculada al applicationId y SHA-1 de la firma

  • EJEMPLO: A nivel del build.gradle(App)

android {
  ...

    signingConfigs {
        debug {
            keyAlias 'miFirma'
            keyPassword 'miFirma'
            storeFile file('../miFirma.jks')
            storePassword 'miFirma'
        }
        release {
            keyAlias 'miFirma'
            keyPassword 'miFirma'
            storeFile file('../miFirma.jks')
            storePassword 'miFirma'
        }
    }
    defaultConfig {
      ...
    }
  ...
}

ANDROID REGLAS OFUSCAMIENTO


####################### INICIO Zy  Lib #################################
-dontwarn org.bouncycastle.jce.provider.BouncyCastleProvider
-dontwarn com.google.gson.**
-dontwarn com.facebook.jni.**
-dontwarn com.facebook.react.**

# Mantener Zytrust
-keep class com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }
-keep interface com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }

# Mantener auth0
-keep class com.auth0.** { *; }

# Mantener FACE IDENTY
-keep class com.identy.face.** { *; }
-keep enum * {*;}

# Mantener Regula OCR
-keep class com.regula.documentreader.** { *; }
-keep class com.regula.common.** { *; }
-keep class androidx.appcompat.widget.FitWindowsLinearLayout { *; }


# Mantener todo React Native
-keep class com.facebook.react.** { *; }
-keep class com.zymulticompanybiomodule.** { *; }
-keep class com.testmulticompany_new.** { *; } # es del app test no es necesario incluirlo

# Mantener todos los managers y eventos nativos
-keep class com.facebook.react.uimanager.** { *; }
-keep class com.facebook.react.bridge.** { *; }

# Mantener componentes que usan reflexión (ViewManagers, NativeModules)
-keepclassmembers class * {
    @com.facebook.react.uimanager.annotations.ReactProp <methods>;
}

# Mantener clases usadas por JavaScriptCore
-keep class com.facebook.jni.** { *; }

# Mantener atributos de anotaciones (ReactProp, ReactModule, etc.)
-keepattributes *Annotation*


# Mantener Retrofit interfaces y métodos
-keep interface retrofit2.** { *; }
-keep class retrofit2.** { *; }
-dontwarn retrofit2.**

# Mantener métodos anotados de Retrofit
-keepclassmembers class * {
    @retrofit2.http.* <methods>;
}

# Mantener OkHttp
-keep class okhttp3.** { *; }
-dontwarn okhttp3.**

# Mantener Okio (usado por OkHttp)
-keep class okio.** { *; }
-dontwarn okio.**

# Mantener adaptadores de conversión (si usas Gson, Moshi, etc.)
-keep class com.google.gson.** { *; }


####################### FIN Zy  Lib #################################

Contributing

  • Elaborado por Zytrust S.A.

  • Compañia ZyTrust S.A. Perú

License

ZyTrust S.A. Perú

Contact


Made with create-react-native-library