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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-zybanbifbio-module

v0.11.21

Published

bio banbif

Readme

react-native-zybanbifbio-module

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

Anotaciones

iOS: version para iOS fue compilada con XCODE 15.4, es decir que el preoyecto debe utilizar XCODE 15.3 o superior , ademas el tarjet minimo es ios 13.0

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

MOVIL: Libreria solo será valida apartir de la version 0.10.9 .

NOTAS:

La versión >0.7.x versión productiva para Emps11
 
La versión >0.6.2 retorna los codigos 8270": Intentos superados solicitud bloqueada o "9041":Intentos superados DNI BLoqueado directamente sin pasar por el UI
 

Installation

npm install react-native-zybanbifbio-module

Usage

MÉTODO

 import {  NativeModules } from 'react-native';

// ...

  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: "FULL", //Operacion puede ser FULL o FACIAL
    urlSource: "SIGN", // Ambiente a la conexion DEV2 , POC , DEVX , SIGN (PRODUCCION)
    stepper: {
      nuPasos: 3, // cuando nuPasos es 0 desaparece || si número de pasos es 0 los steppers se ocultan
      pasoActual: 2 // paso en el cual el circulo señalará 
    },
    errores: {
      reintentar: {
        titulo: "Reintentar",
        descripcion: "Ha ocurrido un error. Puedes intentar nuevamente presionando el botón a continuación.", 
        textoBoton: "Reintentar"
      },
      limite_tiempo_alcanzado: {
        titulo: "Límite de tiempo alcanzado",
        descripcion: "El tiempo máximo para realizar esta operación ha expirado. Por favor, intenta nuevamente.",
        textoBoton: "Entendido"
      },
      limite_intentos_alcanzado: {
        titulo: "Límite de intentos alcanzado",
        descripcion: "Has alcanzado el número máximo de intentos permitidos. Por favor, inténtalo más tarde.",
        textoBoton: "Entendido"
      }
    }
  };
    NativeModules.ZyBanbifBioRn.validacionFacialOcr(opciones)
    .then(result => {
    })

//..

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

ANDROID FIRMA

  • Para esta version apartir de la 0.9.x , para su funcionamiento es necesario correr el app con la firma(SHA-1) compartida a ZyTrust, tanto en debug/release porque la licensia 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.banbif.android.lib.sdk.validacionfacial.** { *; }
-keep interface com.zy.banbif.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.zybanbifbiomodule.** { *; }
-keep class com.testbanbif_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 Iván A. Cáceres Z.

  • Compañia ZyTrust S.A. Perú

License

ZyTrust S.A. Perú

Contact


Made with create-react-native-library