Publish Expo Native module to npm

I've created an expo native module, and it's working in the example app. However, I want to publish it as an npm library. To do so, I included the build and android folders and published the package.

The entry points (default) in the package.json look like this:

{
  "main": "build/index.js",
  "types": "build/index.d.ts"
}

But when I tried installing the package in another Expo project for testing, it didn't work. I encountered an error when using a development build (not Expo Go). I might be missing something or have done something wrong—please let me know if you see any issues.

https://preview.redd.it/rk9scdgz0e0e1.png?width=580&format=png&auto=webp&s=af2cfa4a70393aedf071d16291f94de30062f8c6

Let me know if anyone know about the process to publish it.