-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[WIP] Feature: parametrizable UI document interaction controller #570
base: 0.11.0
Are you sure you want to change the base?
[WIP] Feature: parametrizable UI document interaction controller #570
Conversation
… sending multiple requests in the same time
createJSModules was removedin React Native 0.47.0 and results in the attached Build Error. removing @OverRide fixes build (didn't remove function because I don't know if it should be kept for downard compatability?) ``` node_modules/react-native-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobPackage.java:23: error: method does not override or implement a method from a supertype @OverRide ^ 1 error Incremental compilation of 1 classes completed in 0.219 secs. :react-native-fetch-blob:compileReleaseJavaWithJavac FAILED FAILURE: Build failed with an exception. ```
PR is at WIP ATM. |
refs #51397 Added parameters to UIDocumentInteractionController refs #51397 Added parameters to UIDocumentInteractionController refs #51397 Added parameters to UIDocumentInteractionController
87fcc36
to
37d1e73
Compare
ios.js
Outdated
* @param {string]} path Path of the file to be open. | ||
* @param {string} scheme URI scheme that needs to support, optional | ||
* @param {string} name The name of the target file, optional | ||
* @param |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@moreno97 please add the @param
definitions.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
self.filePathPrefix = FILE_PREFIX; | ||
if(commonTaskQueue == nil) | ||
commonTaskQueue = dispatch_queue_create("RNFetchBlob.queue", DISPATCH_QUEUE_SERIAL); | ||
commonTaskQueue = dispatch_queue_create("RNFetchBlob.queue", DISPATCH_QUEUE_SERIAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
- (dispatch_queue_t) methodQueue { | ||
if(commonTaskQueue == nil) | ||
commonTaskQueue = dispatch_queue_create("RNFetchBlob.queue", DISPATCH_QUEUE_SERIAL); | ||
commonTaskQueue = dispatch_queue_create("RNFetchBlob.queue", DISPATCH_QUEUE_SERIAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
commonTaskQueue = dispatch_queue_create("RNFetchBlob.queue", DISPATCH_QUEUE_SERIAL); | ||
if(fsQueue == nil) | ||
fsQueue = dispatch_queue_create("RNFetchBlob.fs.queue", DISPATCH_QUEUE_SERIAL); | ||
fsQueue = dispatch_queue_create("RNFetchBlob.fs.queue", DISPATCH_QUEUE_SERIAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
|
||
BOOL success = [fm createFileAtPath:path contents:fileContent attributes:NULL]; | ||
if(success == YES) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
if(success == YES) | ||
callback(@[[NSNull null]]); | ||
callback(@[[NSNull null]]); | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
if(error == nil) | ||
callback(@[[NSNull null], @YES]); | ||
callback(@[[NSNull null], @YES]); | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
BOOL result = [[NSFileManager defaultManager] moveItemAtURL:[NSURL fileURLWithPath:path] toURL:[NSURL fileURLWithPath:dest] error:&error]; | ||
|
||
if(error == nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
if(error == nil) | ||
callback(@[[NSNull null], @YES]); | ||
callback(@[[NSNull null], @YES]); | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
RCT_EXPORT_METHOD(readStream:(NSString *)path withEncoding:(NSString *)encoding bufferSize:(int)bufferSize tick:(int)tick streamId:(NSString *)streamId) | ||
{ | ||
if(bufferSize == nil) { | ||
if([[encoding lowercaseString] isEqualToString:@"base64"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
if([[encoding lowercaseString] isEqualToString:@"base64"]) | ||
bufferSize = 4095; | ||
bufferSize = 4095; | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brackets ({}
) to the if
statement.
ios/RNFetchBlob/RNFetchBlob.m
Outdated
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \ | ||
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \ | ||
alpha:1.0]]; | ||
[[UINavigationBar appearance] setBarTintColor: [UIColor whiteColor]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the ability to set barTintColor
too.
FYI react-native-fetch-blob has a new maintained location. Check out the README. Please consider submitting your PR there, this repository is unmaintained. |
Added parameters to UIDocumentInteractionController. This change allows you to change color and font type of iOS title bar.