Anyline / anyline-ocr-react-native-module

Anyline React Native Module for iOS and Android
https://anyline.com/
Other
107 stars 34 forks source link

Project native from scratch not running for the first time #55

Closed brunoschuermans closed 6 years ago

brunoschuermans commented 6 years ago

After having followed the steps to init the app with the dependency:

react-native init passwordreader npm i anyline-ocr-react-native-module react-native link

I try to run react-native run-android

and i get:

if i change the version of my gradle wrapper to 4.5 i get:

JonasLaux commented 6 years ago

Please add the google repository to your app/android/build.gradle like so

brunoschuermans commented 6 years ago

Doesn't work. We wanted to buy your tool but your documentation and "example" about react-native is terrible.

JonasLaux commented 6 years ago

could you post the content of your android/build.gradle and android/app/build.gradle

brunoschuermans commented 6 years ago

put a clean running example from scratch please, would be better for everyone who would be interested. let me know when it works thx

brunoschuermans commented 6 years ago

and would be good that it work with expo also if you want that your product has success with react-native

JonasLaux commented 6 years ago

Hey, as i said, this is not a normal RN-Plugin, it's a wrapper around our product. That our OCR Machine works (and the neural networks and pre/postprocessing in C++), it needs native dependencies. Expo is plain javascript (you can't even use React-Natives AndroidPermissions in it), so this will never work (except you use ExpoKit ).

The example in this Repo is working with minimal setup. Also, building a new App from skretch is described in the ReadMe. If you still having issues (e.g. with the google repository, which is a standardized step in an android dependency App), i'm happy to help you with a error description.