-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS unable to render local images #92
Comments
Is it working for others? |
I have same problem. downgrade to 1.3 works. |
I want MWPPhotoBrowser its available after 1.4.0 |
I guess the problem is brought by MWPPhotoBrowser since 1.3.x didn't use it. |
Which native Image viewer does 1.3.x use? I see a lot of problem with MWPPhotoBrowser. It does not render remote images at random. |
1.3.x use ScrollView from RN. See 9489a51 |
MWPPhotoBrowser provides pinch to zoom. I would need that. |
Does this support local images? or base64? |
Local |
@srameshr how about base64 images? |
I have not tried it. |
I've tried it just now, it's not working on base64 |
Yup, right now it only works with |
I found the bounds (https://github.com/alwx/react-native-photo-view/blob/master/ios/RNPhotoView.m#L176) will be zero for the images with file:// uri (loaded from photo library or taken from camera). This makes the scaled image no size. |
I created a PR (#96) for this issue. |
@wolfg1969 Could you also look into npomfret/react-native-image-tools#9 and npomfret/react-native-image-tools#4 . I have no idea about objective-c. |
@srameshr I'm afraid not. I'm not a objective-c expert too. |
you have to add them manually in your assets in xcode |
@wolfg1969 (cc @srameshr) I still have the issue with URLs like |
I ditched this library and unsubscribing from this thread. |
@kytwb I use react-native-image-picker and it's return file URI works with this library. |
RNPhotoView.m #import <UIKit/UIKit.h>
//
|
For me local images on my device only work when I have remote js debugging switched on. If it is off I only see a black screen. None of the onLoad events is triggered then. RN: 0.49.3 |
I solved this in the iOS sim by prepending The uri returned from the image picker was
So I changed my source to:
|
I'm still having the issue in 1.5.2, and it doesn't help to prepend @srameshr what library did you use instead? |
I built my own |
Same problem here. |
@srameshr Could you show your implementation or put it on GitHub? I have the same problem when getting the images using RN CameraRoll. |
@ManuBu I didn't implement a common approach because I am needed to show only local images (from document dir). |
The images from
asset-library
and local image path returned by camera is not being rendered. Works fine with remote images though. Bothhttp
andhttps
The text was updated successfully, but these errors were encountered: