margelo / react-native-quick-crypto

⚡️ A fast implementation of Node's `crypto` module written in C/C++ JSI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v0.7.0-rc.5] - Property 'Buffer' doesn't exist

pandisFox opened this issue · comments

This error is happening both on iOS and Android for me.

I have this babel config as suggested in the Readme:

const plugins = [
  [
    'module-resolver',
    {
      alias: {
        crypto: 'react-native-quick-crypto',
        stream: 'readable-stream',
        buffer: '@craftzdog/react-native-buffer',
      },
    },
  ],
];

Happens on a line such as const encryptedSecret = Buffer.from(encryptedSecretBase64, 'base64');.

This issue is not present in v0.7.0-rc.4.

Please let me know if I should try and provide more information or if theres something I'm expected to do on my end considering the new version.

worked @shamilovtim! Thank you.