Skip to content

Android build crashes on runtime says com.facebook.react.common.JavascriptException: Error: Native module not found, js engine: hermes, stack: getRandomBase64@1:108948 #1081

@YogeshYo

Description

@YogeshYo
"@segment/analytics-react-native": "^2.21.1",
"@segment/sovran-react-native": "^1.1.3",
  "react-native-get-random-values": "^1.11.0",
"react": "^18.3.1",
"react-native": "0.75.4",
  • Integrations versions (if used):
  • React Native version:
  • iOS or Android or both? Android

Steps to reproduce
Tried adding

  1. import "react-native-get-random-values"; in index.js file but no luck.
  2. Disabling Hermes
    Works for iOS, but the app crashes as soon as it is launched due to the above error
    com.facebook.react.common.JavascriptException: Error: Native module not found, js engine: hermes, stack:
    getRandomBase64@1:108948
    Expected behavior
    Should work for Android as well
    Actual behavior
    Crashes for Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions