Giter Site home page Giter Site logo

Comments (12)

gansri avatar gansri commented on August 17, 2024 1

i am having similar react native build problems:, Any help to fix this problem will be very helpful.

:app:compileDebugJavaWithJavacE:\chewy\chewy-reactjs\android\app\src\main\java\com\users\MainActivity.java:3: error: package com.facebook.react does not exist
import com.facebook.react.ReactActivity;
^
here are my version:
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-camera": "^1.1.4",
"react-native-elements": "^0.19.1",
"react-native-fbsdk": "^0.7.0",
"react-native-popup-dialog": "^0.11.46",
"react-native-qrcode-scanner": "^1.0.1",
"react-native-slider": "^0.11.0",
"react-native-swipe-recognizer": "^0.2.0",
"react-native-swiper": "^1.5.13",
"react-navigation": "^1.5.11"

from react-native-photo-view.

zfedoran avatar zfedoran commented on August 17, 2024

@pvanliefland Which version of ReactNative are you on?

from react-native-photo-view.

rwillemsandroid avatar rwillemsandroid commented on August 17, 2024

I've run into the same issue running the following version(s):

"react": "15.2.1",
"react-native": "0.31.0",
"react-native-photo-view": "1.2.0",

from react-native-photo-view.

waleedarshad-vf avatar waleedarshad-vf commented on August 17, 2024

I am using react native 0.27.2 @pvanliefland your solutions works no doubt :)

from react-native-photo-view.

waleedarshad-vf avatar waleedarshad-vf commented on August 17, 2024

@pvanliefland If i add these changes directly in node modules, the next time anyone install same library on my project he will not get any changes, what is the right way to add changes so next time the person who install this library will also get changes that we added manually. @rwillemsandroid if you can help that would be more appreciated as well :)

from react-native-photo-view.

pvanliefland avatar pvanliefland commented on August 17, 2024

@zfedoran I'm having the issue with React Native 0.35.0

from react-native-photo-view.

tinajohnson avatar tinajohnson commented on August 17, 2024

Hello,

I faced the same errors as @pvanliefland while compiling my react-native project but they were resolved by using the workaround he has provided. But now that I try to zoom by pinching the image, my app crashes.

The error I get is:

java.lang.NoSuchMethodError: No direct method <init>(IJ)V in class Lcom/facebook/react/uimanager/events/Event; or its super classes (declaration of 'com.facebook.react.uimanager.events.Event' appears in /data/data/com.reportbee.parent/files/instant-run/dex/slice-com.facebook.react-react-native-0.34.1_0b6c20ec3410a20a85e40c61dad9510f0e6dff75-classes.dex)
                                                                          at com.reactnative.photoview.ImageEvent.<init>(ImageEvent.java:0)
                                                                          at com.reactnative.photoview.PhotoView$4.onScaleChange(PhotoView.java:190)
                                                                          at me.relex.photodraweeview.Attacher.onScale(Attacher.java:328)

My PhotoView component is:

<View style={{ height: heightChange, marginTop: 15, padding: 10, alignItems: 'flex-start' }}>
          {
            this.props.url
            ?

              <PhotoView
                source={{uri: this.props.url}}
                minimumZoomScale={0.5}
                maximumZoomScale={2}
                style={{ height: heightChange / 2, width: width - 20, resizeMode: 'contain' }} />
            :
            <View />
          }
</View>

Is the error because there is no constructor matching Event(viewId, eventType)? Is there a workaround for this error?

from react-native-photo-view.

sakshityagi avatar sakshityagi commented on August 17, 2024

@pvanliefland were you able to fix the issue(not be making changes in node module ofcourse)? I am also getting same errors while building my android app.

Is it react-native version issue?

from react-native-photo-view.

px-amaac avatar px-amaac commented on August 17, 2024

I know this is a few months old now but This seems to be a react-native version issue. It is not really an issue with this library or RN. Basically upgrade to better versions.
The issue is caused by this PR PR

That PR was a response to this one from RN

When i had this issue it was actually an issue with how i was retrieving react-native library. My library was defaulting to react-native:0.20.1 from here instead of using the local one in my node_modules folder.

That version of RN does not have the change from above that was added I believe in 0.38. My problem was solved after i found this
Essentially i added my local RN maven repo to the buildscript section instead of allprojects. That little detail is easily missed in the docs and will cause this library to fail to build.

from react-native-photo-view.

u-kan avatar u-kan commented on August 17, 2024

my project caused exactly same issue #23

And this solution fix it. So this promlem should be reconsidered

my react native version is 0.43.3

and this pull request, which is closed without mergerd, solve my problem.

I think this issue should be rediscussed now ..

from react-native-photo-view.

omairvaiyani avatar omairvaiyani commented on August 17, 2024

If anyone stumbles upon this issue, I boiled the issue to package.json -> "react-native":"...tz"

My boilerplate (ignite) was using a direct .tz link for "react-native", rather than saying "v0.54.0" (or what ever the latest version is when you read this). This change along with a clean npm install allowed me to build successfully.

from react-native-photo-view.

aspidvip avatar aspidvip commented on August 17, 2024

me to

from react-native-photo-view.

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.