mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove allowLoadingNonRAMBundles
Differential Revision: D3555963 fbshipit-source-id: 24c23e8522c293aad030cd98e0c4ebcb76c54271
This commit is contained in:
committed by
Facebook Github Bot 2
parent
37d03396c6
commit
235dd0051d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user