r/ObjectiveC • • May 17 '20

Objective C code - Duplicate Declaration Issue

/r/reactnative/comments/glk1ai/objective_c_code_duplicate_declaration_issue/
2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Dharmink May 18 '20

Ohh Pretty interesting to see how the lingo and syntax is different from native development vs JS development.

Thanks a lot i finally was able to solve the problem by doing this which was told to me by someone from the react native community.

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)URL options:(NSDictionary<NSString ,id> *)options { if([RCTLinkingManager application:application openURL:URL options:options]) { return YES; } else if([[Twitter sharedInstance] application:app openURL:URL options:options]) { return YES; } return NO; }

Thanks for taking the time out and helping me understand this. Really Appreciate you helping even after knowing it was a stupid question.

Thanks Again, Take Care and have a great day ahead!

1

u/inscrutablemike May 19 '20

It's not a stupid question at all. Objective-C is the odd one out of all the programming languages I know - every one of the rest of them treats the *types* of the arguments as the signature, beyond the base name of the method.