Remove allowLoadingNonRAMBundles

Differential Revision: D3555963

fbshipit-source-id: 24c23e8522c293aad030cd98e0c4ebcb76c54271
This commit is contained in:
Adam Ernst authored and Facebook Github Bot 2 committed 2016-07-13 16:43:38 -07:00
1 parent 37d03396c6
commit 235dd0051d
2 files changed
+2 -15

No files matched your search

+2 -3
View File
@@ -32,14 +32,13 @@ typedef void (^RCTSourceLoadBlock)(NSError *error, NSData *source, int64_t sourc
/**
* @experimental
* Attempts to synchronously load the script at the given URL. The following two conditions must be met:
* 1. It must be a file URL.
* 2. It must point to a RAM bundle, or allowLoadingNonRAMBundles must be YES.
* 1. It must be a file URL.
* 2. It must point to a RAM bundle.
* If the URL does not meet those conditions, this method will return nil and supply an error with the domain
* RCTJavaScriptLoaderErrorDomain and the code RCTJavaScriptLoaderErrorCannotBeLoadedSynchronously.
*/
+ (NSData *)attemptSynchronousLoadOfBundleAtURL:(NSURL *)scriptURL
sourceLength:(int64_t *)sourceLength
allowLoadingNonRAMBundles:(BOOL)allowLoadingNonRAMBundles
error:(NSError **)error;
@end