Trouble using cert-verifier-js lib in React Native project


#1

Hi, I’m pretty new to Blockcert and I want to ask if this library can be used in a React Native project.
I installed it using: npm i cert-verifier-js and in my code:
import { Certificate, CertificateVerifier } from ‘cert-verifier-js’ but got error: Unable to resolve module ./promisifiedRequests.


#2

You might want to check out React.js component to display and verify a BlockCerts certificate


#3

It’s not so easy to use a classic (web) Node.js module in React Native, in general there is a React-native version. Even for Node.Js core modules, like Crypto, you have https://github.com/mvayngrib/react-native-crypto.

Android & IOS apps are not built with React-native so I don’t think anyone has tried to adapt cert-verifier-lib for native. That is, until you do :wink:


#4

I’ll give it a try, thank you all :slight_smile: