From c1424a663aca3318ae7cebbb40d6d46d30fb41cf Mon Sep 17 00:00:00 2001 From: Dan Forbes Date: Mon, 9 Dec 2024 14:44:10 -0800 Subject: [PATCH] Add Documentation for React Native Closes #7314 --- .../18_resources_and_troubleshooting/index.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/docs/guides/18_resources_and_troubleshooting/index.md b/docs/docs/guides/18_resources_and_troubleshooting/index.md index 8cf7327d828..17900ea5807 100644 --- a/docs/docs/guides/18_resources_and_troubleshooting/index.md +++ b/docs/docs/guides/18_resources_and_troubleshooting/index.md @@ -44,6 +44,24 @@ Additional Info: [Facebook/React-native Issue #28492](https://github.com/facebook/react-native/issues/28492#issuecomment-824698934) +### TypeError: Cannot read property 'prototype' of undefined, js engine: hermes + +This error occurs when trying to use Web3.js with React Native. To solve this error, use [the `react-native-quick-crypto` package](https://www.npmjs.com/package/react-native-quick-crypto). + +**Resolution Steps:** + +1. Install `react-native-quick-crypto` as a dependency: + +```bash +yarn add react-native-quick-crypto +``` + +2. Set up `react-native-quick-crypto`: + +```bash +cd ios && pod install +``` + ## Resources ### [Web3.js v4 course](https://www.youtube.com/watch?v=3ZO_t-Kyr1g&list=PLPn3rQCo3XrP4LbQcOyyHQR8McV7w3HZT)