Giter VIP home page Giter VIP logo

Comments (5)

yestay90 avatar yestay90 commented on May 26, 2024

@Productivix , did you fork and updated project from react 0.62.2 to 0.68.1? I ask it cause when you install this package you should get error saying that you react version is higher. I forked this project and updated it from react native 62 to 64. I am running on iOS and getting error. Can you check on iOS ? Do you have the same error?

from react-native-tesseract-ocr.

stale avatar stale commented on May 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from react-native-tesseract-ocr.

Productivix avatar Productivix commented on May 26, 2024

hi @yestay90 , sorry I did not see your answer - What do you mean as solution exactly ? I installed a fresh RN and then the module . Do you mean that install a version of RN adapted to the module and then upgrade ?

from react-native-tesseract-ocr.

Productivix avatar Productivix commented on May 26, 2024

ok : test :

  • install fresh RN 0.61.5 , add this repo : no problem
  • yarn run android : no problem
  • only in the metro at screen an error unexpected token : expected a ')' or a ";" after parameter declaration
    I never learned that old version script , so I put in my app.json :
    '''
    import React, {useState} from 'react';
    import {SafeAreaView, Text} from 'react-native';

import TesseractOcr, {LANG_ENGLISH} from 'react-native-tesseract-ocr';
import {useEventListener} from 'react-native-tesseract-ocr';

const tessOptions = {};
TesseractOcr.recognize(imageSource, LANG_ENGLISH, tessOptions);

const App = () => {
const [progress, setProgress] = useState(0);
useEventListener('onProgressChange', p => {
setProgress(p.percent / 100);
});
return (

hello test ocr

);
};

export default App;
'''
so now , upgrade of the whole to 0.69.1 ...?
https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.69.1 : a lot of manual work !!

from react-native-tesseract-ocr.

stale avatar stale commented on May 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from react-native-tesseract-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.