Package.json "crypto-js": "3.1.9-1" metro.config.js inlineRequires: true const crypto = require('crypto-js'); const secret = 'ABC'; const hash = crypto.createHmac('sha256', secret) .update('UPDATING') .digest('hex'); console.log(hash) Error: crypto.createHmac is not a function in React Native followed this, but error still exist https://github.com/brix/crypto-js/pull/259