how to using Optical Character Recognition (OCR) in react native that using expo? - react-native

I'm Trying to use OCR in react-native that using expo too.
I've tried using Tesseract but it has error, i've search the solution, and seems i should eject the expo.
i want to use pure tesseract javascript, but expo doesn't support standar node.
is there any other way ? it could be better if you have some example on it. Thank You.

Related

How to use command line tool like gif2webp in react native?

I want to convert gif to webp file in my react native app to send it to other app for further process. After trying many ways I found that this gif2webp command line can do the job and I can convert the gif to webp using cmd in windwos but do not have idea how to integrate it with react native.
tool:https://developers.google.com/speed/webp/docs/gif2webp
If I want to use it with Java files in react native or other rn modules then how to use it? I tried with Process builder but it says could not find the gif2webp.
I searched for RN modules but could not found any.
It will be great help if you can suggest anything.
Check this out. It contains similar tools
https://github.com/tanersener/mobile-ffmpeg
use ffmpeg react native package. It contains libwebp which would do the job

Using Baidu Map for react native/expo

I'm building a React Native App for a Chinese Company. I'm using Expo.
I really would love to use Google Maps, but it is not allowed there...
The best solution I found was to use Baidu Map,
I searched for SDKs and found some of them in GitHub.
I decided to use this one: https://github.com/qiuxiang/react-native-baidumap-sdk
which provides great documentation.
Although, I'm having some trouble implementing it to the app. I think that they don't support expo.
Does anyone here ever have a similar problem?
Or used another map...
Would really save my life!
This library uses native (Android & iOS) SDKs and provides a React Native API on top of them. Expo does not yet support custom native modules, which means you'll have to eject from it to use this package (or any other that uses BaiduMap or other native code).
I'm guessing they probably have a web based JS SDK instead which you could try to integrate into your app via a <WebView /> instead?

Will this module work in expo or react native?

I am new to react native and expo.
This is the module i am looking at: https://github.com/leesiongchan/react-native-esc-pos
I want to build an app that can print using bluetooth thermal printer. I am not sure if i should build it using react native or expo. Please advise me.
Thank you.
Expo has its own limitations and there are even some bugs there too, Its good for quick development as the documentation suggests the same that it is good to get you started with development within minutes without much hustle. In my opinion, React Native CLI is most of the time the best option even if you are new to react native development. Because of the following reasons
You will learn a lot as you will get your hands dirty in core react native app development.
You won't have to deal with expo limitations
You won't have to be dependent on expo tools
Any Library which requires linking or contains native modules will not work with the expo.
The library you mentioned uses many native modules and usually these type of libraries are not supported and that is the reason why they've built their own APIs and Native Components you can read this,
the developer has not mentioned Expo support anywhere on the docs but still You can open an issue on GitHub and ask the developer if it supports EXPO platform or not, or maybe instead of asking you can try the library yourself and you will find out if its working or not,

OCR with Expo and React Native

I'm trying to build a mobile app which performs OCR. I've decided to use React Native because it's cross platform and Expo for the SDK it provides. 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 the anyline library 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?
Seems like there is no expo-native way to perform OCR: https://expo.canny.io/feature-requests/p/support-optical-character-recognition-ocr

Connecting maps into react-native app

I have some API of maps (2GIS). Maps on JS. How can I connect them to my app on react-native?
I tried to find some possible ways, but without result. I am a newbie on react-native
If you want to use a native component that nobody wrote a React Native component for, you will to do it yourself.
It's not very hard for most things. You can learn how to do it for iOS and Android in the linked docs.