Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

[WIP] Feature: parametrizable UI document interaction controller #570

Open
wants to merge 29 commits into
base: 0.11.0
Choose a base branch
from

Conversation

Moreno97
Copy link

Added parameters to UIDocumentInteractionController. This change allows you to change color and font type of iOS title bar.

wkh237 and others added 22 commits March 27, 2017 22:28
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.
```
@Moreno97 Moreno97 changed the title Feature: parametrizable UI document interaction controller [WIP] Feature: parametrizable UI document interaction controller Oct 24, 2017
@Moreno97
Copy link
Author

PR is at WIP ATM.

amoreno added 2 commits October 24, 2017 09:43
refs #51397 Added parameters to UIDocumentInteractionController

refs #51397 Added parameters to UIDocumentInteractionController

refs #51397 Added parameters to UIDocumentInteractionController
@Moreno97 Moreno97 force-pushed the _parametrizable_ui_document_interaction_controller branch from 87fcc36 to 37d1e73 Compare October 24, 2017 07:46
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

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.

@@ -48,9 +48,9 @@ - (id) init {
self = [super init];
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);

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.

@@ -32,7 +32,7 @@ @implementation RNFetchBlob

- (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);

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.

if(fsQueue == nil)
fsQueue = dispatch_queue_create("RNFetchBlob.fs.queue", DISPATCH_QUEUE_SERIAL);
fsQueue = dispatch_queue_create("RNFetchBlob.fs.queue", DISPATCH_QUEUE_SERIAL);

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.

@@ -154,35 +153,35 @@ - (NSDictionary *)constantsToExport
else {
fileContent = [[NSData alloc] initWithData:[data dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]];
}


BOOL success = [fm createFileAtPath:path contents:fileContent attributes:NULL];
if(success == YES)

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.

BOOL success = [fm createFileAtPath:path contents:fileContent attributes:NULL];
if(success == YES)
callback(@[[NSNull null]]);
callback(@[[NSNull null]]);
else

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.

if(error == nil)
callback(@[[NSNull null], @YES]);
callback(@[[NSNull null], @YES]);
else

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.

@@ -418,12 +416,12 @@ - (NSDictionary *)constantsToExport
{
NSError * error = nil;
BOOL result = [[NSFileManager defaultManager] moveItemAtURL:[NSURL fileURLWithPath:path] toURL:[NSURL fileURLWithPath:dest] error:&error];


if(error == nil)

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.

if(error == nil)
callback(@[[NSNull null], @YES]);
callback(@[[NSNull null], @YES]);
else

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.

@@ -467,11 +465,11 @@ - (NSDictionary *)constantsToExport
{
if(bufferSize == nil) {
if([[encoding lowercaseString] isEqualToString:@"base64"])

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.

@@ -467,11 +465,11 @@ - (NSDictionary *)constantsToExport
{
if(bufferSize == nil) {
if([[encoding lowercaseString] isEqualToString:@"base64"])
bufferSize = 4095;
bufferSize = 4095;
else

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.

green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \
alpha:1.0]];
[[UINavigationBar appearance] setBarTintColor: [UIColor whiteColor]];

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.

@lll000111
Copy link
Contributor

FYI

react-native-fetch-blob has a new maintained location. Check out the README.

Please consider submitting your PR there, this repository is unmaintained.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants