mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 23:18:06 +08:00
Extracted rootview-specific shadowview logic into new class
Summary:It was hard to understand which parts of the shadowview API are designed to be called only on the root view, and which were applicable to any view. This diff extracts rootview-specific logic out into a new RCTRootShadowView class. Reviewed By: majak Differential Revision: D3063905 fb-gh-sync-id: ef890cddfd7625fbd4bf5454314b441acdb03ac8 shipit-source-id: ef890cddfd7625fbd4bf5454314b441acdb03ac8
This commit is contained in:
committed by
Facebook Github Bot 9
parent
7d059a12f3
commit
d033c45f93
@@ -61,7 +61,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
|
||||
magicNumber = NSSwapLittleIntToHost(magicNumber);
|
||||
|
||||
int32_t sourceLength = 0;
|
||||
int64_t sourceLength = 0;
|
||||
if (magicNumber == RCTRAMBundleMagicNumber) {
|
||||
source = [NSData dataWithBytes:&magicNumber length:sizeof(magicNumber)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user