I’m new to both react native and expo, hopefully I understand the concepts I’m talking about correctly, please correct me if I don’t. I’m trying to build a mobile app which performs OCR. However, I’m not quite sure what the best way to perform OCR is. I’ve found this tesseract ocr library but it seems that I need to eject from expo to use that because it relies on native code. I’ve also tried using this pure js library but that depends on util from the Node Standard Library which isn’t supported by Expo. I’ve also found the anyline library (I can’t link it because I’m a new user) but it seems that using Anyline requires payments which I’d like to avoid if possible.
Is the best path forward using the tessaract OCR library and ejecting from expo?
Thanks man I saw this the other day and needed to try it out. Will try this now! I’ve been hesitant to get to native code it seemed tricky, I’m going to dive in!
Hey hey, a side question. I now did expo install expo-gl but when I try to use it I get the error:
[Unhandled promise rejection: Invariant Violation: requireNativeComponent: "ViewManagerAdapter_ExponentGLView" was not found in the UIManager.]
at node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js:29:11 in getNativeComponentAttributes
at node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js:121:25 in exports.get
If I have an eas build, after every expo install that has native libs in it, do I need to make another build of custom client?
Basically, the dev client or standalone app has only the native dependencies you need in order to reduce the size of the app. Expo Go, is basically like a dev client with a predefined set of native dependencies already added that you cannot change.
This also makes OTA updates harder to manage, so every time you need to build a new app because of adding native code you will need to change the release channel or runtime version.
the dev client or standalone app has only the native dependencies you need in order to reduce the size of the app.
Oh that’s spectacular! I totally don’t mind rebuilding if it means reduced size.
This also makes OTA updates harder to manage, so every time you need to build a new app because of adding native code you will need to change the release channel or runtime version.
This totally makes sense, its fair though. Maybe is there a way to include all the native modules that a non-eas build normally goes out with? Outside of expo install all the modules? lol
Major thanks for the side questions, I’m getting way hyped for eas now haha.