Replies: 1 comment 1 reply
-
Not sure what would be involved specifically in supporting react native, but I have no plans to publish an officially-supported CJS variant of the package at this time given the ecosystem as a whole has generally adopted ESM at this point. That said, the only place I'm using export const initialRegistryContents = {
version: arkUtilVersion,
filename: import.meta.filename ?? globalThis.__filename ?? "unknown",
FileConstructor
} So I can try wrapping it in a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone been able to get this project to run on react native? I created a project with
bun create expo
and attempted to installarktype
, but was unable to run it due to an'import.meta' is currently unsupported
error message.Similar issues have been reported with valtio and zustand.
I assume its because it is an ESM module:

There is an ongoing thread in the expo repo about importing ESM modules. A potential solution appears to install the following babel package, but I wanted to confirm that this was the case.
If not, are there any plans to support react native?
Beta Was this translation helpful? Give feedback.
All reactions