mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
dd2415df73
Summary: For RAM bundling we don't want to hold the entire bundle in memory as that approach doesn't scale. Instead we want to seek and read individual sections as they're required. This rev does that by detecting the type of bundle we're dealing with by reading the first 4 bytes of it. If we're dealing with a RAM Bundle we bail loading. Reviewed By: javache Differential Revision: D3026205 fb-gh-sync-id: dc4c745d6f00aa7241203899e5ba136915efa6fe shipit-source-id: dc4c745d6f00aa7241203899e5ba136915efa6fe
28 lines
755 B
Objective-C
Executable File
28 lines
755 B
Objective-C
Executable File
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "RCTBridgeDelegate.h"
|
|
|
|
extern uint32_t const RCTRAMBundleMagicNumber;
|
|
|
|
@class RCTBridge;
|
|
|
|
/**
|
|
* Class that allows easy embedding, loading, life-cycle management of a
|
|
* JavaScript application inside of a native application.
|
|
* TODO: Incremental module loading. (low pri).
|
|
*/
|
|
@interface RCTJavaScriptLoader : NSObject
|
|
|
|
+ (void)loadBundleAtURL:(NSURL *)moduleURL onComplete:(RCTSourceLoadBlock)onComplete;
|
|
|
|
@end
|