Created
September 25, 2015 09:04
-
-
Save sghiassy/efd0f724904e93179251 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)executeApplicationScript:(NSString *)script sourceURL:(NSURL *)URL onComplete:(RCTJavaScriptCompleteBlock)onComplete { | |
NSDictionary *message = @{ | |
@"method": @"executeApplicationScript", | |
@"url": RCTNullIfNil(URL.absoluteString), | |
@"inject": _injectedObjects, | |
}; | |
[self sendMessage:message waitForReply:^(NSError *error, NSDictionary *reply) { | |
onComplete(error); | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment