Hacker News new | ask | show | jobs
by martinsnow 606 days ago
When you're using expo you cannot bundle your own native extensions. At my previous job we used pjsip. This extension uses JNI and native calls in iOS via objective-c. You can't bundle native extensions when using expo. You're locked to their prebuilt ones.

To use your own extensions you have to eject/or start a new application with their own native libraries. For most of what expo does you can use the unimodules libraries, they're quite good in my experience.

1 comments

> When you're using expo you cannot bundle your own native extensions. [...] You're locked to their prebuilt ones.

Unless I'm misunderstanding what you're saying, this isn't true at all. At $day_job we have an Expo app with a custom native library and it works just fine; you just have to write an Expo-specific adapter for it and can't use Expo Go in that case.

Source: https://docs.expo.dev/workflow/customizing/