react-native-cloud-fs's Issues
[Android] Duplicate Class Error
Works fine on IOS but on android it throws a duplicate class error. I have tried on Android studio but it couldn't detect the file from where the error raised.
My React-native environment:
"react-native": "^0.70.6"
"react-native-cloud-fs":^2.7.0
android gradle plugin version: 7.2.2
Gradle-version- 7.5.1
React Native Code:
const IcloudBackUp = () => {
const onPressHandler = async () => {
try {
// Store it on the FS first
const path = ${RNFS.DocumentDirectoryPath}/${filename}
;
await RNFS.writeFile(path, 'Lorem ipsum dolor sit amet', 'utf8');
const sourceUri = {path};
const mimeType = 'text/plain';
const result = await RNCloudFs.copyToCloud({
mimeType,
scope,
sourcePath: sourceUri,
targetPath: destinationPath,
});
console.log('Result of setting items to iCloud', result);
} catch (error) {
console.log('Error in setting items to iCloud', error);
}
};
app/build.gradle:
//Added this
compile ('com.google.android.gms:play-services-drive:10.2.0') {
force = true;
}
//Tried with implementation also
compile ('com.google.android.gms:play-services-drive:10.2.0') {
force = true;
}
IOS setup is same as described in the documentation
Auto-linking support
Can I add .podspec file for auto-linking support for react-native 0.60+ on iOS?
problem occurred evaluating project ':rn-cloud-fs'.
FAILURE: Build failed with an exception.
-
Where:
Build file '/Users/surajsharma/Desktop/Diamante/DiamWallet/DiamWallet_v2/dc_diam_wallet_app_v2_react_native/node_modules/rn-cloud-fs/android/build.gradle' line: 47 -
What went wrong:
A problem occurred evaluating project ':rn-cloud-fs'.
Cannot set the value of read-only property 'force' for DefaultExternalModuleDependency{group='com.google.android.gms', name='play-services-auth', version='17.0.0', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.
Exception thrown
Hi, thanks for the lib
I'm having some issue getting started, an exception is thrown, any tip?
RNCloudFs.copyToCloud({
sourcePath: DATABASE_PATH,
targetPath: 'test/folder/file.db',
scope: 'visible'
})
.then((path) => {
console.log("it worked", path)
})
.catch((err) => {
console.warn("it failed", err)
})
Any idea?
Publish on npmjs.com
Why don't you publish the package?
Ios: Cannot find protocol declaration for 'RCTBridgeModule';
Copy from iCloud to local on iphone
Hello,
How do I copy from icloud to local FS in the app.
Could not find it in the example .
Thanks,
Chitta
How to get the files from Google Drive?
Get the file or selected file path from google drive. state any example for that?
my code:
const sourceUri = {uri: 'https://drive.google.com'};
const destinationPath = "foo-bar/docs/info.pdf";
const mimeType = null;
const scope = 'visible';
RNCloudFs.copyToCloud({
sourcePath: sourceUri,
targetPath: destinationPath,
mimeType: mimeType,
scope: scope
})
.then((path) => {
console.log("it worked", path);
})
.catch((err) => {
console.warn("it failed", err);
})
Android Google Drive API deprecation note
The Android google drive API is deprecated since December 2018, and will be closed by the end of 2019 : https://developers.google.com/drive/android/deprecation
You should put a deprecation note on this library if you don't plan to migrate to its REST equivalent.
Ios: Cannot find protocol declaration for 'RCTBridgeModule';
react-native: 0.59.4
xcode: Version 10.2.1 (10E1001)
I've done all installation as written here. On build, I'm getting following errors:
Cannot find protocol declaration for 'RCTBridgeModule'; did you mean 'RCTBridgeMethod'?
Not Found: react-native-cloud-fs@latest
When I run
npm install react-native-cloud-fs
I get the following error
npm ERR! code E404
npm ERR! 404 Not Found: react-native-cloud-fs@latest
iCloud Drive capability no longer the same
The iCloud Drive capability no longer exists on the capabilities page in the lastest Xcode. Do you know how to add it? And if so maybe you could update the get started doc. Also I could not quite figure out how to add the code to the info.plist file. In Xcode the file has fields rather than just code ๐ค It would be nice to see this as well more in-depth in the doc.
Support read file contents
This is almost perfect for our use case. If only there was an api for reading file contents!
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.