Questions tagged [camera-roll]
157 questions
2
votes
3 answers
Creating my own Image Picker
I'd like to create a custom image browser in my app that uses the images from the camera roll.
i.e. I'd like to completely replace UIImagePickerController and use my own control.
Is there a way of accessing the camera roll photos in this…
Fogmeister
- 70,181
- 37
- 189
- 274
1
vote
1 answer
How can I improve performance of this React Native code?
I am working on React Native app of mine and I have a screen where I am using RN Cameraroll and getting all of the images and allow user to select n number of images. I am marking images that are selected by user and marking them in order. When I…
vj23
- 69
- 1
- 4
1
vote
0 answers
Picture metadata is lost after using CameraRoll.save
I am using RNCamera to take pictures and write metadata in it , the only problem is that RNCamera saves the pictures in the app cache . so i used react-native-community/cameraroll library to save the taken picture to the cameraRoll ,
the main…
Alaéddine
- 49
- 9
1
vote
0 answers
RN CameraRoll gives uri as ph: //
Faced such a problem, I get a video using CameraRoll in order to later transfer this file to FFMpeg, but the problem arises in the fact that the path to the file is on ios using the ph protocol. How to be in this situation? How do I get real access…
Roman Adigezalov
- 17
- 3
1
vote
0 answers
Create Album with React Native CameraRoll
With ReactNative CameraRoll, you can save a photo/video to an existing album on your device's camera roll. Is there a way to create the album, if it does not yet exist, before saving to it?
Micaela
- 31
- 3
1
vote
0 answers
React Native FS readFile returns invalid path for iOS
I have the functionality to readFile using RNFS library and CameraRoll of React Native.
Here is my code below:
const base64Image = await RNFS.readFile(uri, 'base64');
It's working fine for Android but not in iOS.
Here is the error for iOS…
joyce
- 115
- 2
- 6
1
vote
1 answer
Opening a file with a PHAsset URI from a Webview
From the camera roll, I get a list of URIs in the ph://xxxxx format.
If I use these URIs in Image or ImageBackground components everything works as expected.
I want to show these photos in a webview. Adding to the html an img tag with that kind of…
FtM
- 116
- 8
1
vote
0 answers
How to call iOS photos library from Rust?
I'm interested in doing some low level programming of Rust and React-Native, this tweet by Jared Sumner peaked my interested.
So basically he used the JSI to do a c++ implementation and apparently the results are much much faster than the regular…
Oscar Franco
- 4,106
- 1
- 24
- 42
1
vote
1 answer
React Native: Error decoding image data from CameraRoll.saveToCameraRoll
I'm getting a warning sign, saying
Possible: Unhandled Promise Rejection: Error: Error decoding image data
This is my code.
for (let media of mediaArray) {
await CameraRoll.saveToCameraRoll(
'https://someurl.mp4',
);
}
I was able to…
hellomello
- 7,510
- 33
- 121
- 258
1
vote
0 answers
CameraRoll.saveToCameraRoll is not a function(Expo)
I am trying to store images which are taken using React Native Camera library to Gallery on my Expo project.
When the user presses a button the following function gets triggered:
download = async (imageRef) => {
try {
let result = await…
Viktor Belashov
- 195
- 1
- 9
1
vote
1 answer
Receiving notifications from default notification center while app in background
In my app, I'm fetching the content of camera-roll with fetchAssets(with:). To receive change messages, I've registered my observer with the photo library’s register(_:) method. My observer is comforting to the PHPhotoLibraryChangeObserver protocol.…
Sanich
- 1,623
- 6
- 21
- 39
1
vote
1 answer
How Expo(React Native) can access gallery and external storage without CAMERA_ROLL permission?
I have a terrible question..
I hope there is anyone who know this problem..
In EXPO App which is a wrapper API for React Native,
How can Expo Image picker example app can access Gallery(external storage) without requesting any external storage…
user8282818
- 91
- 1
- 8
1
vote
1 answer
How to get list of local videos and display them in grid format in React Native?
I am trying to do something similar to what Instagram has for their select video screen. Where a grid of local videos that can be uploaded and it'll kind of 'preview' the one that is currently selected above the grid itself.
I'm using the…
dmouawad
- 319
- 1
- 2
- 10
1
vote
2 answers
Get filename from CameraRoll.getPhotos() [React Native IOS]
How do I get the filename from CameraRoll.getPhotos() ?
CameraRoll.getPhotos({ first: 1000000, assetType: "All", groupTypes: "All" })
.then(res => {
console.log(res)
})
I can get the file uri and file type but not filename . I mean there is…
Emerald
- 794
- 1
- 11
- 29
1
vote
1 answer
React Native, storing images in users gallery without compression
I am developing an App that verifies images based on their hash. I hash the images using this library "react-native-fetch-blob".
I store all the images taken inside the app, I am trying to allow users to be able to share the original uncompressed…
Nicholas Kuhne
- 93
- 7