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:
Nick Lockwood
2016-03-21 03:20:49 -07:00
committed by Facebook Github Bot 9
parent 7d059a12f3
commit d033c45f93
12 changed files with 131 additions and 85 deletions

View File

@@ -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)];