Skip to content

Bug: Can't get Example to work #8

@johanneskares

Description

@johanneskares

Describe the bug

I'm getting crypo.getRandomValues must be defined when trying to get this guide to work: https://www.smartwallet.dev/guides/react-native-integration

Steps

I'm getting crypo.getRandomValues must be defined as error message when clicking the button and connect

const { connect, connectors, error } = useConnect();

I added the polyfills and confirmed they are working with

const array = new Uint32Array(2);
crypto.getRandomValues(array);

console.log("Your lucky numbers:");
for (const num of array) {
  console.log(num);
}

Is there a working example as a starting point?

Expected behavior

Not seeing an error message

Version

No response

Additional info

No response

Desktop

No response

Smartphone

iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions