Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add BigInt64Array and BigUint64Array #49

Merged
merged 2 commits into from
Feb 5, 2024
Merged

feat: Add BigInt64Array and BigUint64Array #49

merged 2 commits into from
Feb 5, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Feb 5, 2024

Adds two new typed array types: BigInt64Array and BigUint64Array, which are probably only supported through Hermes or JS polyfills.
It's the JS users responsibility to make sure those types are available in the JS environment.

Test plan:

  const re = new BigInt64Array([32n, 13n, 42n, 5n])
  console.log(re)
  const result = model.model?.runSync([re])
  console.log(result)

@mrousavy
Copy link
Owner Author

mrousavy commented Feb 5, 2024

Also, created another PR to add this to react-native-worklets-core as well: margelo/react-native-worklets-core#142

@mrousavy mrousavy mentioned this pull request Feb 5, 2024
@mrousavy mrousavy merged commit a533fd4 into main Feb 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant