Comments (12)
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.
@pvanliefland Which version of ReactNative are you on?
from react-native-photo-view.
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.
I am using react native 0.27.2 @pvanliefland your solutions works no doubt :)
from react-native-photo-view.
@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.
@zfedoran I'm having the issue with React Native 0.35.0
from react-native-photo-view.
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.
@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.
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.
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.
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.
me to
from react-native-photo-view.
Related Issues (20)
- BLANK SCREEN IF IMAGE IS 5MB
- onTap event used as onScale
- react-native-photo-view:compileDebugJavaWithJavac FAILED HOT 4
- Default image is rotating before actual image loads completely
- react-native-photo-view in ios image is not open proper width of the image. HOT 1
- Android how can I insert a component in <PhotoView><MyComponent></PhotoView>
- Podspec file not beings installed causing issues on iOS HOT 5
- 'React/RCTImageLoader.h' file not found HOT 2
- WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. HOT 1
- Calling bridge.imageLoader is deprecated and will not work in newer versions of RN. Please update to themoduleForClass API or turboModuleLookupDelegate API. HOT 2
- Image caching HOT 2
- Gif isn't shown on iOS
- Failed build for Android HOT 4
- Android build is failing with - Could not find me.relex:photodraweeview:1.1.3. HOT 3
- How to open an image already scaled?
- Bug report: Double tap on image in ios triggers onTap event. HOT 2
- Support for mutliple images HOT 1
- react-native-photo-view is causing APK build failure HOT 1
- Not compatible with reanimated 2
- Wie kann ich alles abstellen um meinen privaten raus und alles zu haben?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-photo-view.