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.
Let me know if anyone know about the process to publish it.