vforvasile / rn-photos-framework Goto Github PK
View Code? Open in Web Editor NEWThis project forked from olofd/react-native-photos-framework
A modern and comprehensive CameraRoll/iCloud-library-API for React Native ๐ธ ๐น
License: MIT License
This project forked from olofd/react-native-photos-framework
A modern and comprehensive CameraRoll/iCloud-library-API for React Native ๐ธ ๐น
License: MIT License
Hi!
About this warning:
In latest IOS versions (13.4+) the library acts strange if @react-native-community/cameraroll is linked
Use at your own risk!
What exactly is meant by that? Do you know what causes this?
I have cameraroll and this package linked on my project and there is conflict with PHAssetCollectionSubtype
since both use it with RCT_ENUM_CONVERTER
.
So I managed to get rid of that error by adding
typedef NS_ENUM(NSInteger, PHAssetFrameworkCollectionSubtype);
to RCTConvert+RNPhotosFramework.h
.
And replaced all references to PHAssetCollectionSubtype
with PHAssetFrameworkCollectionSubtype
. It now has no error and everything seems to work fine.
Since I'm not familiar with objective-c, I'm not sure if this is correct nor best way to achieve this.
Maybe you can guide me? I would like to submit PR if I know I'm doing it correctly.
Hello,
I am trying to use this library but when importing it and trying to use it I am getting this error: null is not an object (evaluating 'RNPFManager.requestAuthorization')
This is for an android app built with react native
I installed the library using: npm install rn-photos-framework
the code in which i am using it is:
import React, {useEffect} from 'react';
import {View, Text} from 'react-native';
import RNPhotosFramework from 'rn-photos-framework';
export default function AlbumsScreen() {
useEffect(() => {
RNPhotosFramework.requestAuthorization()
}, []);
return (
//
// Albums Screen
//
);
}
the dependencies i am using are:
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.6.1",
"@react-navigation/stack": "^5.6.2",
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-gesture-handler": "^1.6.1",
"react-native-reanimated": "^1.9.0",
"react-native-safe-area-context": "^3.0.7",
"react-native-screens": "^2.9.0",
"react-native-vector-icons": "^7.0.0",
"rn-photos-framework": "^1.0.7"
},
tried uninstalling it then reinstalling but didn't work
tried linking it but also didn't work
please help me with this issue
thank you for your time
Please ignore, was able to fix the error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.