How to publish native modules to expo as well?

Hi everyone,
I have set modules that use native code and I’m planning to publish them to npm but, in my research to publish packages I found that the libraries I would be publishing will use java and objective c code which means developers who use expo won’t be able to use my package from npm and would have to eject to use them because of the native functions in the package, is there any framework or way to publish a package with native code to both bare react native and expo projects?