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 NitroModules.hasNativeState and NitroModules.removeNativeState #83

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

mrousavy
Copy link
Owner

Shouldn't be really used by anyone, this is mainly just for testing.

Example usage:

const someObject = NitroModules.createHybridObject<Some>('Some')
console.log(NitroModules.hasNativeState(someObject)) // -> true
someObject.dispose()
console.log(NitroModules.hasNativeState(someObject)) // -> false

@mrousavy mrousavy merged commit 3fa2fe9 into main Aug 29, 2024
2 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