From 47b36d3ff0dbb99fd3fc98f6e981a38084dd4d2c Mon Sep 17 00:00:00 2001 From: Martin Arista Date: Sun, 11 Feb 2018 22:21:02 -0800 Subject: [PATCH 001/267] Update DevLoadingView to Support iPhone X Summary: The current implementation of DevLoadingView for iPhone currently gives a static height of `22` and does not take into account iPhoneX screen dimensions. Devices: All iPhone devices currently available with Xcode v9.2 SDK: 8.1, 9, 10, 11 Validate resize only occurs on iPhone X devices and others remain consistent. Before: ![feb-10-2018 12-30-20](https://user-images.githubusercontent.com/1743953/36065313-7b41f2ea-0e5e-11e8-87f2-928e26536077.gif) After: ![feb-10-2018 12-28-15](https://user-images.githubusercontent.com/1743953/36065317-848e4f7e-0e5e-11e8-8aab-70cb5db32f31.gif) [GENERAL][ENHANCEMENT][{React}] - Improvements to DevLoadingView for iPhone X Closes https://github.com/facebook/react-native/pull/17936 Differential Revision: D6962962 Pulled By: shergin fbshipit-source-id: e11d9386544fe19a9195e22a03e12f64e934cad7 --- React/DevSupport/RCTDevLoadingView.m | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/React/DevSupport/RCTDevLoadingView.m b/React/DevSupport/RCTDevLoadingView.m index 9872b1a35b7f1b..0b921374d80fa8 100644 --- a/React/DevSupport/RCTDevLoadingView.m +++ b/React/DevSupport/RCTDevLoadingView.m @@ -73,8 +73,15 @@ - (void)setBridge:(RCTBridge *)bridge dispatch_async(dispatch_get_main_queue(), ^{ self->_showDate = [NSDate date]; if (!self->_window && !RCTRunningInTestEnvironment()) { - CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width; - self->_window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenWidth, 22)]; + CGSize screenSize = [UIScreen mainScreen].bounds.size; + if (screenSize.height == 812 /* iPhone X */) { + self->_window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenSize.width, 60)]; + self->_label = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, self->_window.bounds.size.width, 30)]; + } else { + self->_window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenSize.width, 22)]; + self->_label = [[UILabel alloc] initWithFrame:self->_window.bounds]; + } + [self->_window addSubview:self->_label]; #if TARGET_OS_TV self->_window.windowLevel = UIWindowLevelNormal + 1; #else @@ -83,11 +90,8 @@ - (void)setBridge:(RCTBridge *)bridge // set a root VC so rotation is supported self->_window.rootViewController = [UIViewController new]; - self->_label = [[UILabel alloc] initWithFrame:self->_window.bounds]; self->_label.font = [UIFont systemFontOfSize:12.0]; self->_label.textAlignment = NSTextAlignmentCenter; - - [self->_window addSubview:self->_label]; } self->_label.text = message; From f91f7d91a1e937785438d568ff629d00307ca75a Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 12 Feb 2018 00:04:16 -0800 Subject: [PATCH 002/267] Reimagining of RCTShadowView layout API Summary: This is reimagining of interoperability layer between Yoga and ShadowViews (at least in Yoga -> RN part). Goals: * Make it clear and easy. * Make clear separation between "what layout what", now parent always layout children, noone layout itself. * Make possible to interleave Yoga layout with custom imperative layout (may be used in SafeAreaView, Text, Modal, InputAccessoryView and so on). Reviewed By: mmmulani Differential Revision: D6863654 fbshipit-source-id: 5a6a933874f121d46f744aab99a31ae42ddd4a1b --- Libraries/Text/Text/RCTTextShadowView.m | 58 ++---- .../TextInput/RCTBaseTextInputShadowView.m | 7 +- RNTester/RNTester.xcodeproj/project.pbxproj | 11 +- .../RNTesterUnitTests/RCTShadowViewTests.m | 4 +- React/Base/Surface/RCTSurfaceRootShadowView.h | 6 +- React/Base/Surface/RCTSurfaceRootShadowView.m | 33 +-- React/Modules/RCTUIManager.m | 27 ++- React/React.xcodeproj/project.pbxproj | 16 ++ React/Views/RCTLayout.h | 77 +++++++ React/Views/RCTLayout.m | 145 +++++++++++++ React/Views/RCTRootShadowView.h | 6 +- React/Views/RCTRootShadowView.m | 23 ++- React/Views/RCTShadowView+Layout.h | 14 -- React/Views/RCTShadowView+Layout.m | 64 +----- React/Views/RCTShadowView.h | 53 ++--- React/Views/RCTShadowView.m | 191 +++++++++++------- .../ScrollView/RCTScrollContentShadowView.m | 43 +--- 17 files changed, 469 insertions(+), 309 deletions(-) create mode 100644 React/Views/RCTLayout.h create mode 100644 React/Views/RCTLayout.m diff --git a/Libraries/Text/Text/RCTTextShadowView.m b/Libraries/Text/Text/RCTTextShadowView.m index a4490388ea4a9c..4a2eac095e73d9 100644 --- a/Libraries/Text/Text/RCTTextShadowView.m +++ b/Libraries/Text/Text/RCTTextShadowView.m @@ -235,40 +235,24 @@ - (NSTextStorage *)textStorageAndLayoutManagerThatFitsSize:(CGSize)size return textStorage; } -- (void)applyLayoutNode:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition +- (void)layoutWithMetrics:(RCTLayoutMetrics)layoutMetrics + layoutContext:(RCTLayoutContext)layoutContext { - if (YGNodeGetHasNewLayout(self.yogaNode)) { - // If the view got new layout, we have to redraw it because `contentFrame` - // and sizes of embedded views may change. + // If the view got new `contentFrame`, we have to redraw it because + // and sizes of embedded views may change. + if (!CGRectEqualToRect(self.layoutMetrics.contentFrame, layoutMetrics.contentFrame)) { _needsUpdateView = YES; } - [super applyLayoutNode:node - viewsWithNewFrame:viewsWithNewFrame - absolutePosition:absolutePosition]; -} - -- (void)applyLayoutWithFrame:(CGRect)frame - layoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection - viewsWithUpdatedLayout:(NSMutableSet *)viewsWithUpdatedLayout - absolutePosition:(CGPoint)absolutePosition -{ - if (self.textAttributes.layoutDirection != layoutDirection) { - self.textAttributes.layoutDirection = layoutDirection; + if (self.textAttributes.layoutDirection != layoutMetrics.layoutDirection) { + self.textAttributes.layoutDirection = layoutMetrics.layoutDirection; [self invalidateCache]; } - [super applyLayoutWithFrame:frame - layoutDirection:layoutDirection - viewsWithUpdatedLayout:viewsWithUpdatedLayout - absolutePosition:absolutePosition]; + [super layoutWithMetrics:layoutMetrics layoutContext:layoutContext]; } -- (void)applyLayoutToChildren:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition +- (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext { NSTextStorage *textStorage = [self textStorageAndLayoutManagerThatFitsSize:self.availableSize @@ -280,9 +264,9 @@ - (void)applyLayoutToChildren:(YGNodeRef)node actualGlyphRange:NULL]; [textStorage enumerateAttribute:RCTBaseTextShadowViewEmbeddedShadowViewAttributeName - inRange:characterRange - options:0 - usingBlock: + inRange:characterRange + options:0 + usingBlock: ^(RCTShadowView *shadowView, NSRange range, BOOL *stop) { if (!shadowView) { return; @@ -306,18 +290,14 @@ - (void)applyLayoutToChildren:(YGNodeRef)node RCTRoundPixelValue(attachmentSize.height) }}; - UIUserInterfaceLayoutDirection layoutDirection = self.textAttributes.layoutDirection; - - YGNodeCalculateLayout( - shadowView.yogaNode, - frame.size.width, - frame.size.height, - layoutDirection == UIUserInterfaceLayoutDirectionLeftToRight ? YGDirectionLTR : YGDirectionRTL); + RCTLayoutContext localLayoutContext = layoutContext; + localLayoutContext.absolutePosition.x += frame.origin.x; + localLayoutContext.absolutePosition.y += frame.origin.y; - [shadowView applyLayoutWithFrame:frame - layoutDirection:layoutDirection - viewsWithUpdatedLayout:viewsWithNewFrame - absolutePosition:absolutePosition]; + [shadowView layoutWithMinimumSize:frame.size + maximumSize:frame.size + layoutDirection:self.layoutMetrics.layoutDirection + layoutContext:localLayoutContext]; } ]; } diff --git a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m index e145d4a3b0c870..faaaf775f06742 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m @@ -47,6 +47,11 @@ - (BOOL)isYogaLeafNode return YES; } +- (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext +{ + // Do nothing. +} + - (void)setLocalData:(NSObject *)localData { NSAttributedString *attributedText = (NSAttributedString *)localData; @@ -73,7 +78,7 @@ - (void)invalidateContentSize return; } - CGSize maximumSize = self.frame.size; + CGSize maximumSize = self.layoutMetrics.frame.size; if (_maximumNumberOfLines == 1) { maximumSize.width = CGFLOAT_MAX; diff --git a/RNTester/RNTester.xcodeproj/project.pbxproj b/RNTester/RNTester.xcodeproj/project.pbxproj index 84c137c7e40cf9..d8a883ae56370e 100644 --- a/RNTester/RNTester.xcodeproj/project.pbxproj +++ b/RNTester/RNTester.xcodeproj/project.pbxproj @@ -889,13 +889,6 @@ name = Products; sourceTree = ""; }; - 19BA89021F8439A700741C5A /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; 272E6B3A1BEA846C001FCF37 /* NativeExampleViews */ = { isa = PBXGroup; children = ( @@ -1157,6 +1150,9 @@ 004D289D1AAF61C70097A701 = { CreatedOnToolsVersion = 6.1.1; }; + 13B07F861A680F5B00A75B9A = { + DevelopmentTeam = V9WTTPBFK9; + }; 143BC5941B21E3E100462512 = { CreatedOnToolsVersion = 6.3.2; TestTargetID = 13B07F861A680F5B00A75B9A; @@ -1854,6 +1850,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = V9WTTPBFK9; INFOPLIST_FILE = "$(SRCROOT)/RNTester/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 9.3; LIBRARY_SEARCH_PATHS = "$(inherited)"; diff --git a/RNTester/RNTesterUnitTests/RCTShadowViewTests.m b/RNTester/RNTesterUnitTests/RCTShadowViewTests.m index c00922e41808f5..34543cf19b42be 100644 --- a/RNTester/RNTesterUnitTests/RCTShadowViewTests.m +++ b/RNTester/RNTesterUnitTests/RCTShadowViewTests.m @@ -88,7 +88,7 @@ - (void)testApplyingLayoutRecursivelyToShadowView [self.parentView insertReactSubview:mainView atIndex:1]; [self.parentView insertReactSubview:footerView atIndex:2]; - [self.parentView collectViewsWithUpdatedFrames]; + [self.parentView layoutWithAffectedShadowViews:[NSHashTable weakObjectsHashTable]]; XCTAssertTrue(CGRectEqualToRect([self.parentView measureLayoutRelativeToAncestor:self.parentView], CGRectMake(0, 0, 440, 440))); XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets([self.parentView paddingAsInsets], UIEdgeInsetsMake(10, 10, 10, 10))); @@ -180,7 +180,7 @@ - (void)_withShadowViewWithStyle:(void(^)(YGNodeRef node))configBlock RCTShadowView *view = [self _shadowViewWithConfig:configBlock]; [self.parentView insertReactSubview:view atIndex:0]; view.intrinsicContentSize = contentSize; - [self.parentView collectViewsWithUpdatedFrames]; + [self.parentView layoutWithAffectedShadowViews:[NSHashTable weakObjectsHashTable]]; CGRect actualRect = [view measureLayoutRelativeToAncestor:self.parentView]; XCTAssertTrue(CGRectEqualToRect(expectedRect, actualRect), @"Expected layout to be %@, got %@", diff --git a/React/Base/Surface/RCTSurfaceRootShadowView.h b/React/Base/Surface/RCTSurfaceRootShadowView.h index 86b12c393f0c46..e3ff17506c814a 100644 --- a/React/Base/Surface/RCTSurfaceRootShadowView.h +++ b/React/Base/Surface/RCTSurfaceRootShadowView.h @@ -29,10 +29,6 @@ */ @property (nonatomic, assign) YGDirection baseDirection; -/** - * Calculate all views whose frame needs updating after layout has been calculated. - * Returns a set contains the shadowviews that need updating. - */ -- (NSSet *)collectViewsWithUpdatedFrames; +- (void)layoutWithAffectedShadowViews:(NSHashTable *)affectedShadowViews; @end diff --git a/React/Base/Surface/RCTSurfaceRootShadowView.m b/React/Base/Surface/RCTSurfaceRootShadowView.m index 37a4c206ef57b3..fb4d28deb983ae 100644 --- a/React/Base/Surface/RCTSurfaceRootShadowView.m +++ b/React/Base/Surface/RCTSurfaceRootShadowView.m @@ -43,37 +43,26 @@ - (void)insertReactSubview:(RCTShadowView *)subview atIndex:(NSInteger)atIndex } } -- (void)calculateLayoutWithMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize +- (void)layoutWithAffectedShadowViews:(NSHashTable *)affectedShadowViews { - YGNodeRef yogaNode = self.yogaNode; + NSHashTable *other = [NSHashTable new]; - YGNodeStyleSetMinWidth(yogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width)); - YGNodeStyleSetMinHeight(yogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height)); + RCTLayoutContext layoutContext = {}; + layoutContext.absolutePosition = CGPointZero; + layoutContext.affectedShadowViews = affectedShadowViews; + layoutContext.other = other; - YGNodeCalculateLayout( - self.yogaNode, - RCTYogaFloatFromCoreGraphicsFloat(maximumSize.width), - RCTYogaFloatFromCoreGraphicsFloat(maximumSize.height), - _baseDirection - ); -} - -- (NSSet *)collectViewsWithUpdatedFrames -{ - [self calculateLayoutWithMinimumSize:_minimumSize - maximumSize:_maximumSize]; + [self layoutWithMinimumSize:_minimumSize + maximumSize:_maximumSize + layoutDirection:RCTUIKitLayoutDirectionFromYogaLayoutDirection(_baseDirection) + layoutContext:layoutContext]; - NSMutableSet *viewsWithNewFrame = [NSMutableSet set]; - [self applyLayoutNode:self.yogaNode viewsWithNewFrame:viewsWithNewFrame absolutePosition:CGPointZero]; - - self.intrinsicSize = self.frame.size; + self.intrinsicSize = self.layoutMetrics.frame.size; if (_isRendered && !_isLaidOut) { [_delegate rootShadowViewDidStartLayingOut:self]; _isLaidOut = YES; } - - return viewsWithNewFrame; } - (void)setMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 17127c7264576f..ded51a99378786 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -479,14 +479,10 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView * { RCTAssertUIManagerQueue(); - // This is nuanced. In the JS thread, we create a new update buffer - // `frameTags`/`frames` that is created/mutated in the JS thread. We access - // these structures in the UI-thread block. `NSMutableArray` is not thread - // safe so we rely on the fact that we never mutate it after it's passed to - // the main thread. - NSSet *viewsWithNewFrames = [rootShadowView collectViewsWithUpdatedFrames]; - - if (!viewsWithNewFrames.count) { + NSHashTable *affectedShadowViews = [NSHashTable weakObjectsHashTable]; + [rootShadowView layoutWithAffectedShadowViews:affectedShadowViews]; + + if (!affectedShadowViews.count) { // no frame change results in no UI update block return nil; } @@ -499,24 +495,25 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView * } RCTFrameData; // Construct arrays then hand off to main thread - NSUInteger count = viewsWithNewFrames.count; + NSUInteger count = affectedShadowViews.count; NSMutableArray *reactTags = [[NSMutableArray alloc] initWithCapacity:count]; NSMutableData *framesData = [[NSMutableData alloc] initWithLength:sizeof(RCTFrameData) * count]; { NSUInteger index = 0; RCTFrameData *frameDataArray = (RCTFrameData *)framesData.mutableBytes; - for (RCTShadowView *shadowView in viewsWithNewFrames) { + for (RCTShadowView *shadowView in affectedShadowViews) { reactTags[index] = shadowView.reactTag; + RCTLayoutMetrics layoutMetrics = shadowView.layoutMetrics; frameDataArray[index++] = (RCTFrameData){ - shadowView.frame, - shadowView.layoutDirection, + layoutMetrics.frame, + layoutMetrics.layoutDirection, shadowView.isNewView, shadowView.superview.isNewView, }; } } - for (RCTShadowView *shadowView in viewsWithNewFrames) { + for (RCTShadowView *shadowView in affectedShadowViews) { // We have to do this after we build the parentsAreNew array. shadowView.newView = NO; @@ -524,7 +521,7 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView * NSNumber *reactTag = shadowView.reactTag; if (shadowView.onLayout) { - CGRect frame = shadowView.frame; + CGRect frame = shadowView.layoutMetrics.frame; shadowView.onLayout(@{ @"layout": @{ @"x": @(frame.origin.x), @@ -539,7 +536,7 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView * RCTIsReactRootView(reactTag) && [shadowView isKindOfClass:[RCTRootShadowView class]] ) { - CGSize contentSize = shadowView.frame.size; + CGSize contentSize = shadowView.layoutMetrics.frame.size; RCTExecuteOnMainQueue(^{ UIView *view = self->_viewRegistry[reactTag]; diff --git a/React/React.xcodeproj/project.pbxproj b/React/React.xcodeproj/project.pbxproj index 06ba51997b59bd..4d9c41ed13d0a8 100644 --- a/React/React.xcodeproj/project.pbxproj +++ b/React/React.xcodeproj/project.pbxproj @@ -978,6 +978,12 @@ 590D7BFE1EBD458B00D8A370 /* RCTShadowView+Layout.h in Headers */ = {isa = PBXBuildFile; fileRef = 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */; }; 590D7BFF1EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */ = {isa = PBXBuildFile; fileRef = 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */; }; 590D7C001EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */ = {isa = PBXBuildFile; fileRef = 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */; }; + 591F78DA202ADB22004A668C /* RCTLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 591F78D8202ADB21004A668C /* RCTLayout.m */; }; + 591F78DB202ADB22004A668C /* RCTLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 591F78D8202ADB21004A668C /* RCTLayout.m */; }; + 591F78DC202ADB22004A668C /* RCTLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; + 591F78DD202ADB22004A668C /* RCTLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; + 591F78DE202ADB8F004A668C /* RCTLayout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; + 591F78DF202ADB97004A668C /* RCTLayout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; 5925356A20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */; }; 5925356B20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */; }; 59283CA01FD67321000EAAB9 /* RCTSurfaceStage.m in Sources */ = {isa = PBXBuildFile; fileRef = 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */; }; @@ -1347,6 +1353,7 @@ dstPath = include/React; dstSubfolderSpec = 16; files = ( + 591F78DF202ADB97004A668C /* RCTLayout.h in Copy Headers */, 59EDBCC31FDF4E55003573DE /* RCTScrollableProtocol.h in Copy Headers */, 59EDBCC41FDF4E55003573DE /* (null) in Copy Headers */, 59EDBCC51FDF4E55003573DE /* RCTScrollContentView.h in Copy Headers */, @@ -1574,6 +1581,7 @@ dstPath = include/React; dstSubfolderSpec = 16; files = ( + 591F78DE202ADB8F004A668C /* RCTLayout.h in Copy Headers */, 59EDBCBD1FDF4E43003573DE /* RCTScrollableProtocol.h in Copy Headers */, 59EDBCBE1FDF4E43003573DE /* (null) in Copy Headers */, 59EDBCBF1FDF4E43003573DE /* RCTScrollContentView.h in Copy Headers */, @@ -2156,6 +2164,8 @@ 58C571C01AA56C1900CDF9C8 /* RCTDatePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTDatePickerManager.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTShadowView+Layout.h"; sourceTree = ""; }; 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTShadowView+Layout.m"; sourceTree = ""; }; + 591F78D8202ADB21004A668C /* RCTLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTLayout.m; sourceTree = ""; }; + 591F78D9202ADB22004A668C /* RCTLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLayout.h; sourceTree = ""; }; 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurfaceSizeMeasureMode.mm; sourceTree = ""; }; 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSurfaceStage.m; sourceTree = ""; }; 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceHostingView.h; sourceTree = ""; }; @@ -2536,6 +2546,8 @@ 58C571BF1AA56C1900CDF9C8 /* RCTDatePickerManager.m */, 3D37B5801D522B190042D5B5 /* RCTFont.h */, 3D37B5811D522B190042D5B5 /* RCTFont.mm */, + 591F78D9202ADB22004A668C /* RCTLayout.h */, + 591F78D8202ADB21004A668C /* RCTLayout.m */, 66CD94AD1F1045E700CB3C7C /* RCTMaskedView.h */, 66CD94AE1F1045E700CB3C7C /* RCTMaskedView.m */, 66CD94AF1F1045E700CB3C7C /* RCTMaskedViewManager.h */, @@ -3151,6 +3163,7 @@ 3D302F4A1DF828F800D6DDAE /* RCTRootViewInternal.h in Headers */, 59EDBCB21FDF4E0C003573DE /* (null) in Headers */, 3D302F4B1DF828F800D6DDAE /* RCTTouchEvent.h in Headers */, + 591F78DD202ADB22004A668C /* RCTLayout.h in Headers */, 59D031F21F8353D3008361F0 /* RCTSafeAreaView.h in Headers */, 3D302F4C1DF828F800D6DDAE /* RCTTouchHandler.h in Headers */, 3D302F4D1DF828F800D6DDAE /* RCTURLRequestDelegate.h in Headers */, @@ -3511,6 +3524,7 @@ C60128AB1F3D1258009DF9FF /* RCTCxxConvert.h in Headers */, 59EDBCAD1FDF4E0C003573DE /* RCTScrollContentView.h in Headers */, 59EDBCA71FDF4E0C003573DE /* RCTScrollableProtocol.h in Headers */, + 591F78DC202ADB22004A668C /* RCTLayout.h in Headers */, 3D80DA631DF820620028D040 /* RCTBorderDrawing.h in Headers */, 3D80DA641DF820620028D040 /* RCTBorderStyle.h in Headers */, 3D80DA651DF820620028D040 /* RCTComponent.h in Headers */, @@ -4184,6 +4198,7 @@ 59D031F41F8353D3008361F0 /* RCTSafeAreaView.m in Sources */, 2D3B5E941D9B087900451313 /* RCTBundleURLProvider.m in Sources */, 2D3B5EB81D9B091B00451313 /* RCTSourceCode.m in Sources */, + 591F78DB202ADB22004A668C /* RCTLayout.m in Sources */, 2D3B5EB51D9B091100451313 /* RCTDevMenu.m in Sources */, 59EDBCAC1FDF4E0C003573DE /* (null) in Sources */, 2D3B5EBD1D9B092A00451313 /* RCTTiming.m in Sources */, @@ -4452,6 +4467,7 @@ 1372B70A1AB030C200659ED6 /* RCTAppState.m in Sources */, 59A7B9FE1E577DBF0068EDBF /* RCTRootContentView.m in Sources */, 13E067591A70F44B002CDEE1 /* UIView+React.m in Sources */, + 591F78DA202ADB22004A668C /* RCTLayout.m in Sources */, FEFAAC9E1FDB89B50057BBE0 /* RCTRedBoxExtraDataViewController.m in Sources */, 14F484561AABFCE100FDF6B9 /* RCTSliderManager.m in Sources */, CF2731C11E7B8DE40044CA4F /* RCTDeviceInfo.m in Sources */, diff --git a/React/Views/RCTLayout.h b/React/Views/RCTLayout.h new file mode 100644 index 00000000000000..79af03ecd715c3 --- /dev/null +++ b/React/Views/RCTLayout.h @@ -0,0 +1,77 @@ +/** + * 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 + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class RCTShadowView; + +typedef NS_ENUM(NSInteger, RCTDisplayType) { + RCTDisplayTypeNone, + RCTDisplayTypeFlex, + RCTDisplayTypeInline, +}; + +struct RCTLayoutMetrics { + CGRect frame; + CGRect contentFrame; + UIEdgeInsets borderWidth; + RCTDisplayType displayType; + UIUserInterfaceLayoutDirection layoutDirection; +}; +typedef struct CG_BOXABLE RCTLayoutMetrics RCTLayoutMetrics; + +struct RCTLayoutContext { + CGPoint absolutePosition; + __unsafe_unretained NSHashTable *_Nonnull affectedShadowViews; + __unsafe_unretained NSHashTable *_Nonnull other; +}; +typedef struct CG_BOXABLE RCTLayoutContext RCTLayoutContext; + +static inline BOOL RCTLayoutMetricsEqualToLayoutMetrics(RCTLayoutMetrics a, RCTLayoutMetrics b) +{ + return + CGRectEqualToRect(a.frame, b.frame) && + CGRectEqualToRect(a.contentFrame, b.contentFrame) && + UIEdgeInsetsEqualToEdgeInsets(a.borderWidth, b.borderWidth) && + a.displayType == b.displayType && + a.layoutDirection == b.layoutDirection; +} + +RCT_EXTERN RCTLayoutMetrics RCTLayoutMetricsFromYogaNode(YGNodeRef yogaNode); + +/** + * Converts float values between Yoga and CoreGraphics representations, + * especially in terms of edge cases. + */ +RCT_EXTERN float RCTYogaFloatFromCoreGraphicsFloat(CGFloat value); +RCT_EXTERN CGFloat RCTCoreGraphicsFloatFromYogaFloat(float value); + +/** + * Converts compound `YGValue` to simple `CGFloat` value. + */ +RCT_EXTERN CGFloat RCTCoreGraphicsFloatFromYogaValue(YGValue value, CGFloat baseFloatValue); + +/** + * Converts `YGDirection` to `UIUserInterfaceLayoutDirection` and vise versa. + */ +RCT_EXTERN YGDirection RCTYogaLayoutDirectionFromUIKitLayoutDirection(UIUserInterfaceLayoutDirection direction); +RCT_EXTERN UIUserInterfaceLayoutDirection RCTUIKitLayoutDirectionFromYogaLayoutDirection(YGDirection direction); + +/** + * Converts `YGDisplay` to `RCTDisplayType` and vise versa. + */ +RCT_EXTERN YGDisplay RCTYogaDisplayTypeFromReactDisplayType(RCTDisplayType displayType); +RCT_EXTERN RCTDisplayType RCTReactDisplayTypeFromYogaDisplayType(YGDisplay displayType); + +NS_ASSUME_NONNULL_END diff --git a/React/Views/RCTLayout.m b/React/Views/RCTLayout.m new file mode 100644 index 00000000000000..60727621d97a6c --- /dev/null +++ b/React/Views/RCTLayout.m @@ -0,0 +1,145 @@ +/** + * 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 + +#import "RCTAssert.h" +#import "RCTShadowView+Layout.h" + +RCTLayoutMetrics RCTLayoutMetricsFromYogaNode(YGNodeRef yogaNode) +{ + RCTLayoutMetrics layoutMetrics; + + CGRect frame = (CGRect){ + (CGPoint){ + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetLeft(yogaNode)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetTop(yogaNode)) + }, + (CGSize){ + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetWidth(yogaNode)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(yogaNode)) + } + }; + + UIEdgeInsets padding = (UIEdgeInsets){ + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetPadding(yogaNode, YGEdgeTop)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetPadding(yogaNode, YGEdgeLeft)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetPadding(yogaNode, YGEdgeBottom)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetPadding(yogaNode, YGEdgeRight)) + }; + + UIEdgeInsets borderWidth = (UIEdgeInsets){ + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetBorder(yogaNode, YGEdgeTop)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetBorder(yogaNode, YGEdgeLeft)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetBorder(yogaNode, YGEdgeBottom)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetBorder(yogaNode, YGEdgeRight)) + }; + + UIEdgeInsets compoundInsets = (UIEdgeInsets){ + borderWidth.top + padding.top, + borderWidth.left + padding.left, + borderWidth.bottom + padding.bottom, + borderWidth.right + padding.right + }; + + CGRect bounds = (CGRect){CGPointZero, frame.size}; + CGRect contentFrame = UIEdgeInsetsInsetRect(bounds, compoundInsets); + + layoutMetrics.frame = frame; + layoutMetrics.borderWidth = borderWidth; + layoutMetrics.contentFrame = contentFrame; + layoutMetrics.displayType = RCTReactDisplayTypeFromYogaDisplayType(YGNodeStyleGetDisplay(yogaNode)); + layoutMetrics.layoutDirection = RCTUIKitLayoutDirectionFromYogaLayoutDirection(YGNodeLayoutGetDirection(yogaNode)); + + return layoutMetrics; +} + + +/** + * Yoga and CoreGraphics have different opinions about how "infinity" value + * should be represented. + * Yoga uses `NAN` which requires additional effort to compare all those values, + * whereas GoreGraphics uses `GFLOAT_MAX` which can be easyly compared with + * standard `==` operator. + */ + +float RCTYogaFloatFromCoreGraphicsFloat(CGFloat value) +{ + if (value == CGFLOAT_MAX || isnan(value) || isinf(value)) { + return YGUndefined; + } + + return value; +} + +CGFloat RCTCoreGraphicsFloatFromYogaFloat(float value) +{ + if (value == YGUndefined || isnan(value) || isinf(value)) { + return CGFLOAT_MAX; + } + + return value; +} + +CGFloat RCTCoreGraphicsFloatFromYogaValue(YGValue value, CGFloat baseFloatValue) +{ + switch (value.unit) { + case YGUnitPoint: + return RCTCoreGraphicsFloatFromYogaFloat(value.value); + case YGUnitPercent: + return RCTCoreGraphicsFloatFromYogaFloat(value.value) * baseFloatValue; + case YGUnitAuto: + case YGUnitUndefined: + return baseFloatValue; + } +} + +YGDirection RCTYogaLayoutDirectionFromUIKitLayoutDirection(UIUserInterfaceLayoutDirection direction) +{ + switch (direction) { + case UIUserInterfaceLayoutDirectionRightToLeft: + return YGDirectionRTL; + case UIUserInterfaceLayoutDirectionLeftToRight: + return YGDirectionLTR; + } +} + +UIUserInterfaceLayoutDirection RCTUIKitLayoutDirectionFromYogaLayoutDirection(YGDirection direction) +{ + switch (direction) { + case YGDirectionInherit: + case YGDirectionLTR: + return UIUserInterfaceLayoutDirectionLeftToRight; + case YGDirectionRTL: + return UIUserInterfaceLayoutDirectionRightToLeft; + } +} + +YGDisplay RCTYogaDisplayTypeFromReactDisplayType(RCTDisplayType displayType) +{ + switch (displayType) { + case RCTDisplayTypeNone: + return YGDisplayNone; + case RCTDisplayTypeFlex: + return YGDisplayFlex; + case RCTDisplayTypeInline: + RCTAssert(NO, @"RCTDisplayTypeInline cannot be converted to YGDisplay value."); + return YGDisplayNone; + } +} + +RCTDisplayType RCTReactDisplayTypeFromYogaDisplayType(YGDisplay displayType) +{ + switch (displayType) { + case YGDisplayFlex: + return RCTDisplayTypeFlex; + case YGDisplayNone: + return RCTDisplayTypeNone; + } +} diff --git a/React/Views/RCTRootShadowView.h b/React/Views/RCTRootShadowView.h index 95b96edf11f82b..8f1d0108c2a1aa 100644 --- a/React/Views/RCTRootShadowView.h +++ b/React/Views/RCTRootShadowView.h @@ -25,10 +25,6 @@ */ @property (nonatomic, assign) YGDirection baseDirection; -/** - * Calculate all views whose frame needs updating after layout has been calculated. - * Returns a set contains the shadowviews that need updating. - */ -- (NSSet *)collectViewsWithUpdatedFrames; +- (void)layoutWithAffectedShadowViews:(NSHashTable *)affectedShadowViews; @end diff --git a/React/Views/RCTRootShadowView.m b/React/Views/RCTRootShadowView.m index 15b5b6f7cb52fa..87dad3d8edf394 100644 --- a/React/Views/RCTRootShadowView.m +++ b/React/Views/RCTRootShadowView.m @@ -10,30 +10,33 @@ #import "RCTRootShadowView.h" #import "RCTI18nUtil.h" +#import "RCTShadowView+Layout.h" @implementation RCTRootShadowView - (instancetype)init { - self = [super init]; - if (self) { + if (self = [super init]) { _baseDirection = [[RCTI18nUtil sharedInstance] isRTL] ? YGDirectionRTL : YGDirectionLTR; _availableSize = CGSizeMake(INFINITY, INFINITY); } + return self; } -- (NSSet *)collectViewsWithUpdatedFrames +- (void)layoutWithAffectedShadowViews:(NSHashTable *)affectedShadowViews { - // Treating `INFINITY` as `YGUndefined` (which equals `NAN`). - float availableWidth = _availableSize.width == INFINITY ? YGUndefined : _availableSize.width; - float availableHeight = _availableSize.height == INFINITY ? YGUndefined : _availableSize.height; + NSHashTable *other = [NSHashTable new]; - YGNodeCalculateLayout(self.yogaNode, availableWidth, availableHeight, _baseDirection); + RCTLayoutContext layoutContext = {}; + layoutContext.absolutePosition = CGPointZero; + layoutContext.affectedShadowViews = affectedShadowViews; + layoutContext.other = other; - NSMutableSet *viewsWithNewFrame = [NSMutableSet set]; - [self applyLayoutNode:self.yogaNode viewsWithNewFrame:viewsWithNewFrame absolutePosition:CGPointZero]; - return viewsWithNewFrame; + [self layoutWithMinimumSize:CGSizeZero + maximumSize:_availableSize + layoutDirection:RCTUIKitLayoutDirectionFromYogaLayoutDirection(_baseDirection) + layoutContext:layoutContext]; } @end diff --git a/React/Views/RCTShadowView+Layout.h b/React/Views/RCTShadowView+Layout.h index 8e4966663c1d40..8c6d3fe160489f 100644 --- a/React/Views/RCTShadowView+Layout.h +++ b/React/Views/RCTShadowView+Layout.h @@ -11,13 +11,6 @@ #import -/** - * Converts float values between Yoga and CoreGraphics representations, - * especially in terms of edge cases. - */ -RCT_EXTERN float RCTYogaFloatFromCoreGraphicsFloat(CGFloat value); -RCT_EXTERN CGFloat RCTCoreGraphicsFloatFromYogaFloat(float value); - @interface RCTShadowView (Layout) #pragma mark - Computed Layout-Inferred Metrics @@ -28,13 +21,6 @@ RCT_EXTERN CGFloat RCTCoreGraphicsFloatFromYogaFloat(float value); @property (nonatomic, readonly) CGSize availableSize; @property (nonatomic, readonly) CGRect contentFrame; -#pragma mark - Measuring - -/** - * Measures shadow view without side-effects. - */ -- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize; - #pragma mark - Dirty Propagation Control /** diff --git a/React/Views/RCTShadowView+Layout.m b/React/Views/RCTShadowView+Layout.m index 9726ead4163fb7..4071c8f037086e 100644 --- a/React/Views/RCTShadowView+Layout.m +++ b/React/Views/RCTShadowView+Layout.m @@ -11,31 +11,7 @@ #import -/** - * Yoga and CoreGraphics have different opinions about how "infinity" value - * should be represented. - * Yoga uses `NAN` which requires additional effort to compare all those values, - * whereas GoreGraphics uses `GFLOAT_MAX` which can be easyly compared with - * standard `==` operator. - */ - -float RCTYogaFloatFromCoreGraphicsFloat(CGFloat value) -{ - if (value == CGFLOAT_MAX || isnan(value) || isinf(value)) { - return YGUndefined; - } - - return value; -} - -CGFloat RCTCoreGraphicsFloatFromYogaFloat(float value) -{ - if (value == YGUndefined || isnan(value) || isinf(value)) { - return CGFLOAT_MAX; - } - - return value; -} +#import "RCTAssert.h" @implementation RCTShadowView (Layout) @@ -78,46 +54,12 @@ - (UIEdgeInsets)compoundInsets - (CGSize)availableSize { - return UIEdgeInsetsInsetRect((CGRect){CGPointZero, self.frame.size}, self.compoundInsets).size; + return self.layoutMetrics.contentFrame.size; } - (CGRect)contentFrame { - CGRect bounds = (CGRect){CGPointZero, self.frame.size}; - return UIEdgeInsetsInsetRect(bounds, self.compoundInsets); -} - -#pragma mark - Measuring - -- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize -{ - YGNodeRef clonnedYogaNode = YGNodeClone(self.yogaNode); - YGNodeRef constraintYogaNode = YGNodeNewWithConfig([[self class] yogaConfig]); - - YGNodeInsertChild(constraintYogaNode, clonnedYogaNode, 0); - - YGNodeStyleSetMinWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width)); - YGNodeStyleSetMinHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height)); - YGNodeStyleSetMaxWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(maximumSize.width)); - YGNodeStyleSetMaxHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(maximumSize.height)); - - YGNodeCalculateLayout( - constraintYogaNode, - YGUndefined, - YGUndefined, - self.layoutDirection - ); - - CGSize measuredSize = (CGSize){ - RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetWidth(constraintYogaNode)), - RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(constraintYogaNode)), - }; - - YGNodeRemoveChild(constraintYogaNode, clonnedYogaNode); - YGNodeFree(constraintYogaNode); - YGNodeFree(clonnedYogaNode); - - return measuredSize; + return self.layoutMetrics.contentFrame; } #pragma mark - Dirty Propagation Control diff --git a/React/Views/RCTShadowView.h b/React/Views/RCTShadowView.h index 70d73aad6a63b2..826386f82782d5 100644 --- a/React/Views/RCTShadowView.h +++ b/React/Views/RCTShadowView.h @@ -10,6 +10,7 @@ #import #import +#import #import #import @@ -51,6 +52,11 @@ typedef void (^RCTApplierBlock)(NSDictionary *viewRegistry @property (nonatomic, copy) NSString *viewName; @property (nonatomic, copy) RCTDirectEventBlock onLayout; +/** + * Computed layout of the view. + */ +@property (nonatomic, assign) RCTLayoutMetrics layoutMetrics; + /** * In some cases we need a way to specify some environmental data to shadow view * to improve layout (or do something similar), so `localData` serves these needs. @@ -70,12 +76,6 @@ typedef void (^RCTApplierBlock)(NSDictionary *viewRegistry */ @property (nonatomic, assign, getter=isNewView) BOOL newView; -/** - * Computed layout direction of the view. - */ - -@property (nonatomic, assign, readonly) UIUserInterfaceLayoutDirection layoutDirection; - /** * Position and dimensions. * Defaults to { 0, 0, NAN, NAN }. @@ -167,38 +167,39 @@ typedef void (^RCTApplierBlock)(NSDictionary *viewRegistry */ @property (nonatomic, assign) YGOverflow overflow; -/** - * Computed position of the view. - */ -@property (nonatomic, assign, readonly) CGRect frame; - /** * Represents the natural size of the view, which is used when explicit size is not set or is ambiguous. * Defaults to `{UIViewNoIntrinsicMetric, UIViewNoIntrinsicMetric}`. */ @property (nonatomic, assign) CGSize intrinsicContentSize; +#pragma mark - Layout + +/** + * Initiates layout starts from the view. + */ +- (void)layoutWithMinimumSize:(CGSize)minimumSize + maximumSize:(CGSize)maximumSize + layoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection + layoutContext:(RCTLayoutContext)layoutContext; + /** - * Apply the CSS layout. - * This method also calls `applyLayoutToChildren:` internally. The functionality - * is split into two methods so subclasses can override `applyLayoutToChildren:` - * while using default implementation of `applyLayoutNode:`. + * Applies computed layout metrics to the view. */ -- (void)applyLayoutNode:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition NS_REQUIRES_SUPER; +- (void)layoutWithMetrics:(RCTLayoutMetrics)layoutMetrics + layoutContext:(RCTLayoutContext)layoutContext; -- (void)applyLayoutWithFrame:(CGRect)frame - layoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection - viewsWithUpdatedLayout:(NSMutableSet *)viewsWithUpdatedLayout - absolutePosition:(CGPoint)absolutePosition; +/** + * Calculates (if needed) and applies layout to subviews. + */ +- (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext; /** - * Enumerate the child nodes and tell them to apply layout. + * Measures shadow view without side-effects. + * Default implementation uses Yoga for measuring. */ -- (void)applyLayoutToChildren:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition; +- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize + maximumSize:(CGSize)maximumSize; /** * Returns whether or not this view can have any subviews. diff --git a/React/Views/RCTShadowView.m b/React/Views/RCTShadowView.m index 28298edff88439..4c2e24b8403fe3 100644 --- a/React/Views/RCTShadowView.m +++ b/React/Views/RCTShadowView.m @@ -12,6 +12,7 @@ #import "RCTConvert.h" #import "RCTI18nUtil.h" #import "RCTLog.h" +#import "RCTShadowView+Layout.h" #import "RCTUtils.h" #import "UIView+Private.h" #import "UIView+React.h" @@ -153,82 +154,21 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT], YGNodeStyleSetBorder(node, YGEdgeAll, metaProps[META_PROP_ALL].value); } -- (void)applyLayoutNode:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition -{ - if (!YGNodeGetHasNewLayout(node)) { - return; - } - - RCTAssert(!YGNodeIsDirty(node), @"Attempt to get layout metrics from dirtied Yoga node."); - - YGNodeSetHasNewLayout(node, false); - - if (YGNodeStyleGetDisplay(node) == YGDisplayNone) { - // If the node is hidden (has `display: none;`), its (and its descendants) - // layout metrics are invalid and/or dirtied, so we have to stop here. - return; - } - - CGRect frame = CGRectMake(YGNodeLayoutGetLeft(node), YGNodeLayoutGetTop(node), YGNodeLayoutGetWidth(node), YGNodeLayoutGetHeight(node)); - - // Even if `YGNodeLayoutGetDirection` can return `YGDirectionInherit` here, it actually means - // that Yoga will use LTR layout for the view (even if layout process is not finished yet). - UIUserInterfaceLayoutDirection layoutDirection = YGNodeLayoutGetDirection(_yogaNode) == YGDirectionRTL ? UIUserInterfaceLayoutDirectionRightToLeft : UIUserInterfaceLayoutDirectionLeftToRight; - - [self applyLayoutWithFrame:frame - layoutDirection:layoutDirection - viewsWithUpdatedLayout:viewsWithNewFrame - absolutePosition:absolutePosition]; -} - -- (void)applyLayoutWithFrame:(CGRect)frame - layoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection - viewsWithUpdatedLayout:(NSMutableSet *)viewsWithUpdatedLayout - absolutePosition:(CGPoint)absolutePosition -{ - if (!CGRectEqualToRect(_frame, frame) || _layoutDirection != layoutDirection) { - _frame = frame; - _layoutDirection = layoutDirection; - [viewsWithUpdatedLayout addObject:self]; - } - - absolutePosition.x += frame.origin.x; - absolutePosition.y += frame.origin.y; - - [self applyLayoutToChildren:_yogaNode - viewsWithNewFrame:viewsWithUpdatedLayout - absolutePosition:absolutePosition]; -} - -- (void)applyLayoutToChildren:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition -{ - for (unsigned int i = 0; i < YGNodeGetChildCount(node); ++i) { - RCTShadowView *child = (RCTShadowView *)_reactSubviews[i]; - [child applyLayoutNode:YGNodeGetChild(node, i) - viewsWithNewFrame:viewsWithNewFrame - absolutePosition:absolutePosition]; - } -} - - (CGRect)measureLayoutRelativeToAncestor:(RCTShadowView *)ancestor { CGPoint offset = CGPointZero; NSInteger depth = 30; // max depth to search RCTShadowView *shadowView = self; while (depth && shadowView && shadowView != ancestor) { - offset.x += shadowView.frame.origin.x; - offset.y += shadowView.frame.origin.y; + offset.x += shadowView.layoutMetrics.frame.origin.x; + offset.y += shadowView.layoutMetrics.frame.origin.y; shadowView = shadowView->_superview; depth--; } if (ancestor != shadowView) { return CGRectNull; } - return (CGRect){offset, self.frame.size}; + return (CGRect){offset, self.layoutMetrics.frame.size}; } - (BOOL)viewIsDescendantOf:(RCTShadowView *)ancestor @@ -244,9 +184,7 @@ - (BOOL)viewIsDescendantOf:(RCTShadowView *)ancestor - (instancetype)init { - if ((self = [super init])) { - _frame = CGRectMake(0, 0, YGUndefined, YGUndefined); - + if (self = [super init]) { for (unsigned int ii = 0; ii < META_PROP_COUNT; ii++) { _paddingMetaProps[ii] = YGValueUndefined; _marginMetaProps[ii] = YGValueUndefined; @@ -316,12 +254,125 @@ - (RCTShadowView *)reactSuperview return _superview; } +#pragma mark - Layout + +- (void)layoutWithMinimumSize:(CGSize)minimumSize + maximumSize:(CGSize)maximumSize + layoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection + layoutContext:(RCTLayoutContext)layoutContext +{ + YGNodeRef yogaNode = _yogaNode; + + CGSize oldMinimumSize = (CGSize){ + RCTCoreGraphicsFloatFromYogaValue(YGNodeStyleGetMinWidth(yogaNode), 0.0), + RCTCoreGraphicsFloatFromYogaValue(YGNodeStyleGetMinHeight(yogaNode), 0.0) + }; + + if (!CGSizeEqualToSize(oldMinimumSize, minimumSize)) { + YGNodeStyleSetMinWidth(yogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width)); + YGNodeStyleSetMinHeight(yogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height)); + } + + YGNodeCalculateLayout( + yogaNode, + RCTYogaFloatFromCoreGraphicsFloat(maximumSize.width), + RCTYogaFloatFromCoreGraphicsFloat(maximumSize.height), + RCTYogaLayoutDirectionFromUIKitLayoutDirection(layoutDirection) + ); + + RCTAssert(!YGNodeIsDirty(yogaNode), @"Attempt to get layout metrics from dirtied Yoga node."); + + if (!YGNodeGetHasNewLayout(yogaNode)) { + return; + } + + RCTLayoutMetrics layoutMetrics = RCTLayoutMetricsFromYogaNode(yogaNode); + + layoutContext.absolutePosition.x += layoutMetrics.frame.origin.x; + layoutContext.absolutePosition.y += layoutMetrics.frame.origin.y; + + [self layoutWithMetrics:layoutMetrics + layoutContext:layoutContext]; + + [self layoutSubviewsWithContext:layoutContext]; +} + +- (void)layoutWithMetrics:(RCTLayoutMetrics)layoutMetrics + layoutContext:(RCTLayoutContext)layoutContext +{ + if (!RCTLayoutMetricsEqualToLayoutMetrics(self.layoutMetrics, layoutMetrics)) { + self.layoutMetrics = layoutMetrics; + [layoutContext.affectedShadowViews addObject:self]; + } +} + +- (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext +{ + RCTLayoutMetrics layoutMetrics = self.layoutMetrics; + + if (layoutMetrics.displayType == RCTDisplayTypeNone) { + return; + } + + for (RCTShadowView *childShadowView in _reactSubviews) { + YGNodeRef childYogaNode = childShadowView.yogaNode; + + RCTAssert(!YGNodeIsDirty(childYogaNode), @"Attempt to get layout metrics from dirtied Yoga node."); + + if (!YGNodeGetHasNewLayout(childYogaNode)) { + continue; + } + + RCTLayoutMetrics childLayoutMetrics = RCTLayoutMetricsFromYogaNode(childYogaNode); + + layoutContext.absolutePosition.x += childLayoutMetrics.frame.origin.x; + layoutContext.absolutePosition.y += childLayoutMetrics.frame.origin.y; + + [childShadowView layoutWithMetrics:childLayoutMetrics + layoutContext:layoutContext]; + + // Recursive call. + [childShadowView layoutSubviewsWithContext:layoutContext]; + } +} + +- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize +{ + YGNodeRef clonnedYogaNode = YGNodeClone(self.yogaNode); + YGNodeRef constraintYogaNode = YGNodeNewWithConfig([[self class] yogaConfig]); + + YGNodeInsertChild(constraintYogaNode, clonnedYogaNode, 0); + + YGNodeStyleSetMinWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width)); + YGNodeStyleSetMinHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height)); + YGNodeStyleSetMaxWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(maximumSize.width)); + YGNodeStyleSetMaxHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(maximumSize.height)); + + YGNodeCalculateLayout( + constraintYogaNode, + YGUndefined, + YGUndefined, + self.layoutMetrics.layoutDirection + ); + + CGSize measuredSize = (CGSize){ + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetWidth(constraintYogaNode)), + RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(constraintYogaNode)), + }; + + YGNodeRemoveChild(constraintYogaNode, clonnedYogaNode); + YGNodeFree(constraintYogaNode); + YGNodeFree(clonnedYogaNode); + + return measuredSize; +} + - (NSNumber *)reactTagAtPoint:(CGPoint)point { for (RCTShadowView *shadowView in _reactSubviews) { - if (CGRectContainsPoint(shadowView.frame, point)) { + if (CGRectContainsPoint(shadowView.layoutMetrics.frame, point)) { CGPoint relativePoint = point; - CGPoint origin = shadowView.frame.origin; + CGPoint origin = shadowView.layoutMetrics.frame.origin; relativePoint.x -= origin.x; relativePoint.y -= origin.y; return [shadowView reactTagAtPoint:relativePoint]; @@ -333,7 +384,7 @@ - (NSNumber *)reactTagAtPoint:(CGPoint)point - (NSString *)description { NSString *description = super.description; - description = [[description substringToIndex:description.length - 1] stringByAppendingFormat:@"; viewName: %@; reactTag: %@; frame: %@>", self.viewName, self.reactTag, NSStringFromCGRect(self.frame)]; + description = [[description substringToIndex:description.length - 1] stringByAppendingFormat:@"; viewName: %@; reactTag: %@; frame: %@>", self.viewName, self.reactTag, NSStringFromCGRect(self.layoutMetrics.frame)]; return description; } diff --git a/React/Views/ScrollView/RCTScrollContentShadowView.m b/React/Views/ScrollView/RCTScrollContentShadowView.m index 700ab181322d40..d53a658edb0b97 100644 --- a/React/Views/ScrollView/RCTScrollContentShadowView.m +++ b/React/Views/ScrollView/RCTScrollContentShadowView.m @@ -13,43 +13,22 @@ #import "RCTUtils.h" -@interface RCTShadowView () { - // This will be removed after t15757916, which will remove - // side-effects from `setFrame:` method. - @public CGRect _frame; -} -@end - @implementation RCTScrollContentShadowView -- (void)applyLayoutNode:(YGNodeRef)node - viewsWithNewFrame:(NSMutableSet *)viewsWithNewFrame - absolutePosition:(CGPoint)absolutePosition +- (void)layoutWithMetrics:(RCTLayoutMetrics)layoutMetrics + layoutContext:(RCTLayoutContext)layoutContext { - // Call super method if LTR layout is enforced. - if (YGNodeLayoutGetDirection(self.yogaNode) != YGDirectionRTL) { - [super applyLayoutNode:node - viewsWithNewFrame:viewsWithNewFrame - absolutePosition:absolutePosition]; - return; + if (layoutMetrics.layoutDirection == UIUserInterfaceLayoutDirectionRightToLeft) { + // Motivation: + // Yoga place `contentView` on the right side of `scrollView` when RTL layout is enfoced. + // That breaks everything; it is completely pointless to (re)position `contentView` + // because it is `contentView`'s job. So, we work around it here. + + layoutContext.absolutePosition.x += layoutMetrics.frame.size.width; + layoutMetrics.frame.origin.x = 0; } - // Motivation: - // Yoga place `contentView` on the right side of `scrollView` when RTL layout is enfoced. - // That breaks everything; it is completely pointless to (re)position `contentView` - // because it is `contentView`'s job. So, we work around it here. - - // Step 1. Compensate `absolutePosition` change. - CGFloat xCompensation = YGNodeLayoutGetRight(node) - YGNodeLayoutGetLeft(node); - absolutePosition.x += xCompensation; - - // Step 2. Call super method. - [super applyLayoutNode:node - viewsWithNewFrame:viewsWithNewFrame - absolutePosition:absolutePosition]; - - // Step 3. Reset the position. - _frame.origin.x = RCTRoundPixelValue(YGNodeLayoutGetRight(node)); + [super layoutWithMetrics:layoutMetrics layoutContext:layoutContext]; } @end From f7729a5933fe34c0ca3b3ea5a3407ff1701c7d10 Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Mon, 12 Feb 2018 12:24:37 -0800 Subject: [PATCH 003/267] Broken publish step on CI Summary: Every `job` is run in a separate container and so, `checkout` step is required for the Git host to be added to `~/.ssh/known_hosts`. Without this step, it will timeout after 10 minutes waiting for you to add (yes) or reject (no) from known hosts (we get this prompt when we checkout from a host for the very first time). Closes https://github.com/facebook/react-native/pull/17956 Differential Revision: D6968130 Pulled By: hramos fbshipit-source-id: 6d62166fd375f8f408cf5f18b188f841d035d97f --- .circleci/config.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f169608b7f8aa..99fac87a3977c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -383,9 +383,9 @@ jobs: publish_npm_package: <<: *android_defaults steps: - - attach_workspace: - at: ~/react-native - + # Checkout code so that we can work with `git` in publish.js + - checkout + # Configure Android SDK and related dependencies - run: *configure-android-path - run: *install-android-build-dependencies @@ -597,16 +597,12 @@ workflows: # Only runs on NN-stable branches deploy: - jobs: - # Checkout repo and run Yarn - - checkout_code: - filters: *filter-only-stable - + jobs: # If we are on a stable branch, wait for approval to deploy to npm - approve_publish_npm_package: filters: *filter-only-stable type: approval + - publish_npm_package: requires: - - checkout_code - approve_publish_npm_package From bedaaa1419aa31fabf6dbf7a7f5ad294af1f4b5e Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 12 Feb 2018 13:57:50 -0800 Subject: [PATCH 004/267] React sync for revisions 467b103...a634e53 Reviewed By: flarnie Differential Revision: D6965585 fbshipit-source-id: 48c20d0010f4daf83272a36b3bdaca94493ab8fa --- Libraries/Renderer/REVISION | 2 +- Libraries/Renderer/ReactFabric-dev.js | 21 ++++++++++++------- Libraries/Renderer/ReactNativeRenderer-dev.js | 21 ++++++++++++------- package.json | 4 ++-- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/Libraries/Renderer/REVISION b/Libraries/Renderer/REVISION index 981ea0ea492919..fe141ab8098dae 100644 --- a/Libraries/Renderer/REVISION +++ b/Libraries/Renderer/REVISION @@ -1 +1 @@ -467b1034ce8af6807e11deb9dfeca4d4e922ed82 \ No newline at end of file +a634e53d2ff376366aa87815ad4de064494cd05e \ No newline at end of file diff --git a/Libraries/Renderer/ReactFabric-dev.js b/Libraries/Renderer/ReactFabric-dev.js index 475dd17d22ae91..f3ef96ccd7f284 100644 --- a/Libraries/Renderer/ReactFabric-dev.js +++ b/Libraries/Renderer/ReactFabric-dev.js @@ -3881,6 +3881,8 @@ var NativeMethodsMixin = { !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions." ); + // TODO (bvaughn) Remove cWM and cWRP in a future version of React Native, + // Once these lifecycles have been remove from the reconciler. NativeMethodsMixin_DEV.componentWillMount = function() { throwOnStylesProp(this, this.props); }; @@ -3893,6 +3895,12 @@ var NativeMethodsMixin = { NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function(newProps) { throwOnStylesProp(this, newProps); }; + + // React may warn about cWM/cWRP/cWU methods being deprecated. + // Add a flag to suppress these warnings for this special case. + // TODO (bvaughn) Remove this flag once the above methods have been removed. + NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; + NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; } function _classCallCheck$1(instance, Constructor) { @@ -6008,19 +6016,16 @@ var ReactStrictModeWarnings = { } // Don't warn about react-lifecycles-compat polyfilled components. - // Note that it is sufficient to check for the presence of a - // single lifecycle, componentWillMount, with the polyfill flag. if ( typeof instance.componentWillMount === "function" && - instance.componentWillMount.__suppressDeprecationWarning === true + instance.componentWillMount.__suppressDeprecationWarning !== true ) { - return; - } - - if (typeof instance.componentWillMount === "function") { pendingComponentWillMountWarnings.push(fiber); } - if (typeof instance.componentWillReceiveProps === "function") { + if ( + typeof instance.componentWillReceiveProps === "function" && + instance.componentWillReceiveProps.__suppressDeprecationWarning !== true + ) { pendingComponentWillReceivePropsWarnings.push(fiber); } if (typeof instance.componentWillUpdate === "function") { diff --git a/Libraries/Renderer/ReactNativeRenderer-dev.js b/Libraries/Renderer/ReactNativeRenderer-dev.js index 15ee4136d11ae6..e562e89af0489d 100644 --- a/Libraries/Renderer/ReactNativeRenderer-dev.js +++ b/Libraries/Renderer/ReactNativeRenderer-dev.js @@ -3881,6 +3881,8 @@ var NativeMethodsMixin = { !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions." ); + // TODO (bvaughn) Remove cWM and cWRP in a future version of React Native, + // Once these lifecycles have been remove from the reconciler. NativeMethodsMixin_DEV.componentWillMount = function() { throwOnStylesProp(this, this.props); }; @@ -3893,6 +3895,12 @@ var NativeMethodsMixin = { NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function(newProps) { throwOnStylesProp(this, newProps); }; + + // React may warn about cWM/cWRP/cWU methods being deprecated. + // Add a flag to suppress these warnings for this special case. + // TODO (bvaughn) Remove this flag once the above methods have been removed. + NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; + NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; } function _classCallCheck$1(instance, Constructor) { @@ -5919,19 +5927,16 @@ var ReactStrictModeWarnings = { } // Don't warn about react-lifecycles-compat polyfilled components. - // Note that it is sufficient to check for the presence of a - // single lifecycle, componentWillMount, with the polyfill flag. if ( typeof instance.componentWillMount === "function" && - instance.componentWillMount.__suppressDeprecationWarning === true + instance.componentWillMount.__suppressDeprecationWarning !== true ) { - return; - } - - if (typeof instance.componentWillMount === "function") { pendingComponentWillMountWarnings.push(fiber); } - if (typeof instance.componentWillReceiveProps === "function") { + if ( + typeof instance.componentWillReceiveProps === "function" && + instance.componentWillReceiveProps.__suppressDeprecationWarning !== true + ) { pendingComponentWillReceivePropsWarnings.push(fiber); } if (typeof instance.componentWillUpdate === "function") { diff --git a/package.json b/package.json index 92be465f9c5c5c..22ecc1725b9951 100644 --- a/package.json +++ b/package.json @@ -219,8 +219,8 @@ "jest": "22.2.1", "jest-junit": "3.5.0", "prettier": "1.9.1", - "react": "^16.3.0-alpha.0", - "react-test-renderer": "^16.3.0-alpha.0", + "react": "^16.3.0-alpha.1", + "react-test-renderer": "^16.3.0-alpha.1", "shelljs": "^0.7.8", "sinon": "^2.2.0" } From 427e464bb95e4e0ecc7455e71b5d477014618200 Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Mon, 12 Feb 2018 16:29:16 -0800 Subject: [PATCH 005/267] Fix localization crash in DevSettingsActivity Differential Revision: D6970534 fbshipit-source-id: da1df549b6157e5ec684cf4eed5f411740a73ed0 --- .../java/com/facebook/react/devsupport/DevSettingsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java index 3b39ea13acbaa8..13a6efdb41cbb4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java @@ -24,7 +24,7 @@ public class DevSettingsActivity extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setTitle(R.string.catalyst_settings_title); + setTitle(getApplication().getResources().getString(R.string.catalyst_settings_title)); addPreferencesFromResource(R.xml.preferences); } } From 54870e0c6ca8611fed775e5ba12a0d6d9b1cdbd7 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Mon, 12 Feb 2018 18:43:17 -0800 Subject: [PATCH 006/267] Add UTFSequence module for common unicode usage Summary: A collection of Unicode sequences for various characters and emoji. - More explicit than using the sequences directly in code. - Source code should be limitted to ASCII. - Less chance of typos. Reviewed By: TheSavior Differential Revision: D6969065 fbshipit-source-id: c11ec96b74f5dfa7c624a3c53f3c29f6284a82b3 --- Libraries/UTFSequence.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Libraries/UTFSequence.js diff --git a/Libraries/UTFSequence.js b/Libraries/UTFSequence.js new file mode 100644 index 00000000000000..262dd4e9bbf68d --- /dev/null +++ b/Libraries/UTFSequence.js @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2016-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. + * + * @providesModule UTFSequence + * @flow + * @format + */ + +'use strict'; + +/** + * A collection of Unicode sequences for various characters and emoji. + * + * - More explicit than using the sequences directly in code. + * - Source code should be limitted to ASCII. + * - Less chance of typos. + */ +const UTFSequence = { + MIDDOT: '\u00B7', // normal middle dot: · + MIDDOT_SP: '\u00A0\u00B7\u00A0', //  ·  + MIDDOT_KATAKANA: '\u30FB', // katakana middle dot + MDASH: '\u2014', // em dash: — + MDASH_SP: '\u00A0\u2014\u00A0', //  —  + NDASH: '\u2013', // en dash: – + NDASH_SP: '\u00A0\u2013\u00A0', //  –  + NBSP: '\u00A0', // non-breaking space:   + PIZZA: '\uD83C\uDF55', +}; + +module.exports = UTFSequence; From 4d0ee37293b5e21fc3c7a8c6edd72c9ff899df7d Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Mon, 12 Feb 2018 18:43:21 -0800 Subject: [PATCH 007/267] Add FDSStoryHeader Reviewed By: TheSavior Differential Revision: D6945233 fbshipit-source-id: 9630a72e4a7c88ca282392c374ca88326f282713 --- Libraries/Image/AssetSourceResolver.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/Image/AssetSourceResolver.js b/Libraries/Image/AssetSourceResolver.js index db7f642b862d0b..f8166c07d41ac8 100644 --- a/Libraries/Image/AssetSourceResolver.js +++ b/Libraries/Image/AssetSourceResolver.js @@ -12,13 +12,13 @@ */ 'use strict'; -export type ResolvedAssetSource = { - __packager_asset: boolean, - width: ?number, - height: ?number, - uri: string, - scale: number, -}; +export type ResolvedAssetSource = {| + +__packager_asset: boolean, + +width: ?number, + +height: ?number, + +uri: string, + +scale: number, +|}; import type {PackagerAsset} from 'AssetRegistry'; From 6893a26bfb06a2d8ad9d23a572f4d9143305d905 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Tue, 13 Feb 2018 01:22:04 -0800 Subject: [PATCH 008/267] Fix duplicate var name declaration Reviewed By: rafeca Differential Revision: D6965150 fbshipit-source-id: 332c8202f350e2014fedb9790f3d895222fb4f8d --- Libraries/Alert/AlertIOS.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Alert/AlertIOS.js b/Libraries/Alert/AlertIOS.js index b42b57c29ae481..8f4170a5a616fb 100644 --- a/Libraries/Alert/AlertIOS.js +++ b/Libraries/Alert/AlertIOS.js @@ -122,11 +122,10 @@ class AlertIOS { 'keyboardType) and the old syntax will be removed in a future version.'); var callback = type; - var defaultValue = message; RCTAlertManager.alertWithArgs({ title: title || '', type: 'plain-text', - defaultValue, + defaultValue: message, }, (id, value) => { callback(value); }); From 1673c570f984d86e88a3b6b44eb78f4848eb0515 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Tue, 13 Feb 2018 04:57:18 -0800 Subject: [PATCH 009/267] Uses a single code path to link and unlink all platforms Summary: This commit removes special cases for linking iOS and Android platforms. A previous commit opened up link and other commands for other platforms to provide their own behaviors. It left special cases in tact for iOS and Android. This PR removes the special case. - Added jest tests related to the link command. - Ran the `link` and `unlink` commands for iOS and Android and confirmed no changes. https://github.com/facebook/react-native/pull/17745 [CLI][FEATURE][local-cli/link/link.js] - Removes special cases for linking in iOS and Android. Closes https://github.com/facebook/react-native/pull/17961 Differential Revision: D6975951 Pulled By: hramos fbshipit-source-id: 8dd5da35619e2124ce4b3b18db8b694757792363 --- local-cli/core/android/index.js | 2 + local-cli/core/ios/index.js | 2 + local-cli/link/__tests__/link.spec.js | 10 ++- local-cli/link/android/copyAssets.js | 4 +- local-cli/link/android/index.js | 9 ++ local-cli/link/android/unlinkAssets.js | 4 +- local-cli/link/ios/common/isInstalled.js | 6 ++ .../link/ios/common/registerNativeModule.js | 16 ++++ .../link/ios/common/unregisterNativeModule.js | 22 +++++ local-cli/link/ios/index.js | 9 ++ local-cli/link/link.js | 76 +--------------- local-cli/link/pods/registerNativeModule.js | 4 +- local-cli/link/unlink.js | 87 ++++--------------- 13 files changed, 97 insertions(+), 154 deletions(-) create mode 100644 local-cli/link/android/index.js create mode 100644 local-cli/link/ios/common/isInstalled.js create mode 100644 local-cli/link/ios/common/registerNativeModule.js create mode 100644 local-cli/link/ios/common/unregisterNativeModule.js create mode 100644 local-cli/link/ios/index.js diff --git a/local-cli/core/android/index.js b/local-cli/core/android/index.js index cc229d298f4fd9..68d2a073c52e13 100644 --- a/local-cli/core/android/index.js +++ b/local-cli/core/android/index.js @@ -126,3 +126,5 @@ exports.dependencyConfig = function dependencyConfigAndroid(folder, userConfig) return { sourceDir, folder, manifest, packageImportPath, packageInstance }; }; + +exports.linkConfig = require('../../link/android'); diff --git a/local-cli/core/ios/index.js b/local-cli/core/ios/index.js index 6bca5946352085..0d69ac9f11129f 100644 --- a/local-cli/core/ios/index.js +++ b/local-cli/core/ios/index.js @@ -57,3 +57,5 @@ exports.projectConfig = function projectConfigIOS(folder, userConfig) { }; exports.dependencyConfig = exports.projectConfig; + +exports.linkConfig = require('../../link/ios'); diff --git a/local-cli/link/__tests__/link.spec.js b/local-cli/link/__tests__/link.spec.js index b3470563d7ce40..f15fc3fee43a58 100644 --- a/local-cli/link/__tests__/link.spec.js +++ b/local-cli/link/__tests__/link.spec.js @@ -81,8 +81,10 @@ describe('link', () => { it('should register native module when android/ios projects are present', (done) => { const registerNativeModule = sinon.stub(); const dependencyConfig = {android: {}, ios: {}, assets: [], commands: {}}; + const androidLinkConfig = require('../android'); + const iosLinkConfig = require('../ios'); const config = { - getPlatformConfig: () => ({ios: {}, android: {}}), + getPlatformConfig: () => ({ios: { linkConfig: iosLinkConfig }, android: { linkConfig: androidLinkConfig }}), getProjectConfig: () => ({android: {}, ios: {}, assets: []}), getDependencyConfig: sinon.stub().returns(dependencyConfig), }; @@ -223,8 +225,9 @@ describe('link', () => { sinon.stub().returns(false) ); + const linkConfig = require('../ios'); const config = { - getPlatformConfig: () => ({ ios: {}}), + getPlatformConfig: () => ({ ios: { linkConfig: linkConfig }}), getProjectConfig: () => ({ ios: {}, assets: [] }), getDependencyConfig: sinon.stub().returns({ ios: {}, assets: [], commands: { prelink, postlink }, @@ -251,8 +254,9 @@ describe('link', () => { copyAssets ); + const linkConfig = require('../ios'); const config = { - getPlatformConfig: () => ({ ios: {} }), + getPlatformConfig: () => ({ ios: { linkConfig: linkConfig } }), getProjectConfig: () => ({ ios: {}, assets: projectAssets }), getDependencyConfig: sinon.stub().returns(dependencyConfig), }; diff --git a/local-cli/link/android/copyAssets.js b/local-cli/link/android/copyAssets.js index 0f41a301c63b9a..6b3702fa7afeec 100644 --- a/local-cli/link/android/copyAssets.js +++ b/local-cli/link/android/copyAssets.js @@ -17,10 +17,10 @@ const groupFilesByType = require('../groupFilesByType'); * For now, the only types of files that are handled are: * - Fonts (otf, ttf) - copied to targetPath/fonts under original name */ -module.exports = function copyAssetsAndroid(files, targetPath) { +module.exports = function copyAssetsAndroid(files, project) { const assets = groupFilesByType(files); (assets.font || []).forEach(asset => - fs.copySync(asset, path.join(targetPath, 'fonts', path.basename(asset))) + fs.copySync(asset, path.join(project.assetsPath, 'fonts', path.basename(asset))) ); }; diff --git a/local-cli/link/android/index.js b/local-cli/link/android/index.js new file mode 100644 index 00000000000000..986ec59450b8dd --- /dev/null +++ b/local-cli/link/android/index.js @@ -0,0 +1,9 @@ +module.exports = function() { + return { + isInstalled: require('./isInstalled'), + register: require('./registerNativeModule'), + unregister: require('./unregisterNativeModule'), + copyAssets: require('./copyAssets'), + unlinkAssets: require('./unlinkAssets') + }; +}; diff --git a/local-cli/link/android/unlinkAssets.js b/local-cli/link/android/unlinkAssets.js index 6c8b02191ecd9e..dbaae6f7bcc9ba 100644 --- a/local-cli/link/android/unlinkAssets.js +++ b/local-cli/link/android/unlinkAssets.js @@ -17,11 +17,11 @@ const groupFilesByType = require('../groupFilesByType'); * For now, the only types of files that are handled are: * - Fonts (otf, ttf) - copied to targetPath/fonts under original name */ -module.exports = function unlinkAssetsAndroid(files, targetPath) { +module.exports = function unlinkAssetsAndroid(files, project) { const assets = groupFilesByType(files); (assets.font || []).forEach((file) => { - const filePath = path.join(targetPath, 'fonts', path.basename(file)); + const filePath = path.join(project.assetsPath, 'fonts', path.basename(file)); if (fs.existsSync(filePath)) { fs.unlinkSync(filePath); } diff --git a/local-cli/link/ios/common/isInstalled.js b/local-cli/link/ios/common/isInstalled.js new file mode 100644 index 00000000000000..a7a5f2d07d192e --- /dev/null +++ b/local-cli/link/ios/common/isInstalled.js @@ -0,0 +1,6 @@ +const isInstalledIOS = require('../isInstalled'); +const isInstalledPods = require('../../pods/isInstalled'); + +module.exports = function isInstalled(config, name) { + return isInstalledIOS(config, name) || isInstalledPods(config, name); +}; diff --git a/local-cli/link/ios/common/registerNativeModule.js b/local-cli/link/ios/common/registerNativeModule.js new file mode 100644 index 00000000000000..38ce59606982ca --- /dev/null +++ b/local-cli/link/ios/common/registerNativeModule.js @@ -0,0 +1,16 @@ +const registerDependencyIOS = require('../registerNativeModule'); +const registerDependencyPods = require('../../pods/registerNativeModule'); + +module.exports = function registerNativeModule( + name, + dependencyConfig, + params, + projectConfig +) { + if (projectConfig.podfile && dependencyConfig.podspec) { + registerDependencyPods(name, dependencyConfig, projectConfig); + } + else { + registerDependencyIOS(dependencyConfig, projectConfig); + } +}; diff --git a/local-cli/link/ios/common/unregisterNativeModule.js b/local-cli/link/ios/common/unregisterNativeModule.js new file mode 100644 index 00000000000000..b42882623fbe34 --- /dev/null +++ b/local-cli/link/ios/common/unregisterNativeModule.js @@ -0,0 +1,22 @@ +const compact = require('lodash').compact; +const isInstalledIOS = require('../isInstalled'); +const isInstalledPods = require('../../pods/isInstalled'); +const unregisterDependencyIOS = require('../registerNativeModule'); +const unregisterDependencyPods = require('../../pods/registerNativeModule'); + +module.exports = function unregisterNativeModule( + name, + dependencyConfig, + projectConfig, + otherDependencies +) { + const isIosInstalled = isInstalledIOS(projectConfig, dependencyConfig); + const isPodInstalled = isInstalledPods(projectConfig, dependencyConfig); + if (isIosInstalled) { + const iOSDependencies = compact(otherDependencies.map(d => d.config.ios)); + unregisterDependencyIOS(dependencyConfig, projectConfig, iOSDependencies); + } + else if (isPodInstalled) { + unregisterDependencyPods(dependencyConfig, projectConfig); + } +}; diff --git a/local-cli/link/ios/index.js b/local-cli/link/ios/index.js new file mode 100644 index 00000000000000..9653b3be80a1d1 --- /dev/null +++ b/local-cli/link/ios/index.js @@ -0,0 +1,9 @@ +module.exports = function() { + return { + isInstalled: require('./common/isInstalled'), + register: require('./common/registerNativeModule'), + unregister: require('./common/unregisterNativeModule'), + copyAssets: require('./copyAssets'), + unlinkAssets: require('./unlinkAssets') + }; +}; diff --git a/local-cli/link/link.js b/local-cli/link/link.js index ac0aba2a679ebd..8711f278bd08cc 100644 --- a/local-cli/link/link.js +++ b/local-cli/link/link.js @@ -26,14 +26,6 @@ const chalk = require('chalk'); * run Flow. */ const isEmpty = require('lodash').isEmpty; const promiseWaterfall = require('./promiseWaterfall'); -const registerDependencyAndroid = require('./android/registerNativeModule'); -const registerDependencyIOS = require('./ios/registerNativeModule'); -const registerDependencyPods = require('./pods/registerNativeModule'); -const isInstalledAndroid = require('./android/isInstalled'); -const isInstalledIOS = require('./ios/isInstalled'); -const isInstalledPods = require('./pods/isInstalled'); -const copyAssetsAndroid = require('./android/copyAssets'); -const copyAssetsIOS = require('./ios/copyAssets'); const getProjectDependencies = require('./getProjectDependencies'); const getDependencyConfig = require('./getDependencyConfig'); const pollParams = require('./pollParams'); @@ -47,37 +39,8 @@ log.heading = 'rnpm-link'; const dedupeAssets = (assets) => uniqBy(assets, asset => path.basename(asset)); - -const linkDependencyAndroid = (androidProject, dependency) => { - if (!androidProject || !dependency.config.android) { - return null; - } - - const isInstalled = isInstalledAndroid(androidProject, dependency.name); - - if (isInstalled) { - log.info(chalk.grey(`Android module ${dependency.name} is already linked`)); - return null; - } - - return pollParams(dependency.config.params).then(params => { - log.info(`Linking ${dependency.name} android dependency`); - - registerDependencyAndroid( - dependency.name, - dependency.config.android, - params, - androidProject - ); - - log.info(`Android module ${dependency.name} has been successfully linked`); - }); -}; - -const linkDependencyPlatforms = (platforms, project, dependency) => { - const ignorePlatforms = ['android', 'ios']; +const linkDependency = (platforms, project, dependency) => { Object.keys(platforms || {}) - .filter(platform => ignorePlatforms.indexOf(platform) < 0) .forEach(platform => { if (!project[platform] || !dependency.config[platform]) { return null; @@ -110,45 +73,12 @@ const linkDependencyPlatforms = (platforms, project, dependency) => { }); }; -const linkDependencyIOS = (iOSProject, dependency) => { - if (!iOSProject || !dependency.config.ios) { - return; - } - - const isInstalled = isInstalledIOS(iOSProject, dependency.config.ios) || isInstalledPods(iOSProject, dependency.config.ios); - if (isInstalled) { - log.info(chalk.grey(`iOS module ${dependency.name} is already linked`)); - return; - } - - log.info(`Linking ${dependency.name} ios dependency`); - if (iOSProject.podfile && dependency.config.ios.podspec) { - registerDependencyPods(dependency, iOSProject); - } - else { - registerDependencyIOS(dependency.config.ios, iOSProject); - } - log.info(`iOS module ${dependency.name} has been successfully linked`); -}; - const linkAssets = (platforms, project, assets) => { if (isEmpty(assets)) { return; } - if (project.ios) { - log.info('Linking assets to ios project'); - copyAssetsIOS(assets, project.ios); - } - - if (project.android) { - log.info('Linking assets to android project'); - copyAssetsAndroid(assets, project.android.assetsPath); - } - - const ignorePlatforms = ['android', 'ios']; Object.keys(platforms || {}) - .filter(platform => ignorePlatforms.indexOf(platform) < 0) .forEach(platform => { const linkConfig = platforms[platform] && platforms[platform].linkConfig && platforms[platform].linkConfig(); if (!linkConfig || !linkConfig.copyAssets) { @@ -212,9 +142,7 @@ function link(args: Array, config: RNConfig) { const tasks = flatten(dependencies.map(dependency => [ () => promisify(dependency.config.commands.prelink || commandStub), - () => linkDependencyAndroid(project.android, dependency), - () => linkDependencyIOS(project.ios, dependency), - () => linkDependencyPlatforms(platforms, project, dependency), + () => linkDependency(platforms, project, dependency), () => promisify(dependency.config.commands.postlink || commandStub), ])); diff --git a/local-cli/link/pods/registerNativeModule.js b/local-cli/link/pods/registerNativeModule.js index 1032f244861228..37041cf78322c8 100644 --- a/local-cli/link/pods/registerNativeModule.js +++ b/local-cli/link/pods/registerNativeModule.js @@ -16,10 +16,10 @@ const findMarkedLinesInPodfile = require('./findMarkedLinesInPodfile'); const addPodEntry = require('./addPodEntry'); const savePodFile = require('./savePodFile'); -module.exports = function registerNativeModulePods(dependency, iOSProject) { +module.exports = function registerNativeModulePods(name, dependencyConfig, iOSProject) { const podLines = readPodfile(iOSProject.podfile); const linesToAddEntry = getLinesToAddEntry(podLines, iOSProject); - addPodEntry(podLines, linesToAddEntry, dependency.config.ios.podspec, dependency.name); + addPodEntry(podLines, linesToAddEntry, dependencyConfig.podspec, name); savePodFile(iOSProject.podfile, podLines); }; diff --git a/local-cli/link/unlink.js b/local-cli/link/unlink.js index 5c54526dfcc589..ed3772c4b45c39 100644 --- a/local-cli/link/unlink.js +++ b/local-cli/link/unlink.js @@ -10,16 +10,7 @@ const log = require('npmlog'); const getProjectDependencies = require('./getProjectDependencies'); -const unregisterDependencyAndroid = require('./android/unregisterNativeModule'); -const unregisterDependencyIOS = require('./ios/unregisterNativeModule'); -const unregisterDependencyPods = require('./pods/unregisterNativeModule'); -const isInstalledAndroid = require('./android/isInstalled'); -const isInstalledIOS = require('./ios/isInstalled'); -const isInstalledPods = require('./pods/isInstalled'); -const unlinkAssetsAndroid = require('./android/unlinkAssets'); -const unlinkAssetsIOS = require('./ios/unlinkAssets'); const getDependencyConfig = require('./getDependencyConfig'); -const compact = require('lodash').compact; const difference = require('lodash').difference; const filter = require('lodash').filter; const flatten = require('lodash').flatten; @@ -30,38 +21,17 @@ const promisify = require('./promisify'); log.heading = 'rnpm-link'; -const unlinkDependencyAndroid = (androidProject, dependency, packageName) => { - if (!androidProject || !dependency.android) { - return; - } - - const isInstalled = isInstalledAndroid(androidProject, packageName); - - if (!isInstalled) { - log.info(`Android module ${packageName} is not installed`); - return; - } - - log.info(`Unlinking ${packageName} android dependency`); - - unregisterDependencyAndroid(packageName, dependency.android, androidProject); +const unlinkDependency = (platforms, project, dependency, packageName, otherDependencies) => { - log.info(`Android module ${packageName} has been successfully unlinked`); -}; - -const unlinkDependencyPlatforms = (platforms, project, dependency, packageName) => { - - const ignorePlatforms = ['android', 'ios']; Object.keys(platforms || {}) - .filter(platform => ignorePlatforms.indexOf(platform) < 0) .forEach(platform => { if (!project[platform] || !dependency[platform]) { - return null; + return; } const linkConfig = platforms[platform] && platforms[platform].linkConfig && platforms[platform].linkConfig(); if (!linkConfig || !linkConfig.isInstalled || !linkConfig.unregister) { - return null; + return; } const isInstalled = linkConfig.isInstalled(project[platform], dependency[platform]); @@ -76,37 +46,14 @@ const unlinkDependencyPlatforms = (platforms, project, dependency, packageName) linkConfig.unregister( packageName, dependency[platform], - project[platform] + project[platform], + otherDependencies ); log.info(`Platform '${platform}' module ${dependency.name} has been successfully unlinked`); }); }; -const unlinkDependencyIOS = (iOSProject, dependency, packageName, iOSDependencies) => { - if (!iOSProject || !dependency.ios) { - return; - } - - const isIosInstalled = isInstalledIOS(iOSProject, dependency.ios); - const isPodInstalled = isInstalledPods(iOSProject, dependency.ios); - if (!isIosInstalled && !isPodInstalled) { - log.info(`iOS module ${packageName} is not installed`); - return; - } - - log.info(`Unlinking ${packageName} ios dependency`); - - if (isIosInstalled) { - unregisterDependencyIOS(dependency.ios, iOSProject, iOSDependencies); - } - else if (isPodInstalled) { - unregisterDependencyPods(dependency.ios, iOSProject); - } - - log.info(`iOS module ${packageName} has been successfully unlinked`); -}; - /** * Updates project and unlink specific dependency * @@ -143,13 +90,10 @@ function unlink(args, config) { const allDependencies = getDependencyConfig(config, getProjectDependencies()); const otherDependencies = filter(allDependencies, d => d.name !== packageName); - const iOSDependencies = compact(otherDependencies.map(d => d.config.ios)); const tasks = [ () => promisify(dependency.commands.preunlink || commandStub), - () => unlinkDependencyAndroid(project.android, dependency, packageName), - () => unlinkDependencyIOS(project.ios, dependency, packageName, iOSDependencies), - () => unlinkDependencyPlatforms(platforms, project, dependency, packageName), + () => unlinkDependency(platforms, project, dependency, packageName, otherDependencies), () => promisify(dependency.commands.postunlink || commandStub) ]; @@ -166,15 +110,16 @@ function unlink(args, config) { return Promise.resolve(); } - if (project.ios) { - log.info('Unlinking assets from ios project'); - unlinkAssetsIOS(assets, project.ios); - } - - if (project.android) { - log.info('Unlinking assets from android project'); - unlinkAssetsAndroid(assets, project.android.assetsPath); - } + Object.keys(platforms || {}) + .forEach(platform => { + const linkConfig = platforms[platform] && platforms[platform].linkConfig && platforms[platform].linkConfig(); + if (!linkConfig || !linkConfig.unlinkAssets) { + return; + } + + log.info(`Unlinking assets from ${platform} project`); + linkConfig.unlinkAssets(assets, project[platform]); + }); log.info( `${packageName} assets has been successfully unlinked from your project` From b1d8af48ae251f57bdcd55f89d8fc62aa9eca872 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Tue, 13 Feb 2018 07:04:00 -0800 Subject: [PATCH 010/267] Bump metro@0.26.0 Reviewed By: cpojer Differential Revision: D6976161 fbshipit-source-id: 0cf20f4b2372997a8aac41cc07a9bdd641a93ad4 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 22ecc1725b9951..fd029432790838 100644 --- a/package.json +++ b/package.json @@ -175,8 +175,8 @@ "graceful-fs": "^4.1.3", "inquirer": "^3.0.6", "lodash": "^4.17.5", - "metro": "^0.25.1", - "metro-core": "^0.25.1", + "metro": "^0.26.0", + "metro-core": "^0.26.0", "mime": "^1.3.4", "minimist": "^1.2.0", "mkdirp": "^0.5.1", From ad2d9e7fab4ea4c51c8c35f7bafe2dada4c29643 Mon Sep 17 00:00:00 2001 From: Paco Estevez Garcia Date: Tue, 13 Feb 2018 08:06:43 -0800 Subject: [PATCH 011/267] Forward VM version to inspector Reviewed By: bnham Differential Revision: D6938018 fbshipit-source-id: c79853ddf835acab86a16ebd539874d29d3aa60a --- React/Inspector/RCTInspector.h | 1 + React/Inspector/RCTInspector.mm | 9 +++++++-- React/Inspector/RCTInspectorPackagerConnection.m | 1 + .../java/com/facebook/react/bridge/Inspector.java | 8 +++++++- .../react/devsupport/InspectorPackagerConnection.java | 1 + ReactAndroid/src/main/jni/react/jni/JInspector.cpp | 8 ++++---- ReactAndroid/src/main/jni/react/jni/JInspector.h | 2 +- ReactCommon/jsinspector/InspectorInterfaces.cpp | 11 ++++++----- ReactCommon/jsinspector/InspectorInterfaces.h | 3 ++- 9 files changed, 30 insertions(+), 14 deletions(-) diff --git a/React/Inspector/RCTInspector.h b/React/Inspector/RCTInspector.h index 1fcba088e4502a..41bd146e003192 100644 --- a/React/Inspector/RCTInspector.h +++ b/React/Inspector/RCTInspector.h @@ -15,6 +15,7 @@ @interface RCTInspectorPage : NSObject @property (nonatomic, readonly) NSInteger id; @property (nonatomic, readonly) NSString *title; +@property (nonatomic, readonly) NSString *vm; @end @interface RCTInspector : NSObject diff --git a/React/Inspector/RCTInspector.mm b/React/Inspector/RCTInspector.mm index 1cc3d1d3a5b9b9..0bb83db45675ab 100644 --- a/React/Inspector/RCTInspector.mm +++ b/React/Inspector/RCTInspector.mm @@ -38,9 +38,11 @@ virtual void onDisconnect() override { @interface RCTInspectorPage () { NSInteger _id; NSString *_title; + NSString *_vm; } - (instancetype)initWithId:(NSInteger)id - title:(NSString *)title; + title:(NSString *)title + vm:(NSString *)vm; @end @interface RCTInspectorLocalConnection () { @@ -64,7 +66,8 @@ @implementation RCTInspector NSMutableArray *array = [NSMutableArray arrayWithCapacity:pages.size()]; for (size_t i = 0; i < pages.size(); i++) { RCTInspectorPage *pageWrapper = [[RCTInspectorPage alloc] initWithId:pages[i].id - title:@(pages[i].title.c_str())]; + title:@(pages[i].title.c_str()) + vm:@(pages[i].vm.c_str())]; [array addObject:pageWrapper]; } @@ -86,10 +89,12 @@ @implementation RCTInspectorPage - (instancetype)initWithId:(NSInteger)id title:(NSString *)title + vm:(NSString *)vm { if (self = [super init]) { _id = id; _title = title; + _vm = vm; } return self; } diff --git a/React/Inspector/RCTInspectorPackagerConnection.m b/React/Inspector/RCTInspectorPackagerConnection.m index cf1cd2abf557a3..1b2663403ce2e3 100644 --- a/React/Inspector/RCTInspectorPackagerConnection.m +++ b/React/Inspector/RCTInspectorPackagerConnection.m @@ -155,6 +155,7 @@ - (NSArray *)pages @"id": [@(page.id) stringValue], @"title": page.title, @"app": [[NSBundle mainBundle] bundleIdentifier], + @"vm": page.vm, @"isLastBundleDownloadSuccess": bundleStatus == nil ? [NSNull null] : @(bundleStatus.isLastBundleDownloadSuccess), diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/Inspector.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/Inspector.java index 372b9ad90d820a..9aebad6c7182ec 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/Inspector.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/Inspector.java @@ -51,6 +51,7 @@ private Inspector(HybridData hybridData) { public static class Page { private final int mId; private final String mTitle; + private final String mVM; public int getId() { return mId; @@ -60,6 +61,10 @@ public String getTitle() { return mTitle; } + public String getVM() { + return mVM; + } + @Override public String toString() { return "Page{" + @@ -69,9 +74,10 @@ public String toString() { } @DoNotStrip - private Page(int id, String title) { + private Page(int id, String title, String vm) { mId = id; mTitle = title; + mVM = vm; } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorPackagerConnection.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorPackagerConnection.java index 1176d38caf3ec5..8df47d9d3a076d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorPackagerConnection.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorPackagerConnection.java @@ -154,6 +154,7 @@ private JSONArray getPages() throws JSONException { jsonPage.put("id", String.valueOf(page.getId())); jsonPage.put("title", page.getTitle()); jsonPage.put("app", mPackageName); + jsonPage.put("vm", page.getVM()); jsonPage.put("isLastBundleDownloadSuccess", bundleStatus.isLastDownloadSucess); jsonPage.put("bundleUpdateTimestamp", bundleStatus.updateTimestamp); array.put(jsonPage); diff --git a/ReactAndroid/src/main/jni/react/jni/JInspector.cpp b/ReactAndroid/src/main/jni/react/jni/JInspector.cpp index 8e64ce1ad20ffd..47000279487ed7 100644 --- a/ReactAndroid/src/main/jni/react/jni/JInspector.cpp +++ b/ReactAndroid/src/main/jni/react/jni/JInspector.cpp @@ -28,9 +28,9 @@ class RemoteConnection : public IRemoteConnection { } -jni::local_ref JPage::create(int id, const std::string& title) { - static auto constructor = javaClassStatic()->getConstructor)>(); - return javaClassStatic()->newObject(constructor, id, jni::make_jstring(title)); +jni::local_ref JPage::create(int id, const std::string& title, const std::string& vm) { + static auto constructor = javaClassStatic()->getConstructor, jni::local_ref)>(); + return javaClassStatic()->newObject(constructor, id, jni::make_jstring(title), jni::make_jstring(vm)); } void JRemoteConnection::onMessage(const std::string& message) const { @@ -70,7 +70,7 @@ jni::local_ref> JInspector::getPages() { std::vector pages = inspector_->getPages(); auto array = jni::JArrayClass::newArray(pages.size()); for (size_t i = 0; i < pages.size(); i++) { - (*array)[i] = JPage::create(pages[i].id, pages[i].title); + (*array)[i] = JPage::create(pages[i].id, pages[i].title, pages[i].vm); } return array; } diff --git a/ReactAndroid/src/main/jni/react/jni/JInspector.h b/ReactAndroid/src/main/jni/react/jni/JInspector.h index c170fe59dd2e11..9e089687eb87e4 100644 --- a/ReactAndroid/src/main/jni/react/jni/JInspector.h +++ b/ReactAndroid/src/main/jni/react/jni/JInspector.h @@ -16,7 +16,7 @@ class JPage : public jni::JavaClass { public: static constexpr auto kJavaDescriptor = "Lcom/facebook/react/bridge/Inspector$Page;"; - static jni::local_ref create(int id, const std::string& title); + static jni::local_ref create(int id, const std::string& title, const std::string& vm); }; class JRemoteConnection : public jni::JavaClass { diff --git a/ReactCommon/jsinspector/InspectorInterfaces.cpp b/ReactCommon/jsinspector/InspectorInterfaces.cpp index f1fa2ed57a684e..bb20b8ad6b9472 100644 --- a/ReactCommon/jsinspector/InspectorInterfaces.cpp +++ b/ReactCommon/jsinspector/InspectorInterfaces.cpp @@ -11,6 +11,7 @@ #include #include +#include namespace facebook { namespace react { @@ -27,7 +28,7 @@ namespace { class InspectorImpl : public IInspector { public: - int addPage(const std::string& title, ConnectFunc connectFunc) override; + int addPage(const std::string& title, const std::string& vm, ConnectFunc connectFunc) override; void removePage(int pageId) override; std::vector getPages() const override; @@ -38,15 +39,15 @@ class InspectorImpl : public IInspector { private: mutable std::mutex mutex_; int nextPageId_{1}; - std::unordered_map titles_; + std::unordered_map> titles_; std::unordered_map connectFuncs_; }; -int InspectorImpl::addPage(const std::string& title, ConnectFunc connectFunc) { +int InspectorImpl::addPage(const std::string& title, const std::string& vm, ConnectFunc connectFunc) { std::lock_guard lock(mutex_); int pageId = nextPageId_++; - titles_[pageId] = title; + titles_[pageId] = std::make_tuple(title, vm); connectFuncs_[pageId] = std::move(connectFunc); return pageId; @@ -64,7 +65,7 @@ std::vector InspectorImpl::getPages() const { std::vector inspectorPages; for (auto& it : titles_) { - inspectorPages.push_back(InspectorPage{it.first, it.second}); + inspectorPages.push_back(InspectorPage{it.first, std::get<0>(it.second), std::get<1>(it.second)}); } return inspectorPages; diff --git a/ReactCommon/jsinspector/InspectorInterfaces.h b/ReactCommon/jsinspector/InspectorInterfaces.h index 0222501f3a043c..d62eab40117a36 100644 --- a/ReactCommon/jsinspector/InspectorInterfaces.h +++ b/ReactCommon/jsinspector/InspectorInterfaces.h @@ -25,6 +25,7 @@ class IDestructible { struct InspectorPage { const int id; const std::string title; + const std::string vm; }; /// IRemoteConnection allows the VM to send debugger messages to the client. @@ -52,7 +53,7 @@ class IInspector : public IDestructible { virtual ~IInspector() = 0; /// addPage is called by the VM to add a page to the list of debuggable pages. - virtual int addPage(const std::string& title, ConnectFunc connectFunc) = 0; + virtual int addPage(const std::string& title, const std::string& vm, ConnectFunc connectFunc) = 0; /// removePage is called by the VM to remove a page from the list of /// debuggable pages. From cc6d0937c37d2dc7e97a903f5fbf4fa40404e767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Tue, 13 Feb 2018 08:08:18 -0800 Subject: [PATCH 012/267] Add disabled tests to CircleCI config Summary: These tests have not run for one reason or another since the migration from Travis. They are not passing, and are commented out to avoid flagging new PRs as breaking. These tests need to be fixed and re-enabled ASAP. Closes https://github.com/facebook/react-native/pull/17959 Differential Revision: D6976781 Pulled By: hramos fbshipit-source-id: 712a09877d0597c12cafa741779b471680b7d2db --- .circleci/config.yml | 87 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 72 insertions(+), 15 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99fac87a3977c0..dc428d3a0b75af 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -205,13 +205,21 @@ aliases: command: | mkdir -p ~/react-native/reports/junit/ - - &run-objc_ios-tests - name: Objective-C iOS Test Suite + - &build-objc-ios-test-app + name: Build Objective-C iOS Test App command: ./scripts/objc-test-ios.sh + + - &run-objc-ios-tests + name: Objective-C iOS Test Suite + command: ./scripts/objc-test-ios.sh test + + - &build-objc-tvos-test-app + name: Build Objective-C tvOS Test App + command: ./scripts/objc-test-tvos.sh - &run-objc-tvos-tests name: Objective-C tvOS Test Suite - command: ./scripts/objc-test-tvos.sh + command: ./scripts/objc-test-tvos.sh test - &run-objc-ios-e2e-tests name: Objective-C iOS End-to-End Test Suite @@ -245,7 +253,7 @@ android_defaults: &android_defaults macos_defaults: &macos_defaults <<: *defaults macos: - xcode: "9.0" + xcode: "9.2.0" version: 2 jobs: @@ -317,29 +325,53 @@ jobs: - store_artifacts: path: ~/react-native/reports/junit + # Builds iOS test app + build_objc_ios_test_app: + <<: *macos_defaults + dependencies: + pre: + - xcrun instruments -w "iPhone 5s (11.1)" || true + steps: + - attach_workspace: + at: ~/react-native + + - run: *build-objc-ios-test-app + # Runs unit tests on iOS devices test_objc_ios: <<: *macos_defaults dependencies: pre: - - xcrun instruments -w "iPhone 5s (10.3.1)" || true + - xcrun instruments -w "iPhone 5s (11.1)" || true steps: - attach_workspace: at: ~/react-native - - run: *run-objc_ios-tests + - run: *run-objc-ios-tests - store_test_results: path: ~/react-native/reports/junit - store_artifacts: path: ~/react-native/reports/junit + # Builds tvOS test app + build_objc_tvos_test_app: + <<: *macos_defaults + dependencies: + pre: + - xcrun instruments -w "Apple TV 1080p (11.1)" || true + steps: + - attach_workspace: + at: ~/react-native + + - run: *build-objc-tvos-test-app + # Runs unit tests on tvOS devices test_objc_tvos: <<: *macos_defaults dependencies: pre: - - xcrun instruments -w "Apple TV 1080p (10.0)" || true + - xcrun instruments -w "Apple TV 1080p (11.1)" || true steps: - attach_workspace: at: ~/react-native @@ -356,7 +388,7 @@ jobs: <<: *macos_defaults dependencies: pre: - - xcrun instruments -w "iPhone 5s (10.3.1)" || true + - xcrun instruments -w "iPhone 5s (11.1)" || true steps: - attach_workspace: at: ~/react-native @@ -370,9 +402,7 @@ jobs: # Checks podspec test_podspec: - <<: *defaults - macos: - xcode: "9.0" + <<: *macos_defaults steps: - attach_workspace: at: ~/react-native @@ -537,7 +567,7 @@ jobs: workflows: version: 2 - test: + tests: jobs: # Checkout repo and run Yarn @@ -566,12 +596,12 @@ workflows: requires: - checkout_code - # Test iOS & tvOS - - test_objc_ios: + # Build iOS & tvOS test apps + - build_objc_ios_test_app: filters: *filter-ignore-gh-pages requires: - checkout_code - - test_objc_tvos: + - build_objc_tvos_test_app: filters: *filter-ignore-gh-pages requires: - checkout_code @@ -606,3 +636,30 @@ workflows: - publish_npm_package: requires: - approve_publish_npm_package + + # These tests are flaky or are yet to be fixed. They are placed on their own + # workflow to avoid marking benign PRs as broken. + # To run them, uncomment the entire block and open a PR (do not merge). + # Once a test is fixed, move the test definition to the 'tests' workflow. + # disabled_tests: + # jobs: + # # Checkout repo and run Yarn (pre-req, should succeed) + # - checkout_code: + # filters: *filter-ignore-gh-pages + + # # The following were DISABLED because they have not run since + # # the migration from Travis, and they have broken since then, + # # Test iOS & tvOS + # - test_objc_ios: + # filters: *filter-ignore-gh-pages + # requires: + # - checkout_code + # - test_objc_tvos: + # filters: *filter-ignore-gh-pages + # requires: + # - checkout_code + # # CocoaPods + # - test_podspec: + # filters: *filter-ignore-gh-pages + # requires: + # - checkout_code From e53a8f7097965f38d87eade1407661bc63adc68e Mon Sep 17 00:00:00 2001 From: Yao Bin Then Date: Tue, 13 Feb 2018 08:51:12 -0800 Subject: [PATCH 013/267] =?UTF-8?q?=E2=9C=A8=20Colorize=20filenames=20with?= =?UTF-8?q?=20conflicts=20when=20upgrading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Visually show files merged with conflicts when running `react-native-git-upgrade`. After running `react-native-git-upgrade`, files with conflicts are not immediately recognised visually. With this patch, files with conflicts are highlighted in red. ![image](https://user-images.githubusercontent.com/771989/36086385-fc183baa-1006-11e8-8862-0867b82b7ec1.png) [CLI] [ENHANCEMENT] [react-native-git-upgrade/cliEntry.js] - Print files with conflicts in red. Closes https://github.com/facebook/react-native/pull/17947 Differential Revision: D6977042 Pulled By: hramos fbshipit-source-id: 3c67561ea3acbee227a7a0cf42857af4fb75c75c --- react-native-git-upgrade/cliEntry.js | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/react-native-git-upgrade/cliEntry.js b/react-native-git-upgrade/cliEntry.js index 1bb36cc63d5224..757852e61bbc67 100644 --- a/react-native-git-upgrade/cliEntry.js +++ b/react-native-git-upgrade/cliEntry.js @@ -33,9 +33,10 @@ log.heading = 'git-upgrade'; /** * Promisify the callback-based shelljs function exec * @param logOutput If true, log the stdout of the command. + * @param logger Custom logger to modify the output, invoked with the data and the stream. * @returns {Promise} */ -function exec(command, logOutput) { +function exec(command, logOutput, logger = null) { return new Promise((resolve, reject) => { let stderr, stdout = ''; const child = shell.exec(command, {async: true, silent: true}); @@ -43,13 +44,21 @@ function exec(command, logOutput) { child.stdout.on('data', data => { stdout += data; if (logOutput) { - process.stdout.write(data); + if (logger) { + logger(data, process.stdout); + } else { + process.stdout.write(data); + } } }); child.stderr.on('data', data => { stderr += data; - process.stderr.write(data); + if (logger) { + logger(data, process.stderr); + } else { + process.stderr.write(data); + } }); child.on('exit', (code, signal) => { @@ -359,7 +368,13 @@ async function run(requestedVersion, cliArgs) { try { log.info('Apply the patch'); - await exec(`git apply --3way ${patchPath}`, true); + await exec(`git apply --3way ${patchPath}`, true, (data, stream) => { + if (data.indexOf('conflicts') >= 0 || data.startsWith('U ')) { + stream.write(`\x1b[31m${data}\x1b[0m`); + } else { + stream.write(data); + } + }); } catch (err) { log.warn( 'The upgrade process succeeded but there might be conflicts to be resolved. ' + From 03e6d3efb43a9d5dc9a98b253f3210932503f2d6 Mon Sep 17 00:00:00 2001 From: Evan J Brunner Date: Tue, 13 Feb 2018 10:41:29 -0800 Subject: [PATCH 014/267] RNTester http_server send cookie fix Summary: Signed-off-by: Evan J Brunner Motivation can be found in #17899 This `RNTester/js/http_test_server.js` is part of a internal websocket test suite / devtool. Can be tested with `curl -D - localhost:5556` observing that the `Set-Cookie: wstest=OK; Path=\` header is present, and the service throws no exceptions.. etc [INTERNAL][MINOR][./RNTester/js/http_test_server.js] - fixed set cookie with connect framework Closes https://github.com/facebook/react-native/pull/17900 Differential Revision: D6977087 Pulled By: hramos fbshipit-source-id: af6205343fccf69c57e0c26a85a5b04d61288a23 --- RNTester/js/http_test_server.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/RNTester/js/http_test_server.js b/RNTester/js/http_test_server.js index 7af1f052eb6c5d..c2222121770132 100755 --- a/RNTester/js/http_test_server.js +++ b/RNTester/js/http_test_server.js @@ -30,11 +30,7 @@ const app = connect(); app.use(function(req, res) { console.log('received request'); - const cookieOptions = { - //httpOnly: true, // the cookie is not accessible by the user (javascript,...) - secure: false, // allow HTTP - }; - res.cookie('wstest', 'OK', cookieOptions); + res.setHeader('Set-Cookie', ['wstest=OK; Path=/']); res.end('Cookie has been set!\n'); }); From 331cc791ec676a5575faf4515b2b5e29e1a7bf4e Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 13 Feb 2018 13:27:23 -0800 Subject: [PATCH 015/267] Extend Navigation to support "is_fabric" param from native Reviewed By: fkgozali Differential Revision: D6955828 fbshipit-source-id: 1a77b652a7e372acf961a0b0772ae93a999b90b1 --- ReactAndroid/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index e15aff52a8f99e..fdea9de2db7eb1 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -297,7 +297,7 @@ dependencies { testCompile "org.mockito:mockito-core:${MOCKITO_CORE_VERSION}" testCompile "org.easytesting:fest-assert-core:${FEST_ASSERT_CORE_VERSION}" testCompile "org.robolectric:robolectric:${ROBOLECTRIC_VERSION}" - + androidTestCompile fileTree(dir: 'src/main/third-party/java/buck-android-support/', include: ['*.jar']) androidTestCompile 'com.android.support.test:runner:0.3' androidTestCompile "org.mockito:mockito-core:${MOCKITO_CORE_VERSION}" From 74e54cbcc408a8bbdd70f47cc8728d30cdc0d299 Mon Sep 17 00:00:00 2001 From: Stein Strindhaug Date: Tue, 13 Feb 2018 13:31:50 -0800 Subject: [PATCH 016/267] Fix: incorrect line-height calculation Summary: There seems to be a rounding error in the android code for line height, so that for some fonts and at some combinations of line height and font size the actual height of the elements seems to be slightly too short. I've identified one issue that I mentioned here https://github.com/facebook/react-native/issues/10712#issuecomment-359382137 that could at least explain some of the problem. That when the line-height minus the original sum of the absolute value of top and bottom from the metrics, happens to be an odd number, the division by two causes a rounding error of 1, so that the actual line height is 1pt less than it should. The fix uses floating point division instead of integer division, and rounds (arbitrarily) the negative values up and the positive values down so that the total is still the correct for odd numbers. It turns out that only ascent and descent is used to give the actual line-height between lines in the same text-element. The top and bottom values are only used for padding the top and bottom of the text. So when the line-height is greater than the font size and the extra padding this PR sets the ascent and descent to the same value as the top and bottom respectively. I've renamed the shouldIncreaseAllMetricsProportionally test to evenLineHeightShouldIncreaseAllMetricsProportionally and added an extra assertion to check that bottom-top still equals the line height. Added another test oddLineHeightShouldAlsoWork that is similar but uses an odd number for the line height to test that it still works with odd numbers. This test only uses the sum of the values so that it's indifferent to what value the implementation chooses to round up or down. Improvement on https://github.com/facebook/react-native/pull/16448 Fix line-height calculation on Android. | Before | After | | ------------- |-------------| | ![without fix](https://user-images.githubusercontent.com/2144849/36150230-4404a0cc-10c3-11e8-8880-4ab84339c741.png) | ![actual fix](https://user-images.githubusercontent.com/2144849/36156620-eb496d0e-10d7-11e8-8bd1-1cb536a38fbf.png) | (All three columns have font size 16 and lineHeight: 32. The first one is has fixed height 9*32, the second is 9 Text elements, the last is one text element with lots of text limited to 9 lines, so they should be the same height. ) Closes https://github.com/facebook/react-native/pull/17952 Differential Revision: D6980333 Pulled By: hramos fbshipit-source-id: 0a501358cfbf7f139fca46056d0d972b1daf6ae3 --- .../views/text/CustomLineHeightSpan.java | 10 ++++---- .../views/text/CustomLineHeightSpanTest.java | 23 ++++++++++++++++--- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java index 18645e56df5736..abba786b1bd44d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java @@ -55,10 +55,12 @@ public void chooseHeight( // Show proportionally additional ascent / top & descent / bottom final int additional = mHeight - (-fm.top + fm.bottom); - fm.top -= additional / 2; - fm.ascent -= additional / 2; - fm.descent += additional / 2; - fm.bottom += additional / 2; + // Round up for the negative values and down for the positive values (arbritary choice) + // So that bottom - top equals additional even if it's an odd number. + fm.top -= Math.ceil(additional / 2.0f); + fm.bottom += Math.floor(additional / 2.0f); + fm.ascent = fm.top; + fm.descent = fm.bottom; } } } diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java index 5d3919105ae232..eadb7d3544bcb5 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java @@ -13,7 +13,7 @@ public class CustomLineHeightSpanTest { @Test - public void shouldIncreaseAllMetricsProportionally() { + public void evenLineHeightShouldIncreaseAllMetricsProportionally() { CustomLineHeightSpan customLineHeightSpan = new CustomLineHeightSpan(22); Paint.FontMetricsInt fm = new Paint.FontMetricsInt(); fm.top = -10; @@ -21,10 +21,27 @@ public void shouldIncreaseAllMetricsProportionally() { fm.descent = 5; fm.bottom = 10; customLineHeightSpan.chooseHeight("Hi", 0, 2, 0, 0, fm); + // Since line height is even it should be equally added to top and bottom. assertThat(fm.top).isEqualTo(-11); - assertThat(fm.ascent).isEqualTo(-6); - assertThat(fm.descent).isEqualTo(6); + assertThat(fm.ascent).isEqualTo(-11); + assertThat(fm.descent).isEqualTo(11); assertThat(fm.bottom).isEqualTo(11); + assertThat(fm.bottom - fm.top).isEqualTo(22); + } + + @Test + public void oddLineHeightShouldAlsoWork() { + CustomLineHeightSpan customLineHeightSpan = new CustomLineHeightSpan(23); + Paint.FontMetricsInt fm = new Paint.FontMetricsInt(); + fm.top = -10; + fm.ascent = -5; + fm.descent = 5; + fm.bottom = 10; + customLineHeightSpan.chooseHeight("Hi", 0, 2, 0, 0, fm); + // Only test that the sum is correct so the implementation + // is free to add the odd value either on top or bottom. + assertThat(fm.descent - fm.ascent).isEqualTo(23); + assertThat(fm.bottom - fm.top).isEqualTo(23); } @Test From d220118dbd7a936942f0cd3db69bf03f39333d6c Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Tue, 13 Feb 2018 14:04:49 -0800 Subject: [PATCH 017/267] Freeze UTFSequence Summary: Don't want anyone accidentally mutating it. Also make deepFreezeAndThrowOnMutationInDev easier to use with nice flow typing. Reviewed By: yungsters Differential Revision: D6974089 fbshipit-source-id: 0f90e7939cb726893fa353a4f2a6bbba701205bc --- Libraries/UTFSequence.js | 6 ++++-- Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Libraries/UTFSequence.js b/Libraries/UTFSequence.js index 262dd4e9bbf68d..9286eed202eefe 100644 --- a/Libraries/UTFSequence.js +++ b/Libraries/UTFSequence.js @@ -13,6 +13,8 @@ 'use strict'; +const deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationInDev'); + /** * A collection of Unicode sequences for various characters and emoji. * @@ -20,7 +22,7 @@ * - Source code should be limitted to ASCII. * - Less chance of typos. */ -const UTFSequence = { +const UTFSequence = deepFreezeAndThrowOnMutationInDev({ MIDDOT: '\u00B7', // normal middle dot: · MIDDOT_SP: '\u00A0\u00B7\u00A0', //  ·  MIDDOT_KATAKANA: '\u30FB', // katakana middle dot @@ -30,6 +32,6 @@ const UTFSequence = { NDASH_SP: '\u00A0\u2013\u00A0', //  –  NBSP: '\u00A0', // non-breaking space:   PIZZA: '\uD83C\uDF55', -}; +}); module.exports = UTFSequence; diff --git a/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js b/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js index 9ab2cc4b16a000..4e651b110e14a7 100644 --- a/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +++ b/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js @@ -29,13 +29,13 @@ * Freezing the object and adding the throw mechanism is expensive and will * only be used in DEV. */ -function deepFreezeAndThrowOnMutationInDev(object: Object) { +function deepFreezeAndThrowOnMutationInDev(object: T): T { if (__DEV__) { if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) { - return; + return object; } var keys = Object.keys(object); @@ -58,6 +58,7 @@ function deepFreezeAndThrowOnMutationInDev(object: Object) { } } } + return object; } function throwOnImmutableMutation(key, value) { From d06e143420462344ea6fc21c0446db972f747404 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Tue, 13 Feb 2018 20:20:39 -0800 Subject: [PATCH 018/267] Bundle download progress on Android Summary: Android equivalent of #15066 Tested that download progress shows up properly when reloading the app. [ANDROID] [FEATURE] [DevSupport] - Show bundle download progress on Android Closes https://github.com/facebook/react-native/pull/17809 Differential Revision: D6982823 Pulled By: hramos fbshipit-source-id: da01e42b8ebb1c603f4407f6bafd68e0b6b3ecba --- .../react/devsupport/BundleDownloader.java | 17 +++-- .../devsupport/MultipartStreamReader.java | 62 ++++++++++++++++--- .../devsupport/MultipartStreamReaderTest.java | 41 ++++++------ 3 files changed, 88 insertions(+), 32 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java index 6cf6cb14eba3bc..a5501081ac90f8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java @@ -146,13 +146,13 @@ public void onResponse(Call call, final Response response) throws IOException { if (match.find()) { String boundary = match.group(1); MultipartStreamReader bodyReader = new MultipartStreamReader(response.body().source(), boundary); - boolean completed = bodyReader.readAllParts(new MultipartStreamReader.ChunkCallback() { + boolean completed = bodyReader.readAllParts(new MultipartStreamReader.ChunkListener() { @Override - public void execute(Map headers, Buffer body, boolean finished) throws IOException { + public void onChunkComplete(Map headers, Buffer body, boolean isLastChunk) throws IOException { // This will get executed for every chunk of the multipart response. The last chunk - // (finished = true) will be the JS bundle, the other ones will be progress events + // (isLastChunk = true) will be the JS bundle, the other ones will be progress events // encoded as JSON. - if (finished) { + if (isLastChunk) { // The http status code for each separate chunk is in the X-Http-Status header. int status = response.code(); if (headers.containsKey("X-Http-Status")) { @@ -184,6 +184,15 @@ public void execute(Map headers, Buffer body, boolean finished) } } } + @Override + public void onChunkProgress(Map headers, long loaded, long total) throws IOException { + if ("application/javascript".equals(headers.get("Content-Type"))) { + callback.onProgress( + "Downloading JavaScript bundle", + (int) (loaded / 1024), + (int) (total / 1024)); + } + } }); if (!completed) { callback.onFailure(new DebugServerException( diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java index efffbae8cccabe..7a661eb031ecee 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java @@ -26,9 +26,18 @@ public class MultipartStreamReader { private final BufferedSource mSource; private final String mBoundary; - - public interface ChunkCallback { - void execute(Map headers, Buffer body, boolean done) throws IOException; + private long mLastProgressEvent; + + public interface ChunkListener { + /** + * Invoked when a chunk of a multipart response is fully downloaded. + */ + void onChunkComplete(Map headers, Buffer body, boolean isLastChunk) throws IOException; + + /** + * Invoked as bytes of the current chunk are read. + */ + void onChunkProgress(Map headers, long loaded, long total) throws IOException; } public MultipartStreamReader(BufferedSource source, String boundary) { @@ -55,34 +64,50 @@ private Map parseHeaders(Buffer data) { return headers; } - private void emitChunk(Buffer chunk, boolean done, ChunkCallback callback) throws IOException { + private void emitChunk(Buffer chunk, boolean done, ChunkListener listener) throws IOException { ByteString marker = ByteString.encodeUtf8(CRLF + CRLF); long indexOfMarker = chunk.indexOf(marker); if (indexOfMarker == -1) { - callback.execute(null, chunk, done); + listener.onChunkComplete(null, chunk, done); } else { Buffer headers = new Buffer(); Buffer body = new Buffer(); chunk.read(headers, indexOfMarker); chunk.skip(marker.size()); chunk.readAll(body); - callback.execute(parseHeaders(headers), body, done); + listener.onChunkComplete(parseHeaders(headers), body, done); + } + } + + private void emitProgress(Map headers, long contentLength, boolean isFinal, ChunkListener listener) throws IOException { + if (headers == null || listener == null) { + return; + } + + long currentTime = System.currentTimeMillis(); + if (currentTime - mLastProgressEvent > 16 || isFinal) { + mLastProgressEvent = currentTime; + long headersContentLength = headers.get("Content-Length") != null ? Long.parseLong(headers.get("Content-Length")) : 0; + listener.onChunkProgress(headers, contentLength, headersContentLength); } } /** - * Reads all parts of the multipart response and execute the callback for each chunk received. - * @param callback Callback executed when a chunk is received + * Reads all parts of the multipart response and execute the listener for each chunk received. + * @param listener Listener invoked when chunks are received. * @return If the read was successful */ - public boolean readAllParts(ChunkCallback callback) throws IOException { + public boolean readAllParts(ChunkListener listener) throws IOException { ByteString delimiter = ByteString.encodeUtf8(CRLF + "--" + mBoundary + CRLF); ByteString closeDelimiter = ByteString.encodeUtf8(CRLF + "--" + mBoundary + "--" + CRLF); + ByteString headersDelimiter = ByteString.encodeUtf8(CRLF + CRLF); int bufferLen = 4 * 1024; long chunkStart = 0; long bytesSeen = 0; Buffer content = new Buffer(); + Map currentHeaders = null; + long currentHeadersLength = 0; while (true) { boolean isCloseDelimiter = false; @@ -98,6 +123,20 @@ public boolean readAllParts(ChunkCallback callback) throws IOException { if (indexOfDelimiter == -1) { bytesSeen = content.size(); + + if (currentHeaders == null) { + long indexOfHeaders = content.indexOf(headersDelimiter, searchStart); + if (indexOfHeaders >= 0) { + mSource.read(content, indexOfHeaders); + Buffer headers = new Buffer(); + content.copyTo(headers, searchStart, indexOfHeaders - searchStart); + currentHeadersLength = headers.size() + headersDelimiter.size(); + currentHeaders = parseHeaders(headers); + } + } else { + emitProgress(currentHeaders, content.size() - currentHeadersLength, false, listener); + } + long bytesRead = mSource.read(content, bufferLen); if (bytesRead <= 0) { return false; @@ -113,7 +152,10 @@ public boolean readAllParts(ChunkCallback callback) throws IOException { Buffer chunk = new Buffer(); content.skip(chunkStart); content.read(chunk, length); - emitChunk(chunk, isCloseDelimiter, callback); + emitProgress(currentHeaders, chunk.size() - currentHeadersLength, true, listener); + emitChunk(chunk, isCloseDelimiter, listener); + currentHeaders = null; + currentHeadersLength = 0; } else { content.skip(chunkEnd); } diff --git a/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java b/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java index 08089511f7bfe1..e304694319b899 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java @@ -24,14 +24,19 @@ @RunWith(RobolectricTestRunner.class) public class MultipartStreamReaderTest { - class CallCountTrackingChunkCallback implements MultipartStreamReader.ChunkCallback { + class CallCountTrackingChunkCallback implements MultipartStreamReader.ChunkListener { private int mCount = 0; @Override - public void execute(Map headers, Buffer body, boolean done) throws IOException { + public void onChunkComplete(Map headers, Buffer body, boolean done) throws IOException { mCount++; } + @Override + public void onChunkProgress(Map headers, long loaded, long total) throws IOException { + + } + public int getCallCount() { return mCount; } @@ -41,12 +46,12 @@ public int getCallCount() { public void testSimpleCase() throws IOException { ByteString response = ByteString.encodeUtf8( "preable, should be ignored\r\n" + - "--sample_boundary\r\n" + - "Content-Type: application/json; charset=utf-8\r\n" + - "Content-Length: 2\r\n\r\n" + - "{}\r\n" + - "--sample_boundary--\r\n" + - "epilogue, should be ignored"); + "--sample_boundary\r\n" + + "Content-Type: application/json; charset=utf-8\r\n" + + "Content-Length: 2\r\n\r\n" + + "{}\r\n" + + "--sample_boundary--\r\n" + + "epilogue, should be ignored"); Buffer source = new Buffer(); source.write(response); @@ -55,8 +60,8 @@ public void testSimpleCase() throws IOException { CallCountTrackingChunkCallback callback = new CallCountTrackingChunkCallback() { @Override - public void execute(Map headers, Buffer body, boolean done) throws IOException { - super.execute(headers, body, done); + public void onChunkComplete(Map headers, Buffer body, boolean done) throws IOException { + super.onChunkComplete(headers, body, done); assertThat(done).isTrue(); assertThat(headers.get("Content-Type")).isEqualTo("application/json; charset=utf-8"); @@ -89,8 +94,8 @@ public void testMultipleParts() throws IOException { CallCountTrackingChunkCallback callback = new CallCountTrackingChunkCallback() { @Override - public void execute(Map headers, Buffer body, boolean done) throws IOException { - super.execute(headers, body, done); + public void onChunkComplete(Map headers, Buffer body, boolean done) throws IOException { + super.onChunkComplete(headers, body, done); assertThat(done).isEqualTo(getCallCount() == 3); assertThat(body.readUtf8()).isEqualTo(String.valueOf(getCallCount())); @@ -122,12 +127,12 @@ public void testNoDelimiter() throws IOException { public void testNoCloseDelimiter() throws IOException { ByteString response = ByteString.encodeUtf8( "preable, should be ignored\r\n" + - "--sample_boundary\r\n" + - "Content-Type: application/json; charset=utf-8\r\n" + - "Content-Length: 2\r\n\r\n" + - "{}\r\n" + - "--sample_boundary\r\n" + - "incomplete message..."); + "--sample_boundary\r\n" + + "Content-Type: application/json; charset=utf-8\r\n" + + "Content-Length: 2\r\n\r\n" + + "{}\r\n" + + "--sample_boundary\r\n" + + "incomplete message..."); Buffer source = new Buffer(); source.write(response); From 4761d5a83e707e0ed651f02a9e02fc5d66b1869a Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Tue, 13 Feb 2018 22:16:39 -0800 Subject: [PATCH 019/267] add BULLET and BULLET_SP Reviewed By: TheSavior Differential Revision: D6983446 fbshipit-source-id: c8ce4b1c7836654910db84c9cd4b6d0bcec8ae27 --- Libraries/UTFSequence.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/UTFSequence.js b/Libraries/UTFSequence.js index 9286eed202eefe..cf5ad295af328f 100644 --- a/Libraries/UTFSequence.js +++ b/Libraries/UTFSequence.js @@ -23,6 +23,8 @@ const deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationI * - Less chance of typos. */ const UTFSequence = deepFreezeAndThrowOnMutationInDev({ + BULLET: '\u2022', // bullet: • + BULLET_SP: '\u00A0\u2022\u00A0', //  •  MIDDOT: '\u00B7', // normal middle dot: · MIDDOT_SP: '\u00A0\u00B7\u00A0', //  ·  MIDDOT_KATAKANA: '\u30FB', // katakana middle dot From e165d0dcf0942918163589c6cf9da57f2299f850 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 13 Feb 2018 22:26:37 -0800 Subject: [PATCH 020/267] allow installing extra JS binding via the bridge Reviewed By: mdvacca Differential Revision: D6957397 fbshipit-source-id: 172905861fbb1c9ed45149e33b406c28ad616cd7 --- React/CxxBridge/RCTCxxBridge.mm | 12 ++++++++++++ React/CxxBridge/RCTCxxBridgeDelegate.h | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index 1fbb2fd43032d7..4b2a89175100a1 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -515,6 +515,8 @@ - (void)_initializeBridge:(std::shared_ptr)executorFactory std::make_unique("true")); } #endif + + [self installExtraJSBinding]; } RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @""); @@ -609,6 +611,16 @@ - (void)registerExtraModules RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @""); } +- (void)installExtraJSBinding +{ + if ([self.delegate conformsToProtocol:@protocol(RCTCxxBridgeDelegate)]) { + id cxxDelegate = (id) self.delegate; + if ([cxxDelegate respondsToSelector:@selector(installExtraJSBinding:)]) { + [cxxDelegate installExtraJSBinding:self.jsContextRef]; + } + } +} + - (void)_initModules:(NSArray> *)modules withDispatchGroup:(dispatch_group_t)dispatchGroup lazilyDiscovered:(BOOL)lazilyDiscovered diff --git a/React/CxxBridge/RCTCxxBridgeDelegate.h b/React/CxxBridge/RCTCxxBridgeDelegate.h index ad7fc3d45b2a75..55bff5adadc15c 100644 --- a/React/CxxBridge/RCTCxxBridgeDelegate.h +++ b/React/CxxBridge/RCTCxxBridgeDelegate.h @@ -10,6 +10,7 @@ #include #import +#import namespace facebook { namespace react { @@ -32,4 +33,11 @@ class JSExecutorFactory; */ - (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge; +@optional + +/** + * Experimental: Perform installation of extra JS binding on the given JS context, as appropriate. + */ +- (void)installExtraJSBinding:(JSGlobalContextRef)jsContextRef; + @end From 1aeb9250bd817579ba8edc3bf2bb1217e22b24b9 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 13 Feb 2018 22:26:39 -0800 Subject: [PATCH 021/267] Add JS binding for FabricUIManager - iOS Reviewed By: sebmarkbage Differential Revision: D6934518 fbshipit-source-id: 1f626f79a74fb199925644e8b16238aa17d40e1f --- React/Fabric/RCTFabricUIManager.h | 31 +++++++++++++++-- React/Fabric/RCTFabricUIManager.mm | 56 +++++++++++++++++------------- 2 files changed, 61 insertions(+), 26 deletions(-) diff --git a/React/Fabric/RCTFabricUIManager.h b/React/Fabric/RCTFabricUIManager.h index 2228d102990059..a1e5b5ed762b74 100644 --- a/React/Fabric/RCTFabricUIManager.h +++ b/React/Fabric/RCTFabricUIManager.h @@ -10,8 +10,35 @@ #import #import -#import +#import +#import -@interface RCTFabricUIManager : NSObject +@class RCTShadowView; + +/** + * The RCTFabricUIManager is the module responsible for updating the view hierarchy. + */ +@interface RCTFabricUIManager : NSObject + +- (RCTShadowView *)createNode:(nonnull NSNumber *)reactTag + viewName:(NSString *)viewName + rootTag:(nonnull NSNumber *)rootTag + props:(NSDictionary *)props + instanceHandle:(void *)instanceHandle; + +- (RCTShadowView *)cloneNode:(RCTShadowView *)node; +- (RCTShadowView *)cloneNodeWithNewChildren:(RCTShadowView *)node; +- (RCTShadowView *)cloneNodeWithNewProps:(RCTShadowView *)node + newProps:(NSDictionary *)props; +- (RCTShadowView *)cloneNodeWithNewChildrenAndProps:(RCTShadowView *)node + newProps:(NSDictionary *)props; +- (void)appendChild:(RCTShadowView *)parentNode + childNode:(RCTShadowView *)childNode; + +- (NSMutableArray *)createChildSet:(nonnull NSNumber *)rootTag; +- (void)appendChildToSet:(NSMutableArray *)childSet + childNode:(RCTShadowView *)childNode; +- (void)completeRoot:(nonnull NSNumber *)rootTag + childSet:(NSArray *)childSet; @end diff --git a/React/Fabric/RCTFabricUIManager.mm b/React/Fabric/RCTFabricUIManager.mm index e140aa60c3301d..d8a754b061d084 100644 --- a/React/Fabric/RCTFabricUIManager.mm +++ b/React/Fabric/RCTFabricUIManager.mm @@ -12,55 +12,63 @@ // This file contains experimental placeholders, nothing is finalized. @implementation RCTFabricUIManager -@synthesize bridge = _bridge; - -RCT_EXPORT_MODULE() - -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createNode:(int)reactTag - viewName:(NSString *)viewName - rootTag:(int)rootTag - props:(NSDictionary *)props - instanceHandle:(int)instanceHandleID) +- (void)dealloc { - return @0; } -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNode:(int)nodeID) +- (void)invalidate { - return @0; } -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildren:(int)nodeID) +- (RCTShadowView *)createNode:(nonnull NSNumber *)reactTag + viewName:(NSString *)viewName + rootTag:(nonnull NSNumber *)rootTag + props:(NSDictionary *)props + instanceHandle:(void *)instanceHandle { - return @0; + return nil; } -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewProps:(int)nodeID newProps:(NSDictionary *)newProps) +- (RCTShadowView *)cloneNode:(RCTShadowView *)node { - return @0; + return nil; } - -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildrenAndProps:(int)nodeID newProps:(NSDictionary *)newProps) +- (RCTShadowView *)cloneNodeWithNewChildren:(RCTShadowView *)node { - return @0; + return nil; } -RCT_EXPORT_METHOD(appendChild:(int)parentNodeID child:(int)childNodeID) +- (RCTShadowView *)cloneNodeWithNewProps:(RCTShadowView *)node + newProps:(NSDictionary *)props +{ + return nil; +} +- (RCTShadowView *)cloneNodeWithNewChildrenAndProps:(RCTShadowView *)node + newProps:(NSDictionary *)props +{ + return nil; +} +- (void)appendChild:(RCTShadowView *)parentNode + childNode:(RCTShadowView *)childNode { } -RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createChildSet) +- (NSMutableArray *)createChildSet:(nonnull NSNumber *)rootTag { - return @0; + return [NSMutableArray array]; } -RCT_EXPORT_METHOD(appendChildToSet:(int)childSetID child:(int)childNodeID) +- (void)appendChildToSet:(NSMutableArray *)childSet + childNode:(RCTShadowView *)childNode { + [childSet addObject:childNode]; } -RCT_EXPORT_METHOD(completeRoot:(int)rootTag childSet:(int)childSetID) +- (void)completeRoot:(nonnull NSNumber *)rootTag + childSet:(NSArray *)childSet { + } @end From 5f48bd84aa7c9c36d3b3c403fd55441eed952572 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 13 Feb 2018 22:26:43 -0800 Subject: [PATCH 022/267] iOS: allow getting an instance of a js-bound module via the bridge Reviewed By: sebmarkbage Differential Revision: D6982785 fbshipit-source-id: 7bbcc5416e1d1a3a577328349a7c18af5c0f8577 --- React/Base/RCTBridge.h | 5 +++++ React/Base/RCTBridge.m | 5 +++++ React/CxxBridge/RCTCxxBridge.mm | 12 ++++++++++++ React/CxxBridge/RCTCxxBridgeDelegate.h | 5 +++++ React/Fabric/RCTFabricUIManager.h | 6 ++++++ React/Fabric/RCTFabricUIManager.mm | 9 +++++++++ 6 files changed, 42 insertions(+) diff --git a/React/Base/RCTBridge.h b/React/Base/RCTBridge.h index 4944ce711c246b..0ddce95bec1e4a 100644 --- a/React/Base/RCTBridge.h +++ b/React/Base/RCTBridge.h @@ -168,6 +168,11 @@ RCT_EXTERN NSString *RCTBridgeModuleNameForClass(Class bridgeModuleClass); */ - (BOOL)moduleIsInitialized:(Class)moduleClass; +/** + * Retrieve an extra module that gets bound to the JS context, if any. + */ +- (id)jsBoundExtraModuleForClass:(Class)moduleClass; + /** * All registered bridge module classes. */ diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index 0b02e2380365ee..da8e40b6c4314e 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -251,6 +251,11 @@ - (BOOL)moduleIsInitialized:(Class)moduleClass return [self.batchedBridge moduleIsInitialized:moduleClass]; } +- (id)jsBoundExtraModuleForClass:(Class)moduleClass +{ + return [self.batchedBridge jsBoundExtraModuleForClass:moduleClass]; +} + - (void)reload { #if RCT_ENABLE_INSPECTOR diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index 4b2a89175100a1..4c958b83b54f2f 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -454,6 +454,18 @@ - (BOOL)moduleIsInitialized:(Class)moduleClass return _moduleDataByName[RCTBridgeModuleNameForClass(moduleClass)].hasInstance; } +- (id)jsBoundExtraModuleForClass:(Class)moduleClass +{ + if ([self.delegate conformsToProtocol:@protocol(RCTCxxBridgeDelegate)]) { + id cxxDelegate = (id) self.delegate; + if ([cxxDelegate respondsToSelector:@selector(jsBoundExtraModuleForClass:)]) { + return [cxxDelegate jsBoundExtraModuleForClass:moduleClass]; + } + } + + return nil; +} + - (std::shared_ptr)_buildModuleRegistry { if (!self.valid) { diff --git a/React/CxxBridge/RCTCxxBridgeDelegate.h b/React/CxxBridge/RCTCxxBridgeDelegate.h index 55bff5adadc15c..9c24ee21611fe9 100644 --- a/React/CxxBridge/RCTCxxBridgeDelegate.h +++ b/React/CxxBridge/RCTCxxBridgeDelegate.h @@ -40,4 +40,9 @@ class JSExecutorFactory; */ - (void)installExtraJSBinding:(JSGlobalContextRef)jsContextRef; +/** + * Experimental: Get the instance of the extra module/class which gets bound via `installExtraJSBinding:` + */ +- (id)jsBoundExtraModuleForClass:(Class)moduleClass; + @end diff --git a/React/Fabric/RCTFabricUIManager.h b/React/Fabric/RCTFabricUIManager.h index a1e5b5ed762b74..4a22c96144bb23 100644 --- a/React/Fabric/RCTFabricUIManager.h +++ b/React/Fabric/RCTFabricUIManager.h @@ -42,3 +42,9 @@ childSet:(NSArray *)childSet; @end + +@interface RCTBridge (RCTFabricUIManager) + +@property (nonatomic, readonly) RCTFabricUIManager *fabricUIManager; + +@end diff --git a/React/Fabric/RCTFabricUIManager.mm b/React/Fabric/RCTFabricUIManager.mm index d8a754b061d084..2aca771d324739 100644 --- a/React/Fabric/RCTFabricUIManager.mm +++ b/React/Fabric/RCTFabricUIManager.mm @@ -72,3 +72,12 @@ - (void)completeRoot:(nonnull NSNumber *)rootTag } @end + +@implementation RCTBridge (RCTFabricUIManager) + +- (RCTFabricUIManager *)fabricUIManager +{ + return [self jsBoundExtraModuleForClass:[RCTFabricUIManager class]]; +} + +@end From 7d20de412b37a35951e615d98509573dc1a24bcb Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 13 Feb 2018 23:25:04 -0800 Subject: [PATCH 023/267] Fixed a bug with positioning of nested views inside Summary: Fixing of recent regression in layout system. Conseptually, a superview should define frames of child views. Reviewed By: mmmulani Differential Revision: D6980128 fbshipit-source-id: e267e966fd46af28db1d3d40939110040b74e33f --- Libraries/Text/Text/RCTTextShadowView.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/Text/Text/RCTTextShadowView.m b/Libraries/Text/Text/RCTTextShadowView.m index 4a2eac095e73d9..2a00e97ba2eb7c 100644 --- a/Libraries/Text/Text/RCTTextShadowView.m +++ b/Libraries/Text/Text/RCTTextShadowView.m @@ -298,6 +298,11 @@ - (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext maximumSize:frame.size layoutDirection:self.layoutMetrics.layoutDirection layoutContext:localLayoutContext]; + + // Reinforcing a proper frame origin for the Shadow View. + RCTLayoutMetrics localLayoutMetrics = shadowView.layoutMetrics; + localLayoutMetrics.frame.origin = frame.origin; + [shadowView layoutWithMetrics:localLayoutMetrics layoutContext:localLayoutContext]; } ]; } From 10b642a7af097bd508dab7b5d4723ccb4339d35f Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Wed, 14 Feb 2018 07:51:52 -0800 Subject: [PATCH 024/267] Verify that the component passed to createAnimatedComponent is not functional Summary: Stateless functional components don't support refs and we need that for the component to work, it used to crash with this error message: `undefined is not an object (evaluating 'this._component.getScrollableNode')`. This makes it clear what the issue is. Fixes some of the errors in #10635, not sure if it fixes all the cases described in the issue though. **Test plan** Tested that passing a component with createClass or extends Component works but passing a function causes an error. [GENERAL] [ENHANCEMENT] [Animated] - Verify that the component passed to createAnimatedComponent is not functional Closes https://github.com/facebook/react-native/pull/15019 Differential Revision: D6988096 Pulled By: sahrens fbshipit-source-id: ec0ffa763245e786f44b4a1d56c0738876c25782 --- Libraries/Animated/src/__tests__/AnimatedNative-test.js | 9 ++++++--- Libraries/Animated/src/createAnimatedComponent.js | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Libraries/Animated/src/__tests__/AnimatedNative-test.js b/Libraries/Animated/src/__tests__/AnimatedNative-test.js index d3f59368ea6098..62c40c8388d79b 100644 --- a/Libraries/Animated/src/__tests__/AnimatedNative-test.js +++ b/Libraries/Animated/src/__tests__/AnimatedNative-test.js @@ -10,11 +10,14 @@ */ 'use strict'; +const ClassComponentMock = class {}; +ClassComponentMock.prototype.isReactComponent = true; + jest .clearAllMocks() - .setMock('Text', {}) - .setMock('View', {}) - .setMock('Image', {}) + .setMock('Text', ClassComponentMock) + .setMock('View', ClassComponentMock) + .setMock('Image', ClassComponentMock) .setMock('React', {Component: class {}}) .setMock('NativeModules', { NativeAnimatedModule: {}, diff --git a/Libraries/Animated/src/createAnimatedComponent.js b/Libraries/Animated/src/createAnimatedComponent.js index fd363ff0ca7495..42110be681988c 100644 --- a/Libraries/Animated/src/createAnimatedComponent.js +++ b/Libraries/Animated/src/createAnimatedComponent.js @@ -17,7 +17,16 @@ const AnimatedProps = require('./nodes/AnimatedProps'); const React = require('React'); const ViewStylePropTypes = require('ViewStylePropTypes'); +const invariant = require('fbjs/lib/invariant'); + function createAnimatedComponent(Component: any): any { + invariant( + typeof Component === 'string' || + (Component.prototype && Component.prototype.isReactComponent), + '`createAnimatedComponent` does not support stateless functional components; ' + + 'use a class component instead.', + ); + class AnimatedComponent extends React.Component { _component: any; _invokeAnimatedPropsCallbackOnMount: boolean = false; From f8fee0a631d77313d7cb5e65a3dd04a5a8ba3d03 Mon Sep 17 00:00:00 2001 From: Johan Ruokangas Date: Wed, 14 Feb 2018 08:02:13 -0800 Subject: [PATCH 025/267] Pass port when running on device (fix #17973) Summary: Building for iOS device `react-native run-ios --device [id]` fails since port is not passed. This is a blocker for us and prevents us from updating to latest React Native stable. I've tested this in our app and also in fresh app using RN master and verified that it works. None. [CLI] [BUGFIX] [local-cli/runIOS/runIOS.js] - Pass metro port when running on device Closes https://github.com/facebook/react-native/pull/17983 Differential Revision: D6988299 Pulled By: hramos fbshipit-source-id: 5169706600f87f13b9c9c105eb7d6db7a40194f1 --- local-cli/runIOS/runIOS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index 37e649ba91d167..cb459a81c2d15e 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -68,7 +68,7 @@ function runIOS(argv, config, args) { if (args.device) { const selectedDevice = matchingDevice(devices, args.device); if (selectedDevice) { - return runOnDevice(selectedDevice, scheme, xcodeProject, args.configuration, args.packager, args.verbose); + return runOnDevice(selectedDevice, scheme, xcodeProject, args.configuration, args.packager, args.verbose, args.port); } else { if (devices && devices.length > 0) { console.log('Could not find device with the name: "' + args.device + '".'); From 96ec2dcb71ecc2bf1ed8c28b29743879c7132a11 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Wed, 14 Feb 2018 08:42:28 -0800 Subject: [PATCH 026/267] Fix enableBabelRCLookup option in new CLI + global cache script Reviewed By: BYK Differential Revision: D6977885 fbshipit-source-id: 50245e046c7639f9fb4022a9cc5974d50831524c --- local-cli/bundle/buildBundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index afbab9ec8a3ede..39945d455643b3 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -96,6 +96,7 @@ async function buildBundle( assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), dynamicDepsInPackages: config.dynamicDepsInPackages, + enableBabelRCLookup: config.getEnableBabelRCLookup(), extraNodeModules: config.extraNodeModules, getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule, getPolyfills: config.getPolyfills, From 828cd78866f69f8dc0e969ce19f6e615a640ee26 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Wed, 14 Feb 2018 08:42:30 -0800 Subject: [PATCH 027/267] Pass cacheVersion param via the new API Reviewed By: BYK Differential Revision: D6980337 fbshipit-source-id: 72c01136b6720390ffec8593f0375c8756dc1d4a --- local-cli/bundle/buildBundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 39945d455643b3..6265de5c21c930 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -95,6 +95,7 @@ async function buildBundle( assetExts: defaultAssetExts.concat(assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), + cacheVersion: config.cacheVersion, dynamicDepsInPackages: config.dynamicDepsInPackages, enableBabelRCLookup: config.getEnableBabelRCLookup(), extraNodeModules: config.extraNodeModules, From c281f7a3aec9e0426d11a3a1af5fefdac9b34be1 Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Wed, 14 Feb 2018 09:22:20 -0800 Subject: [PATCH 028/267] Support resumes without overriding the back handler Differential Revision: D6982515 fbshipit-source-id: 5483f6c677c6653e51f6311386f31f5be6ed0e00 --- .../java/com/facebook/react/ReactInstanceManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index d1ef9b3da49053..f1b8584c01a67d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -545,6 +545,16 @@ public void onHostResume(Activity activity, DefaultHardwareBackBtnHandler defaul UiThreadUtil.assertOnUiThread(); mDefaultBackButtonImpl = defaultBackButtonImpl; + onHostResume(activity); + } + + /** + * Use this method when the activity resumes. + */ + @ThreadConfined(UI) + public void onHostResume(Activity activity) { + UiThreadUtil.assertOnUiThread(); + mCurrentActivity = activity; if (mUseDeveloperSupport) { From ecc08adf4988eae2089658b7c3252643fb0e588b Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 14 Feb 2018 09:31:10 -0800 Subject: [PATCH 029/267] Expose methods of persistent yoga for Java Reviewed By: priteshrnandgaonkar Differential Revision: D6918605 fbshipit-source-id: e424c78680c04e21154ebe21405671c4e90f6529 --- .../java/com/facebook/yoga/YogaConfig.java | 14 +++ .../facebook/yoga/YogaNodeClonedFunction.java | 19 ++++ .../jni/first-party/yogajni/jni/YGJNI.cpp | 100 ++++++++++++++++-- 3 files changed, 122 insertions(+), 11 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java index dfb559f27edb81..5e82fe22cd7806 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java @@ -23,6 +23,7 @@ public class YogaConfig { long mNativePointer; private YogaLogger mLogger; + private YogaNodeClonedFunction mNodeClonedFunction; private native long jni_YGConfigNew(); public YogaConfig() { @@ -80,4 +81,17 @@ public void setLogger(YogaLogger logger) { public YogaLogger getLogger() { return mLogger; } + + private native void jni_YGConfigSetHasNodeClonedFunc(long nativePointer, boolean hasClonedFunc); + + public void setOnNodeCloned(YogaNodeClonedFunction nodeClonedFunction) { + mNodeClonedFunction = nodeClonedFunction; + jni_YGConfigSetHasNodeClonedFunc(mNativePointer, nodeClonedFunction != null); + } + + @DoNotStrip + public final void onNodeCloned( + YogaNode oldNode, YogaNode newNode, YogaNode parent, int childIndex) { + mNodeClonedFunction.onNodeCloned(oldNode, newNode, parent, childIndex); + } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java new file mode 100644 index 00000000000000..8c27d16bfe83ad --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2017-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. + */ + +package com.facebook.yoga; + +import com.facebook.proguard.annotations.DoNotStrip; + +@DoNotStrip +public interface YogaNodeClonedFunction { + + @DoNotStrip + void onNodeCloned(YogaNode oldNode, YogaNode newNode, YogaNode parent, int childIndex); +} diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp index a54c062fd1ad87..67042729b1f960 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp @@ -19,6 +19,22 @@ struct JYogaNode : public JavaClass { static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaNode;"; }; +struct JYogaConfig : public JavaClass { + static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaConfig;"; +}; + +struct YGConfigContext { + global_ref* logger; + global_ref* config; + YGConfigContext() : logger(nullptr), config(nullptr) {} + ~YGConfigContext() { + delete config; + config = nullptr; + delete logger; + logger = nullptr; + } +}; + static inline weak_ref *YGNodeJobject(YGNodeRef node) { return reinterpret_cast*>(node->getContext()); } @@ -118,11 +134,39 @@ static float YGJNIBaselineFunc(YGNodeRef node, float width, float height) { } } -static YGSize YGJNIMeasureFunc(YGNodeRef node, - float width, - YGMeasureMode widthMode, - float height, - YGMeasureMode heightMode) { +static void YGJNIOnNodeClonedFunc( + YGNodeRef oldNode, + YGNodeRef newNode, + YGNodeRef parent, + int childIndex) { + auto config = oldNode->getConfig(); + if (!config) { + return; + } + static auto onNodeClonedFunc = findClassStatic("com/facebook/yoga/YogaConfig") + ->getMethod, + local_ref, + local_ref, + jint)>("onNodeCloned"); + + auto context = reinterpret_cast(YGConfigGetContext(config)); + auto javaConfig = context->config; + + onNodeClonedFunc( + javaConfig->get(), + YGNodeJobject(oldNode)->lockLocal(), + YGNodeJobject(newNode)->lockLocal(), + YGNodeJobject(parent)->lockLocal(), + childIndex); +} + +static YGSize YGJNIMeasureFunc( + YGNodeRef node, + float width, + YGMeasureMode widthMode, + float height, + YGMeasureMode heightMode) { if (auto obj = YGNodeJobject(node)->lockLocal()) { static auto measureFunc = findClassStatic("com/facebook/yoga/YogaNode") ->getMethod("measure"); @@ -396,6 +440,10 @@ jlong jni_YGConfigNew(alias_ref) { void jni_YGConfigFree(alias_ref, jlong nativePointer) { const YGConfigRef config = _jlong2YGConfigRef(nativePointer); + auto context = reinterpret_cast(YGConfigGetContext(config)); + if (context) { + delete context; + } YGConfigFree(config); } @@ -430,19 +478,48 @@ void jni_YGConfigSetUseLegacyStretchBehaviour(alias_ref, YGConfigSetUseLegacyStretchBehaviour(config, useLegacyStretchBehaviour); } -void jni_YGConfigSetLogger(alias_ref, jlong nativePointer, alias_ref logger) { +void jni_YGConfigSetHasNodeClonedFunc( + alias_ref thiz, + jlong nativePointer, + jboolean hasNodeClonedFunc) { const YGConfigRef config = _jlong2YGConfigRef(nativePointer); + auto context = reinterpret_cast(YGConfigGetContext(config)); + if (context && context->config) { + delete context->config; + context->config = nullptr; + } - auto context = YGConfigGetContext(config); - if (context) { - delete reinterpret_cast *>(context); + if (hasNodeClonedFunc) { + if (!context) { + context = new YGConfigContext(); + YGConfigSetContext(config, context); + } + context->config = new global_ref(make_global(thiz)); + YGConfigSetNodeClonedFunc(config, YGJNIOnNodeClonedFunc); + } else { + YGConfigSetNodeClonedFunc(config, nullptr); + } +} + +void jni_YGConfigSetLogger( + alias_ref, + jlong nativePointer, + alias_ref logger) { + const YGConfigRef config = _jlong2YGConfigRef(nativePointer); + auto context = reinterpret_cast(YGConfigGetContext(config)); + if (context && context->logger) { + delete context->logger; + context->logger = nullptr; } if (logger) { - YGConfigSetContext(config, new global_ref(make_global(logger))); + if (!context) { + context = new YGConfigContext(); + YGConfigSetContext(config, context); + } + context->logger = new global_ref(make_global(logger)); YGConfigSetLogger(config, YGJNILogFunc); } else { - YGConfigSetContext(config, NULL); YGConfigSetLogger(config, NULL); } } @@ -545,6 +622,7 @@ jint JNI_OnLoad(JavaVM *vm, void *) { YGMakeNativeMethod(jni_YGConfigSetPointScaleFactor), YGMakeNativeMethod(jni_YGConfigSetUseLegacyStretchBehaviour), YGMakeNativeMethod(jni_YGConfigSetLogger), + YGMakeNativeMethod(jni_YGConfigSetHasNodeClonedFunc), }); }); } From db391a500cc150a73e9f222ff764b318439cfe83 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 14 Feb 2018 11:26:39 -0800 Subject: [PATCH 030/267] Allow installing JS binding via the RN Android bridge Reviewed By: fkgozali Differential Revision: D6979072 fbshipit-source-id: 8b4ac3769496a6a6fe3dd9ee2aac64b66604c413 --- .../facebook/react/ReactInstanceManager.java | 47 ++++++++++--------- .../react/ReactInstanceManagerBuilder.java | 12 ++++- .../com/facebook/react/ReactNativeHost.java | 6 +++ .../facebook/react/bridge/BridgeListener.java | 14 ++++++ .../react/bridge/CatalystInstanceImpl.java | 21 +++++++-- 5 files changed, 74 insertions(+), 26 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeListener.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index f1b8584c01a67d..834fa4acb9b3f7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -45,13 +45,13 @@ import com.facebook.infer.annotation.Assertions; import com.facebook.infer.annotation.ThreadConfined; import com.facebook.infer.annotation.ThreadSafe; +import com.facebook.react.bridge.BridgeListener; import com.facebook.react.bridge.CatalystInstance; import com.facebook.react.bridge.CatalystInstanceImpl; import com.facebook.react.bridge.JSBundleLoader; import com.facebook.react.bridge.JavaJSExecutor; import com.facebook.react.bridge.JavaScriptExecutor; import com.facebook.react.bridge.JavaScriptExecutorFactory; -import com.facebook.react.bridge.NativeArray; import com.facebook.react.bridge.NativeModuleCallExceptionHandler; import com.facebook.react.bridge.NativeModuleRegistry; import com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener; @@ -124,6 +124,7 @@ public interface ReactInstanceEventListener { */ void onReactContextInitialized(ReactContext context); } + private final List mAttachedRootViews = Collections.synchronizedList( new ArrayList()); @@ -156,6 +157,7 @@ public interface ReactInstanceEventListener { private final @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler; private final boolean mLazyNativeModulesEnabled; private final boolean mDelayViewManagerClassLoadsEnabled; + private final @Nullable BridgeListener mBridgeListener; private class ReactContextInitParams { private final JavaScriptExecutorFactory mJsExecutorFactory; @@ -185,25 +187,26 @@ public static ReactInstanceManagerBuilder builder() { } /* package */ ReactInstanceManager( - Context applicationContext, - @Nullable Activity currentActivity, - @Nullable DefaultHardwareBackBtnHandler defaultHardwareBackBtnHandler, - JavaScriptExecutorFactory javaScriptExecutorFactory, - @Nullable JSBundleLoader bundleLoader, - @Nullable String jsMainModulePath, - List packages, - boolean useDeveloperSupport, - @Nullable NotThreadSafeBridgeIdleDebugListener bridgeIdleDebugListener, - LifecycleState initialLifecycleState, - UIImplementationProvider uiImplementationProvider, - NativeModuleCallExceptionHandler nativeModuleCallExceptionHandler, - @Nullable RedBoxHandler redBoxHandler, - boolean lazyNativeModulesEnabled, - boolean lazyViewManagersEnabled, - boolean delayViewManagerClassLoadsEnabled, - @Nullable DevBundleDownloadListener devBundleDownloadListener, - int minNumShakes, - int minTimeLeftInFrameForNonBatchedOperationMs) { + Context applicationContext, + @Nullable Activity currentActivity, + @Nullable DefaultHardwareBackBtnHandler defaultHardwareBackBtnHandler, + JavaScriptExecutorFactory javaScriptExecutorFactory, + @Nullable JSBundleLoader bundleLoader, + @Nullable String jsMainModulePath, + List packages, + boolean useDeveloperSupport, + @Nullable NotThreadSafeBridgeIdleDebugListener bridgeIdleDebugListener, + LifecycleState initialLifecycleState, + UIImplementationProvider uiImplementationProvider, + NativeModuleCallExceptionHandler nativeModuleCallExceptionHandler, + @Nullable RedBoxHandler redBoxHandler, + boolean lazyNativeModulesEnabled, + boolean lazyViewManagersEnabled, + boolean delayViewManagerClassLoadsEnabled, + @Nullable DevBundleDownloadListener devBundleDownloadListener, + int minNumShakes, + int minTimeLeftInFrameForNonBatchedOperationMs, + @Nullable BridgeListener bridgeListener) { Log.d(ReactConstants.TAG, "ReactInstanceManager.ctor()"); initializeSoLoaderIfNecessary(applicationContext); @@ -252,6 +255,7 @@ public void invokeDefaultOnBackPressed() { } mPackages.addAll(packages); } + mBridgeListener = bridgeListener; // Instantiate ReactChoreographer in UI thread. ReactChoreographer.initialize(); @@ -1100,7 +1104,8 @@ private ReactApplicationContext createReactContext( .setJSExecutor(jsExecutor) .setRegistry(nativeModuleRegistry) .setJSBundleLoader(jsBundleLoader) - .setNativeModuleCallExceptionHandler(exceptionHandler); + .setNativeModuleCallExceptionHandler(exceptionHandler) + .setBridgeListener(mBridgeListener); ReactMarker.logMarker(CREATE_CATALYST_INSTANCE_START); // CREATE_CATALYST_INSTANCE_END is in JSCExecutor.cpp diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java index ab5315b06dfe47..5f9042093ab9ee 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java @@ -7,6 +7,8 @@ import android.app.Activity; import android.app.Application; import com.facebook.infer.annotation.Assertions; +import com.facebook.react.bridge.BridgeListener; +import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.JSBundleLoader; import com.facebook.react.bridge.JSCJavaScriptExecutorFactory; import com.facebook.react.bridge.JavaScriptExecutorFactory; @@ -48,6 +50,7 @@ public class ReactInstanceManagerBuilder { private @Nullable JavaScriptExecutorFactory mJavaScriptExecutorFactory; private int mMinNumShakes = 1; private int mMinTimeLeftInFrameForNonBatchedOperationMs = -1; + private @Nullable BridgeListener mBridgeListener; /* package protected */ ReactInstanceManagerBuilder() { } @@ -62,6 +65,12 @@ public ReactInstanceManagerBuilder setUIImplementationProvider( return this; } + public ReactInstanceManagerBuilder setBridgeListener( + @Nullable BridgeListener listener) { + mBridgeListener = listener; + return this; + } + /** * Factory for desired implementation of JavaScriptExecutor. */ @@ -280,6 +289,7 @@ public ReactInstanceManager build() { mDelayViewManagerClassLoadsEnabled, mDevBundleDownloadListener, mMinNumShakes, - mMinTimeLeftInFrameForNonBatchedOperationMs); + mMinTimeLeftInFrameForNonBatchedOperationMs, + mBridgeListener); } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java b/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java index 1c12e913e6c48e..734597e8394dae 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java @@ -16,6 +16,7 @@ import android.app.Application; import com.facebook.infer.annotation.Assertions; +import com.facebook.react.bridge.BridgeListener; import com.facebook.react.bridge.JavaScriptExecutorFactory; import com.facebook.react.bridge.ReactMarker; import com.facebook.react.bridge.ReactMarkerConstants; @@ -76,6 +77,7 @@ protected ReactInstanceManager createReactInstanceManager() { .setRedBoxHandler(getRedBoxHandler()) .setJavaScriptExecutorFactory(getJavaScriptExecutorFactory()) .setUIImplementationProvider(getUIImplementationProvider()) + .setBridgeListener(getBridgeListener()) .setInitialLifecycleState(LifecycleState.BEFORE_CREATE); for (ReactPackage reactPackage : getPackages()) { @@ -122,6 +124,10 @@ protected UIImplementationProvider getUIImplementationProvider() { return new UIImplementationProvider(); } + protected @Nullable BridgeListener getBridgeListener() { + return null; + } + /** * Returns the name of the main module. Determines the URL used to fetch the JS bundle * from the packager server. It is only used when dev support is enabled. diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeListener.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeListener.java new file mode 100644 index 00000000000000..d39c72b50e86db --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeListener.java @@ -0,0 +1,14 @@ +package com.facebook.react.bridge; + +/** + * Interface to listen to bridge events. + */ +public interface BridgeListener { + + /** + * Called right after the RN Bridge is initialized + * @param catalystInstance {@link CatalystInstance} bridge + */ + void onBridgeStarted(CatalystInstance catalystInstance); + +} diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java index 7afc565c2f9418..fe3cef73f85966 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java @@ -100,7 +100,8 @@ private CatalystInstanceImpl( final JavaScriptExecutor jsExecutor, final NativeModuleRegistry nativeModuleRegistry, final JSBundleLoader jsBundleLoader, - NativeModuleCallExceptionHandler nativeModuleCallExceptionHandler) { + NativeModuleCallExceptionHandler nativeModuleCallExceptionHandler, + final BridgeListener bridgeListener) { Log.d(ReactConstants.TAG, "Initializing React Xplat Bridge."); mHybridData = initHybrid(); @@ -126,6 +127,9 @@ private CatalystInstanceImpl( Log.d(ReactConstants.TAG, "Initializing React Xplat Bridge after initializeBridge"); mJavaScriptContextHolder = new JavaScriptContextHolder(getJavaScriptContext()); + if (bridgeListener != null) { + bridgeListener.onBridgeStarted(this); + } } private static class BridgeCallback implements ReactCallback { @@ -134,8 +138,8 @@ private static class BridgeCallback implements ReactCallback { // and determine there's an inaccessible cycle. private final WeakReference mOuter; - public BridgeCallback(CatalystInstanceImpl outer) { - mOuter = new WeakReference(outer); + BridgeCallback(CatalystInstanceImpl outer) { + mOuter = new WeakReference<>(outer); } @Override @@ -553,6 +557,8 @@ public static class Builder { private @Nullable NativeModuleRegistry mRegistry; private @Nullable JavaScriptExecutor mJSExecutor; private @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler; + private @Nullable BridgeListener mBridgeListener; + public Builder setReactQueueConfigurationSpec( ReactQueueConfigurationSpec ReactQueueConfigurationSpec) { @@ -581,13 +587,20 @@ public Builder setNativeModuleCallExceptionHandler( return this; } + public Builder setBridgeListener( + BridgeListener listener) { + mBridgeListener = listener; + return this; + } + public CatalystInstanceImpl build() { return new CatalystInstanceImpl( Assertions.assertNotNull(mReactQueueConfigurationSpec), Assertions.assertNotNull(mJSExecutor), Assertions.assertNotNull(mRegistry), Assertions.assertNotNull(mJSBundleLoader), - Assertions.assertNotNull(mNativeModuleCallExceptionHandler)); + Assertions.assertNotNull(mNativeModuleCallExceptionHandler), + mBridgeListener); } } } From 51def5ef7ff36e79b2c130331717c91fa416917b Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 14 Feb 2018 18:10:23 -0800 Subject: [PATCH 031/267] Make Java YogaNode cloneable Reviewed By: priteshrnandgaonkar Differential Revision: D6935971 fbshipit-source-id: a2008f1eb849b5074585b48699b7de56d5ac90d4 --- .../main/java/com/facebook/yoga/YogaNode.java | 16 ++++++++++++++-- .../main/jni/first-party/yogajni/jni/YGJNI.cpp | 11 +++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java index 093d209d34c6aa..1a280dd8d100d5 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java @@ -16,7 +16,7 @@ import javax.annotation.Nullable; @DoNotStrip -public class YogaNode { +public class YogaNode implements Cloneable { static { SoLoader.loadLibrary("yoga"); @@ -31,7 +31,7 @@ public class YogaNode { private List mChildren; private YogaMeasureFunction mMeasureFunction; private YogaBaselineFunction mBaselineFunction; - private final long mNativePointer; + private long mNativePointer; private Object mData; /* Those flags needs be in sync with YGJNI.cpp */ @@ -160,6 +160,18 @@ public void addChildAt(YogaNode child, int i) { jni_YGNodeInsertChild(mNativePointer, child.mNativePointer, i); } + private native long jni_YGNodeClone(long nativePointer, Object newNode); + + @Override + public YogaNode clone() throws CloneNotSupportedException { + YogaNode clonedYogaNode = (YogaNode) super.clone(); + long clonedNativePointer = jni_YGNodeClone(mNativePointer, clonedYogaNode); + clonedYogaNode.mNativePointer = clonedNativePointer; + clonedYogaNode.mChildren = + mChildren != null ? (List) ((ArrayList) mChildren).clone() : null; + return clonedYogaNode; + } + private native void jni_YGNodeRemoveChild(long nativePointer, long childPointer); public YogaNode removeChildAt(int i) { diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp index 67042729b1f960..b8cfe0a620cc74 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp @@ -250,6 +250,16 @@ jlong jni_YGNodeNewWithConfig(alias_ref thiz, jlong configPointer) { return reinterpret_cast(node); } +jlong jni_YGNodeClone( + alias_ref thiz, + jlong nativePointer, + alias_ref clonedJavaObject) { + const YGNodeRef clonedYogaNode = YGNodeClone(_jlong2YGNodeRef(nativePointer)); + clonedYogaNode->setContext( + new weak_ref(make_weak(clonedJavaObject))); + return reinterpret_cast(clonedYogaNode); +} + void jni_YGNodeFree(alias_ref thiz, jlong nativePointer) { const YGNodeRef node = _jlong2YGNodeRef(nativePointer); delete YGNodeJobject(node); @@ -612,6 +622,7 @@ jint JNI_OnLoad(JavaVM *vm, void *) { YGMakeNativeMethod(jni_YGNodeStyleSetAspectRatio), YGMakeNativeMethod(jni_YGNodeGetInstanceCount), YGMakeNativeMethod(jni_YGNodePrint), + YGMakeNativeMethod(jni_YGNodeClone), }); registerNatives("com/facebook/yoga/YogaConfig", { From 991b7aba57d46e18d94b65c595bf73649439afd9 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez Esun Date: Thu, 15 Feb 2018 03:30:12 -0800 Subject: [PATCH 032/267] Upgrade Jest to 22.3.0 Reviewed By: BYK Differential Revision: D6978514 fbshipit-source-id: 3c6be52d38fedbe849dee6319bb2e4d7a97297c9 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fd029432790838..631a0394dcdac7 100644 --- a/package.json +++ b/package.json @@ -216,8 +216,8 @@ "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.6.1", "flow-bin": "^0.65.0", - "jest": "22.2.1", - "jest-junit": "3.5.0", + "jest": "22.3.0", + "jest-junit": "3.6.0", "prettier": "1.9.1", "react": "^16.3.0-alpha.1", "react-test-renderer": "^16.3.0-alpha.1", From f7f5dc66493ad25a85927a9503728b0491c8aab9 Mon Sep 17 00:00:00 2001 From: Alex Dvornikov Date: Thu, 15 Feb 2018 03:52:52 -0800 Subject: [PATCH 033/267] Extract polyfillGlobal from InitializeCore Reviewed By: jeanlauliac Differential Revision: D6987657 fbshipit-source-id: 8762732de671418520376a98bdd724bbb24e4e36 --- Libraries/Core/InitializeCore.js | 52 ++------------------ Libraries/Utilities/PolyfillFunctions.js | 62 ++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 48 deletions(-) create mode 100644 Libraries/Utilities/PolyfillFunctions.js diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index f5f3d3cc4d8429..761846f862ad4a 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -27,6 +27,8 @@ */ 'use strict'; +const {polyfillObjectProperty, polyfillGlobal} = require('PolyfillFunctions'); + if (global.GLOBAL === undefined) { global.GLOBAL = global; } @@ -35,8 +37,6 @@ if (global.window === undefined) { global.window = global; } -const defineLazyObjectProperty = require('defineLazyObjectProperty'); - // Set up collections const _shouldPolyfillCollection = require('_shouldPolyfillES6Collection'); if (_shouldPolyfillCollection('Map')) { @@ -46,50 +46,6 @@ if (_shouldPolyfillCollection('Set')) { polyfillGlobal('Set', () => require('Set')); } -/** - * Sets an object's property. If a property with the same name exists, this will - * replace it but maintain its descriptor configuration. The property will be - * replaced with a lazy getter. - * - * In DEV mode the original property value will be preserved as `original[PropertyName]` - * so that, if necessary, it can be restored. For example, if you want to route - * network requests through DevTools (to trace them): - * - * global.XMLHttpRequest = global.originalXMLHttpRequest; - * - * @see https://github.com/facebook/react-native/issues/934 - */ -function defineLazyProperty( - object: Object, - name: string, - getValue: () => T, -): void { - const descriptor = Object.getOwnPropertyDescriptor(object, name); - if (__DEV__ && descriptor) { - const backupName = `original${name[0].toUpperCase()}${name.substr(1)}`; - Object.defineProperty(object, backupName, { - ...descriptor, - value: object[name], - }); - } - - const {enumerable, writable, configurable} = descriptor || {}; - if (descriptor && !configurable) { - console.error('Failed to set polyfill. ' + name + ' is not configurable.'); - return; - } - - defineLazyObjectProperty(object, name, { - get: getValue, - enumerable: enumerable !== false, - writable: writable !== false, - }); -} - -function polyfillGlobal(name: string, getValue: () => T): void { - defineLazyProperty(global, name, getValue); -} - // Set up process global.process = global.process || {}; global.process.env = global.process.env || {}; @@ -191,8 +147,8 @@ if (navigator === undefined) { } // see https://github.com/facebook/react-native/issues/10881 -defineLazyProperty(navigator, 'product', () => 'ReactNative'); -defineLazyProperty(navigator, 'geolocation', () => require('Geolocation')); +polyfillObjectProperty(navigator, 'product', () => 'ReactNative'); +polyfillObjectProperty(navigator, 'geolocation', () => require('Geolocation')); // Just to make sure the JS gets packaged up. Wait until the JS environment has // been initialized before requiring them. diff --git a/Libraries/Utilities/PolyfillFunctions.js b/Libraries/Utilities/PolyfillFunctions.js new file mode 100644 index 00000000000000..aa35c149915aa5 --- /dev/null +++ b/Libraries/Utilities/PolyfillFunctions.js @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2013-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. + * + * @providesModule PolyfillFunctions + * @flow + * @format + */ + +'use strict'; + +const defineLazyObjectProperty = require('defineLazyObjectProperty'); + +/** + * Sets an object's property. If a property with the same name exists, this will + * replace it but maintain its descriptor configuration. The property will be + * replaced with a lazy getter. + * + * In DEV mode the original property value will be preserved as `original[PropertyName]` + * so that, if necessary, it can be restored. For example, if you want to route + * network requests through DevTools (to trace them): + * + * global.XMLHttpRequest = global.originalXMLHttpRequest; + * + * @see https://github.com/facebook/react-native/issues/934 + */ +function polyfillObjectProperty( + object: Object, + name: string, + getValue: () => T, +): void { + const descriptor = Object.getOwnPropertyDescriptor(object, name); + if (__DEV__ && descriptor) { + const backupName = `original${name[0].toUpperCase()}${name.substr(1)}`; + Object.defineProperty(object, backupName, { + ...descriptor, + value: object[name], + }); + } + + const {enumerable, writable, configurable} = descriptor || {}; + if (descriptor && !configurable) { + console.error('Failed to set polyfill. ' + name + ' is not configurable.'); + return; + } + + defineLazyObjectProperty(object, name, { + get: getValue, + enumerable: enumerable !== false, + writable: writable !== false, + }); +} + +function polyfillGlobal(name: string, getValue: () => T): void { + polyfillObjectProperty(global, name, getValue); +} + +module.exports = {polyfillObjectProperty, polyfillGlobal}; From f751c3460e5dc48c1f1a2d72a56173285899de21 Mon Sep 17 00:00:00 2001 From: Yuichi ONO Date: Thu, 15 Feb 2018 07:16:59 -0800 Subject: [PATCH 034/267] Fix main size calculation from the aspect ratio Summary: When the following conditions are met, the main size become smaller by the margins in the main axis. * The aspect ratio is defined * The main size is not defined * The cross size is defined * The main margin is defined This is because the main margin size is not included when calculating the main size from the aspect ratio. Closes https://github.com/facebook/yoga/pull/715 Reviewed By: emilsjolander Differential Revision: D6998988 Pulled By: priteshrnandgaonkar fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356 --- ReactCommon/yoga/yoga/Yoga.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 63b00c6cc8a586..8f1f5e04e84ecd 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -1102,10 +1102,11 @@ static void YGNodeComputeFlexBasisForChild(const YGNodeRef node, if (!YGFloatIsUndefined(child->getStyle().aspectRatio)) { if (!isMainAxisRow && childWidthMeasureMode == YGMeasureModeExactly) { - childHeight = (childWidth - marginRow) / child->getStyle().aspectRatio; + childHeight = marginColumn + + (childWidth - marginRow) / child->getStyle().aspectRatio; childHeightMeasureMode = YGMeasureModeExactly; } else if (isMainAxisRow && childHeightMeasureMode == YGMeasureModeExactly) { - childWidth = + childWidth = marginRow + (childHeight - marginColumn) * child->getStyle().aspectRatio; childWidthMeasureMode = YGMeasureModeExactly; } From 59401f89c1e1b96ce74e58b8b19f333c87ca90b3 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Thu, 15 Feb 2018 07:48:29 -0800 Subject: [PATCH 035/267] Fold .eslintrc's into the root eslintrc Reviewed By: TheSavior Differential Revision: D6997050 fbshipit-source-id: 81e45d24343cca8336adb0de43bd766899ff03b6 --- .eslintrc | 44 ++++++++++++++++++++++++++++++++++++++------ Libraries/.eslintrc | 7 ------- RNTester/.eslintrc | 7 ------- jest/.eslintrc | 7 ------- local-cli/.eslintrc | 14 -------------- 5 files changed, 38 insertions(+), 41 deletions(-) delete mode 100644 Libraries/.eslintrc delete mode 100644 RNTester/.eslintrc delete mode 100644 jest/.eslintrc delete mode 100644 local-cli/.eslintrc diff --git a/.eslintrc b/.eslintrc index 167d6a58776566..2c1f512a16ce28 100644 --- a/.eslintrc +++ b/.eslintrc @@ -169,10 +169,10 @@ // ESLint Comments Plugin // The following rules are made available via `eslint-plugin-eslint-comments` - 'eslint-comments/no-aggregating-enable': 1, // disallows eslint-enable comments for multiple eslint-disable comments - 'eslint-comments/no-unlimited-disable': 1, // disallows eslint-disable comments without rule names - 'eslint-comments/no-unused-disable': 1, // disallow disables that don't cover any errors - 'eslint-comments/no-unused-enable': 1, // // disallow enables that don't enable anything or enable rules that weren't disabled + "eslint-comments/no-aggregating-enable": 1, // disallows eslint-enable comments for multiple eslint-disable comments + "eslint-comments/no-unlimited-disable": 1, // disallows eslint-disable comments without rule names + "eslint-comments/no-unused-disable": 1, // disallow disables that don't cover any errors + "eslint-comments/no-unused-enable": 1, // // disallow enables that don't enable anything or enable rules that weren't disabled // Flow Plugin // The following rules are made available via `eslint-plugin-flowtype` @@ -201,7 +201,7 @@ "new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments "no-nested-ternary": 0, // disallow nested ternary expressions (off by default) "no-array-constructor": 1, // disallow use of the Array constructor - 'no-empty-character-class': 1, // disallow the use of empty character classes in regular expressions + "no-empty-character-class": 1, // disallow the use of empty character classes in regular expressions "no-lonely-if": 0, // disallow if as the only statement in an else block (off by default) "no-new-object": 1, // disallow use of the Object constructor "no-spaced-func": 1, // disallow space between function identifier and application @@ -258,5 +258,37 @@ "jest/no-focused-tests": 1, "jest/no-identical-title": 1, "jest/valid-expect": 1, - } + }, + + "overrides": [ + { + "files": [ + "Libraries/**/*.js", + "RNTester/**/*.js", + "jest/**/*.js", + ], + "rules": { + // These folders currently run through babel and don't need to be + // compatible with node 4 + "comma-dangle": 0, + }, + }, + { + "files": [ + "local-cli/**/*.js", + ], + "rules": { + // This folder currently runs through babel and doesn't need to be + // compatible with node 4 + "comma-dangle": 0, + + "lint/extra-arrow-initializer": 0, + "no-alert": 0, + "no-console-disallow": 0, + }, + "env": { + "node": true, + }, + }, + ], } diff --git a/Libraries/.eslintrc b/Libraries/.eslintrc deleted file mode 100644 index ddcf4e27251d8f..00000000000000 --- a/Libraries/.eslintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rules": { - // This folder currently runs through babel and doesn't need to be - // compatible with node 4 - "comma-dangle": 0 - } -} diff --git a/RNTester/.eslintrc b/RNTester/.eslintrc deleted file mode 100644 index ddcf4e27251d8f..00000000000000 --- a/RNTester/.eslintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rules": { - // This folder currently runs through babel and doesn't need to be - // compatible with node 4 - "comma-dangle": 0 - } -} diff --git a/jest/.eslintrc b/jest/.eslintrc deleted file mode 100644 index ddcf4e27251d8f..00000000000000 --- a/jest/.eslintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rules": { - // This folder currently runs through babel and doesn't need to be - // compatible with node 4 - "comma-dangle": 0 - } -} diff --git a/local-cli/.eslintrc b/local-cli/.eslintrc deleted file mode 100644 index cb6a62b52255e1..00000000000000 --- a/local-cli/.eslintrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rules": { - // This folder currently runs through babel and doesn't need to be - // compatible with node 4 - "comma-dangle": 0, - - "lint/extra-arrow-initializer": 0, - "no-alert": 0, - "no-console-disallow": 0 - }, - "env": { - "node": true - } -} From c82b9f72de8b63b5c7c2c2271c5e3c53072d3ce9 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 15 Feb 2018 12:04:46 -0800 Subject: [PATCH 036/267] Create JNI wrapper for Fabric Reviewed By: fkgozali Differential Revision: D6989838 fbshipit-source-id: f092901cacc0c3eb89b08c6ac0384c4d5f6e6cfe --- .../java/com/facebook/react/ReactInstanceManager.java | 9 +++++++-- .../src/main/java/com/facebook/react/fabric/BUCK | 10 ---------- .../java/com/facebook/react/fabric/FabricBinding.java | 7 +++++++ 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index 834fa4acb9b3f7..71844e945a89f2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -352,12 +352,17 @@ public void registerAdditionalPackages(List packages) { Assertions.assertNotNull(catalystInstance, "CatalystInstance null after hasStartedCreatingInitialContext true."); - final ReactApplicationContext reactContext = new ReactApplicationContext(mApplicationContext); + final ReactApplicationContext reactContext = getReactApplicationContext(); NativeModuleRegistry nativeModuleRegistry = processPackages(reactContext, packages, true); catalystInstance.extendNativeModules(nativeModuleRegistry); } + @VisibleForTesting + public @Nullable ReactApplicationContext getReactApplicationContext() { + return new ReactApplicationContext(mApplicationContext); + } + /** * Recreate the react application and context. This should be called if configuration has changed * or the developer has requested the app to be reloaded. It should only be called after an @@ -1088,7 +1093,7 @@ private ReactApplicationContext createReactContext( JSBundleLoader jsBundleLoader) { Log.d(ReactConstants.TAG, "ReactInstanceManager.createReactContext()"); ReactMarker.logMarker(CREATE_REACT_CONTEXT_START); - final ReactApplicationContext reactContext = new ReactApplicationContext(mApplicationContext); + final ReactApplicationContext reactContext = getReactApplicationContext(); if (mUseDeveloperSupport) { reactContext.setNativeModuleCallExceptionHandler(mDevSupportManager); diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK index bc7ab5bbebc50d..3ff8cc422dfa64 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK @@ -11,20 +11,10 @@ android_library( "PUBLIC", ], deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("libraries/textlayoutbuilder:textlayoutbuilder"), react_native_dep("third-party/java/infer-annotations:infer-annotations"), react_native_dep("third-party/java/jsr-305:jsr-305"), react_native_target("java/com/facebook/react:reactAndroid"), react_native_target("java/com/facebook/react/bridge:bridgeAndroid"), - react_native_target("java/com/facebook/react/common:commonAndroid"), - react_native_target("java/com/facebook/react/devsupport:devsupportAndroid"), - react_native_target("java/com/facebook/react/modules/core:coreAndroid"), - react_native_target("java/com/facebook/react/shell:shellAndroid"), react_native_target("java/com/facebook/react/uimanager:uimanagerAndroid"), react_native_target("java/com/facebook/react/uimanager/annotations:annotationsAndroid"), react_native_target("java/com/facebook/react/module/annotations:annotationsAndroid"), diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java new file mode 100644 index 00000000000000..a44cf8b1d951af --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java @@ -0,0 +1,7 @@ +package com.facebook.react.fabric; + +public interface FabricBinding { + + void installFabric(Object jsContext, FabricUIManagerModule fabricModule); + +} From ad4f54ff6c8826a9f570fc6a4cf93eac9a07c59a Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 15 Feb 2018 13:29:17 -0800 Subject: [PATCH 037/267] Extend installFabric method to access UIFabricModule from C++ Reviewed By: sebmarkbage Differential Revision: D7001974 fbshipit-source-id: a49c6e634ac710805fb37a50a61c2cf2e248b8a7 --- .../main/java/com/facebook/react/fabric/FabricBinding.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java index a44cf8b1d951af..2f09ef700bed77 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinding.java @@ -1,7 +1,9 @@ package com.facebook.react.fabric; +import com.facebook.react.bridge.JavaScriptContextHolder; + public interface FabricBinding { - void installFabric(Object jsContext, FabricUIManagerModule fabricModule); + void installFabric(JavaScriptContextHolder jsContext, FabricUIManagerModule fabricModule); } From 7630a614e4bd56c1a3ac728e1dfafd114340f2b7 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Thu, 15 Feb 2018 17:40:10 -0800 Subject: [PATCH 038/267] Demo illustrated `base-line` metric exposure Summary: A demo illustrated `base-line` metric exposure to layout system was added to RNTester. And currently it shows that we don't support it at all. https://cl.ly/1F0B0D430U3e Reviewed By: sahrens Differential Revision: D6957056 fbshipit-source-id: 28776300fc8e11950ac5ba1a5416f68d31d4e9fb --- RNTester/js/TextExample.ios.js | 72 +++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/RNTester/js/TextExample.ios.js b/RNTester/js/TextExample.ios.js index 5caf0089286623..5064a63dc8fc89 100644 --- a/RNTester/js/TextExample.ios.js +++ b/RNTester/js/TextExample.ios.js @@ -15,7 +15,7 @@ const Platform = require('Platform'); var React = require('react'); var createReactClass = require('create-react-class'); var ReactNative = require('react-native'); -var {Image, Text, View, LayoutAnimation, Button} = ReactNative; +var {Image, Text, TextInput, View, LayoutAnimation, Button} = ReactNative; type TextAlignExampleRTLState = {| isRTL: boolean, @@ -224,6 +224,70 @@ var AdjustingFontSize = createReactClass({ }, }); +class TextBaseLineLayoutExample extends React.Component<*, *> { + render() { + var texts = []; + for (var i = 9; i >= 0; i--) { + texts.push({i}); + } + + const marker = ; + const subtitleStyle = {fontSize: 16, marginTop: 8, fontWeight: 'bold'}; + + return ( + + {'Nested s:'} + + {marker} + + {texts} + + {marker} + + + {'Array of s in :'} + + {marker} + {texts} + {marker} + + + {'Interleaving and :'} + + {marker} + + Some text. + + {marker} + Text inside View. + {marker} + + + {marker} + + + {':'} + + {marker} + + {texts} + + {marker} + + + {':'} + + {marker} + + {texts} + + {marker} + + + ); + } +} + exports.title = ''; exports.description = 'Base component for rendering styled text.'; exports.displayName = 'TextExample'; @@ -780,4 +844,10 @@ exports.examples = [ return ; }, }, + { + title: 'Text `alignItems: \'baseline\'` style', + render: function() { + return ; + }, + }, ]; From 51b3529f6c2ca354800c0cf6ecb8eb3115eaa36e Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Thu, 15 Feb 2018 17:40:12 -0800 Subject: [PATCH 039/267] `base-line` metric exposure for Summary: Now exposes base-line metric to Yoga. Before: https://cl.ly/1F0B0D430U3e After: https://cl.ly/0G1Q29450O0y Reviewed By: yungsters Differential Revision: D6957055 fbshipit-source-id: 04c1df693915e294b54e3c33e0aea21611dcc232 --- Libraries/Text/Text/RCTTextShadowView.m | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Libraries/Text/Text/RCTTextShadowView.m b/Libraries/Text/Text/RCTTextShadowView.m index 2a00e97ba2eb7c..790916354067b0 100644 --- a/Libraries/Text/Text/RCTTextShadowView.m +++ b/Libraries/Text/Text/RCTTextShadowView.m @@ -31,6 +31,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _cachedTextStorages = [NSMapTable strongToStrongObjectsMapTable]; _needsUpdateView = YES; YGNodeSetMeasureFunc(self.yogaNode, RCTTextShadowViewMeasure); + YGNodeSetBaselineFunc(self.yogaNode, RCTTextShadowViewBaseline); } return self; @@ -307,6 +308,27 @@ - (void)layoutSubviewsWithContext:(RCTLayoutContext)layoutContext ]; } +- (CGFloat)lastBaselineForSize:(CGSize)size +{ + NSAttributedString *attributedText = + [self textStorageAndLayoutManagerThatFitsSize:size exclusiveOwnership:NO]; + + __block CGFloat maximumDescender = 0.0; + + [attributedText enumerateAttribute:NSFontAttributeName + inRange:NSMakeRange(0, attributedText.length) + options:NSAttributedStringEnumerationLongestEffectiveRangeNotRequired + usingBlock: + ^(UIFont *font, NSRange range, __unused BOOL *stop) { + if (maximumDescender > font.descender) { + maximumDescender = font.descender; + } + } + ]; + + return size.height + maximumDescender; +} + static YGSize RCTTextShadowViewMeasure(YGNodeRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode) { CGSize maximumSize = (CGSize){ @@ -341,4 +363,18 @@ static YGSize RCTTextShadowViewMeasure(YGNodeRef node, float width, YGMeasureMod }; } +static float RCTTextShadowViewBaseline(YGNodeRef node, const float width, const float height) +{ + RCTTextShadowView *shadowTextView = (__bridge RCTTextShadowView *)YGNodeGetContext(node); + + CGSize size = (CGSize){ + RCTCoreGraphicsFloatFromYogaFloat(width), + RCTCoreGraphicsFloatFromYogaFloat(height) + }; + + CGFloat lastBaseline = [shadowTextView lastBaselineForSize:size]; + + return RCTYogaFloatFromCoreGraphicsFloat(lastBaseline); +} + @end From 0dbe18375ebb712be8bebd3b6592170f90f8b7bc Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Thu, 15 Feb 2018 17:40:14 -0800 Subject: [PATCH 040/267] `base-line` metric exposure for Summary: Now (both bersions) exposes base-line metric to Yoga. Before: https://cl.ly/0G1Q29450O0y After: https://cl.ly/2X103V3O0322 Reviewed By: yungsters Differential Revision: D6957054 fbshipit-source-id: d76d96f56720d710a4230c53beafdb0b2521e8a9 --- .../TextInput/RCTBaseTextInputShadowView.m | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m index faaaf775f06742..0d60c3c49d59b6 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m @@ -37,6 +37,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _needsUpdateView = YES; YGNodeSetMeasureFunc(self.yogaNode, RCTBaseTextInputShadowViewMeasure); + YGNodeSetBaselineFunc(self.yogaNode, RCTTextInputShadowViewBaseline); } return self; @@ -167,7 +168,7 @@ - (void)uiManagerWillPerformMounting #pragma mark - -- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize +- (NSAttributedString *)measurableAttributedText { // Only for the very first render when we don't have `_localAttributedText`, // we use value directly from the property and/or nested content. @@ -187,6 +188,13 @@ - (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximu attributedText = [[NSAttributedString alloc] initWithString:text attributes:self.textAttributes.effectiveTextAttributes]; } + return attributedText; +} + +- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize +{ + NSAttributedString *attributedText = [self measurableAttributedText]; + if (!_textStorage) { _textContainer = [NSTextContainer new]; _textContainer.lineFragmentPadding = 0.0; // Note, the default value is 5. @@ -209,6 +217,26 @@ - (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximu }; } +- (CGFloat)lastBaselineForSize:(CGSize)size +{ + NSAttributedString *attributedText = [self measurableAttributedText]; + + __block CGFloat maximumDescender = 0.0; + + [attributedText enumerateAttribute:NSFontAttributeName + inRange:NSMakeRange(0, attributedText.length) + options:NSAttributedStringEnumerationLongestEffectiveRangeNotRequired + usingBlock: + ^(UIFont *font, NSRange range, __unused BOOL *stop) { + if (maximumDescender > font.descender) { + maximumDescender = font.descender; + } + } + ]; + + return size.height + maximumDescender; +} + static YGSize RCTBaseTextInputShadowViewMeasure(YGNodeRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode) { RCTShadowView *shadowView = (__bridge RCTShadowView *)YGNodeGetContext(node); @@ -253,4 +281,18 @@ static YGSize RCTBaseTextInputShadowViewMeasure(YGNodeRef node, float width, YGM }; } +static float RCTTextInputShadowViewBaseline(YGNodeRef node, const float width, const float height) +{ + RCTBaseTextInputShadowView *shadowTextView = (__bridge RCTBaseTextInputShadowView *)YGNodeGetContext(node); + + CGSize size = (CGSize){ + RCTCoreGraphicsFloatFromYogaFloat(width), + RCTCoreGraphicsFloatFromYogaFloat(height) + }; + + CGFloat lastBaseline = [shadowTextView lastBaselineForSize:size]; + + return RCTYogaFloatFromCoreGraphicsFloat(lastBaseline); +} + @end From 574c70e771dfba4c663be083abe4d0cb1afc260f Mon Sep 17 00:00:00 2001 From: Taras Tsugrii Date: Thu, 15 Feb 2018 20:05:26 -0800 Subject: [PATCH 041/267] Use only native robolectric_test rules. Reviewed By: adamjernst Differential Revision: D6997829 fbshipit-source-id: 5f8d41a6126f02c9fb9d0fb90d89df28eeea9653 --- ReactNative/DEFS.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactNative/DEFS.bzl b/ReactNative/DEFS.bzl index a9f5b39813a2be..9cca53e663b890 100644 --- a/ReactNative/DEFS.bzl +++ b/ReactNative/DEFS.bzl @@ -150,7 +150,7 @@ def rn_robolectric_test(name, srcs, vm_args=None, *args, **kwargs): # RN tests use Powermock, which means they get their own ClassLoaders. # Because the yoga native library (or any native library) can only be loaded into one # ClassLoader at a time, we need to run each in its own process, hence fork_mode = 'per_test'. - robolectric_test( + native.robolectric_test( name=name, use_cxx_libraries=True, cxx_library_whitelist=[ From b48f7e560545d53db7c906ced51a91c4cce6ee94 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Fri, 16 Feb 2018 11:43:34 -0800 Subject: [PATCH 042/267] Support for animated tracking in native driver Summary: This PR adds support for Animated tracking to Animated Native Driver implementation on Android and iOS. Animated tracking allows for animation to be started with a "dynamic" end value. Instead of passing a fixed number as end value we can pass a reference to another Animated.Value. Then when that value changes, the animation will be reconfigured to drive the animation to the new destination point. What is important is that animation will keep its state in the process of updating "toValue". That is if it is a spring animation and the end value changes while the previous animation still hasn't settled the new animation will start from the current position and will inherit current velocity. This makes end value transitions very smooth. Animated tracking is available in JS implementation of Animated library but not in the native implementation. Therefore until now, it wasn't possible to utilize native driver when using animated tracking. Offloading animation from JS thread turns out to be crucial for gesture driven animations. This PR is a step forward towards feature parity between JS and native implementations of Animated. Here is a link to example video that shows how tracking can be used to implement chat heads effect: https://twitter.com/kzzzf/status/958362032650244101 In addition this PR fixes an issue with frames animation driver on Android that because of rounding issues was taking one extra frame to start. Because of that change I had to update a number of Android unit tests that were relying on that behavior and running that one additional animation step prior to performing checks. As a part of this PR I'm adding three unit tests for each of the platforms that verifies most important aspects of this implementation. Please refer to the code and look at the test cases top level comments to learn what they do. I'm also adding a section to "Native Animated Example" screen in RNTester app that provides a test case for tracking. In the example we have blue square that fallows the red line drawn on screen. Line uses Animated.Value for it's position while square is connected via tracking spring animation to that value. So it is ought to follow the line. When user taps in the area surrounding the button new position for the red line is selected at random and the value updates. Then we can watch blue screen animate to that position. You can also refer to this video that I use to demonstrate how tracking can be linked with native gesture events using react-native-gesture-handler lib: https://twitter.com/kzzzf/status/958362032650244101 [GENERAL][FEATURE][Native Animated] - Added support for animated tracking to native driver. Now you can use `useNativeDriver` flag with animations that track other Animated.Values Closes https://github.com/facebook/react-native/pull/17896 Differential Revision: D6974170 Pulled By: hramos fbshipit-source-id: 50e918b36ee10f80c1deb866c955661d4cc2619b --- .../Animated/src/nodes/AnimatedTracking.js | 37 +++ Libraries/Animated/src/nodes/AnimatedValue.js | 5 +- .../Drivers/RCTAnimationDriver.h | 1 + .../Drivers/RCTDecayAnimation.m | 23 +- .../Drivers/RCTFrameAnimation.m | 29 +- .../Drivers/RCTSpringAnimation.m | 44 +-- .../NativeAnimation/Nodes/RCTAnimatedNode.h | 3 + .../Nodes/RCTTrackingAnimatedNode.h | 15 + .../Nodes/RCTTrackingAnimatedNode.m | 54 ++++ .../RCTAnimation.xcodeproj/project.pbxproj | 12 + .../RCTNativeAnimatedNodesManager.m | 14 +- .../RCTNativeAnimatedNodesManagerTests.m | 223 ++++++++++++++ RNTester/js/NativeAnimationsExample.js | 75 +++++ .../react/animated/AnimationDriver.java | 13 + .../react/animated/DecayAnimation.java | 18 +- .../animated/FrameBasedAnimationDriver.java | 20 +- .../animated/NativeAnimatedNodesManager.java | 39 ++- .../react/animated/SpringAnimation.java | 16 +- .../react/animated/TrackingAnimatedNode.java | 37 +++ .../facebook/react/bridge/JavaOnlyArray.java | 32 +- .../facebook/react/bridge/JavaOnlyMap.java | 34 ++- .../NativeAnimatedNodeTraversalTest.java | 276 ++++++++++++++---- 22 files changed, 899 insertions(+), 121 deletions(-) create mode 100644 Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h create mode 100644 Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m create mode 100644 ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.java diff --git a/Libraries/Animated/src/nodes/AnimatedTracking.js b/Libraries/Animated/src/nodes/AnimatedTracking.js index 1a54f78abb5a23..0ec517d12bd560 100644 --- a/Libraries/Animated/src/nodes/AnimatedTracking.js +++ b/Libraries/Animated/src/nodes/AnimatedTracking.js @@ -14,6 +14,10 @@ const AnimatedValue = require('./AnimatedValue'); const AnimatedNode = require('./AnimatedNode'); +const { + generateNewAnimationId, + shouldUseNativeDriver, +} = require('../NativeAnimatedHelper'); import type {EndCallback} from '../animations/Animation'; @@ -23,6 +27,7 @@ class AnimatedTracking extends AnimatedNode { _callback: ?EndCallback; _animationConfig: Object; _animationClass: any; + _useNativeDriver: boolean; constructor( value: AnimatedValue, @@ -36,16 +41,32 @@ class AnimatedTracking extends AnimatedNode { this._parent = parent; this._animationClass = animationClass; this._animationConfig = animationConfig; + this._useNativeDriver = shouldUseNativeDriver(animationConfig); this._callback = callback; this.__attach(); } + __makeNative() { + this.__isNative = true; + this._parent.__makeNative(); + super.__makeNative(); + this._value.__makeNative(); + } + __getValue(): Object { return this._parent.__getValue(); } __attach(): void { this._parent.__addChild(this); + if (this._useNativeDriver) { + // when the tracking starts we need to convert this node to a "native node" + // so that the parent node will be made "native" too. This is necessary as + // if we don't do this `update` method will get called. At that point it + // may be too late as it would mean the JS driver has already started + // updating node values + this.__makeNative(); + } } __detach(): void { @@ -62,6 +83,22 @@ class AnimatedTracking extends AnimatedNode { this._callback, ); } + + __getNativeConfig(): any { + const animation = new this._animationClass({ + ...this._animationConfig, + // remove toValue from the config as it's a ref to Animated.Value + toValue: undefined, + }); + const animationConfig = animation.__getNativeAnimationConfig(); + return { + type: 'tracking', + animationId: generateNewAnimationId(), + animationConfig, + toValue: this._parent.__getNativeTag(), + value: this._value.__getNativeTag(), + }; + } } module.exports = AnimatedTracking; diff --git a/Libraries/Animated/src/nodes/AnimatedValue.js b/Libraries/Animated/src/nodes/AnimatedValue.js index 49f440471e1ba3..d5a5de9a9e48c7 100644 --- a/Libraries/Animated/src/nodes/AnimatedValue.js +++ b/Libraries/Animated/src/nodes/AnimatedValue.js @@ -20,6 +20,7 @@ const NativeAnimatedHelper = require('../NativeAnimatedHelper'); import type Animation, {EndCallback} from '../animations/Animation'; import type {InterpolationConfigType} from './AnimatedInterpolation'; +import type AnimatedTracking from './AnimatedTracking'; const NativeAnimatedAPI = NativeAnimatedHelper.API; @@ -76,7 +77,7 @@ class AnimatedValue extends AnimatedWithChildren { _startingValue: number; _offset: number; _animation: ?Animation; - _tracking: ?AnimatedNode; + _tracking: ?AnimatedTracking; _listeners: {[key: string]: ValueListenerCallback}; __nativeAnimatedValueListener: ?any; @@ -311,7 +312,7 @@ class AnimatedValue extends AnimatedWithChildren { /** * Typically only used internally. */ - track(tracking: AnimatedNode): void { + track(tracking: AnimatedTracking): void { this.stopTracking(); this._tracking = tracking; } diff --git a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h index b87fd68c41381b..3364f174ae3734 100644 --- a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h +++ b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h @@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)startAnimation; - (void)stepAnimationWithTime:(NSTimeInterval)currentTime; - (void)stopAnimation; +- (void)resetAnimationConfig:(NSDictionary *)config; NS_ASSUME_NONNULL_END diff --git a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m index cb471f95ed8443..027ca81524f25f 100644 --- a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m @@ -41,22 +41,27 @@ - (instancetype)initWithId:(NSNumber *)animationId callBack:(nullable RCTResponseSenderBlock)callback; { if ((self = [super init])) { - NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; - + _callback = [callback copy]; _animationId = animationId; + _valueNode = valueNode; _fromValue = 0; _lastValue = 0; - _valueNode = valueNode; - _callback = [callback copy]; - _velocity = [RCTConvert CGFloat:config[@"velocity"]]; - _deceleration = [RCTConvert CGFloat:config[@"deceleration"]]; - _iterations = iterations.integerValue; - _currentLoop = 1; - _animationHasFinished = iterations.integerValue == 0; + _velocity = [RCTConvert CGFloat:config[@"velocity"]]; // initial velocity + [self resetAnimationConfig:config]; } return self; } +- (void)resetAnimationConfig:(NSDictionary *)config +{ + NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; + _fromValue = _lastValue; + _deceleration = [RCTConvert CGFloat:config[@"deceleration"]]; + _iterations = iterations.integerValue; + _currentLoop = 1; + _animationHasFinished = iterations.integerValue == 0; +} + RCT_NOT_IMPLEMENTED(- (instancetype)init) - (void)startAnimation diff --git a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m index a46fea6bf26ec3..53846b2d0a2204 100644 --- a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m @@ -31,6 +31,7 @@ @implementation RCTFrameAnimation NSArray *_frames; CGFloat _toValue; CGFloat _fromValue; + CGFloat _lastPosition; NSTimeInterval _animationStartTime; NSTimeInterval _animationCurrentTime; RCTResponseSenderBlock _callback; @@ -44,23 +45,30 @@ - (instancetype)initWithId:(NSNumber *)animationId callBack:(nullable RCTResponseSenderBlock)callback; { if ((self = [super init])) { - NSNumber *toValue = [RCTConvert NSNumber:config[@"toValue"]] ?: @1; - NSArray *frames = [RCTConvert NSNumberArray:config[@"frames"]]; - NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; - _animationId = animationId; - _toValue = toValue.floatValue; - _fromValue = valueNode.value; + _lastPosition = _fromValue = valueNode.value; _valueNode = valueNode; - _frames = [frames copy]; _callback = [callback copy]; - _animationHasFinished = iterations.integerValue == 0; - _iterations = iterations.integerValue; - _currentLoop = 1; + [self resetAnimationConfig:config]; } return self; } +- (void)resetAnimationConfig:(NSDictionary *)config +{ + NSNumber *toValue = [RCTConvert NSNumber:config[@"toValue"]] ?: @1; + NSArray *frames = [RCTConvert NSNumberArray:config[@"frames"]]; + NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; + + _fromValue = _lastPosition; + _toValue = toValue.floatValue; + _frames = [frames copy]; + _animationStartTime = _animationCurrentTime = -1; + _animationHasFinished = iterations.integerValue == 0; + _iterations = iterations.integerValue; + _currentLoop = 1; +} + RCT_NOT_IMPLEMENTED(- (instancetype)init) - (void)startAnimation @@ -144,6 +152,7 @@ - (void)updateOutputWithFrameOutput:(CGFloat)frameOutput EXTRAPOLATE_TYPE_EXTEND, EXTRAPOLATE_TYPE_EXTEND); + _lastPosition = outputValue; _valueNode.value = outputValue; [_valueNode setNeedsUpdate]; } diff --git a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m index e4811f601d2594..932433a16dae08 100644 --- a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m @@ -57,33 +57,37 @@ - (instancetype)initWithId:(NSNumber *)animationId callBack:(nullable RCTResponseSenderBlock)callback { if ((self = [super init])) { - NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; - _animationId = animationId; - _toValue = [RCTConvert CGFloat:config[@"toValue"]]; - _fromValue = valueNode.value; - _lastPosition = 0; + _lastPosition = valueNode.value; _valueNode = valueNode; - _overshootClamping = [RCTConvert BOOL:config[@"overshootClamping"]]; - _restDisplacementThreshold = [RCTConvert CGFloat:config[@"restDisplacementThreshold"]]; - _restSpeedThreshold = [RCTConvert CGFloat:config[@"restSpeedThreshold"]]; - _stiffness = [RCTConvert CGFloat:config[@"stiffness"]]; - _damping = [RCTConvert CGFloat:config[@"damping"]]; - _mass = [RCTConvert CGFloat:config[@"mass"]]; - _initialVelocity = [RCTConvert CGFloat:config[@"initialVelocity"]]; - + _lastVelocity = [RCTConvert CGFloat:config[@"initialVelocity"]]; _callback = [callback copy]; - - _lastPosition = _fromValue; - _lastVelocity = _initialVelocity; - - _animationHasFinished = iterations.integerValue == 0; - _iterations = iterations.integerValue; - _currentLoop = 1; + [self resetAnimationConfig:config]; } return self; } +- (void)resetAnimationConfig:(NSDictionary *)config +{ + NSNumber *iterations = [RCTConvert NSNumber:config[@"iterations"]] ?: @1; + _toValue = [RCTConvert CGFloat:config[@"toValue"]]; + _overshootClamping = [RCTConvert BOOL:config[@"overshootClamping"]]; + _restDisplacementThreshold = [RCTConvert CGFloat:config[@"restDisplacementThreshold"]]; + _restSpeedThreshold = [RCTConvert CGFloat:config[@"restSpeedThreshold"]]; + _stiffness = [RCTConvert CGFloat:config[@"stiffness"]]; + _damping = [RCTConvert CGFloat:config[@"damping"]]; + _mass = [RCTConvert CGFloat:config[@"mass"]]; + _initialVelocity = _lastVelocity; + _fromValue = _lastPosition; + _fromValue = _lastPosition; + _lastVelocity = _initialVelocity; + _animationHasFinished = iterations.integerValue == 0; + _iterations = iterations.integerValue; + _currentLoop = 1; + _animationStartTime = _animationCurrentTime = -1; + _animationHasBegun = YES; +} + RCT_NOT_IMPLEMENTED(- (instancetype)init) - (void)startAnimation diff --git a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h index 198e02c9cfc90f..a8cad4e939c82e 100644 --- a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h @@ -9,12 +9,15 @@ #import +@class RCTNativeAnimatedNodesManager; + @interface RCTAnimatedNode : NSObject - (instancetype)initWithTag:(NSNumber *)tag config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; @property (nonatomic, readonly) NSNumber *nodeTag; +@property (nonatomic, weak) RCTNativeAnimatedNodesManager *manager; @property (nonatomic, copy, readonly) NSDictionary *config; @property (nonatomic, copy, readonly) NSMapTable *childNodes; diff --git a/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h new file mode 100644 index 00000000000000..8f3281789ddbb0 --- /dev/null +++ b/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h @@ -0,0 +1,15 @@ +/** + * 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 "RCTAnimatedNode.h" + + +@interface RCTTrackingAnimatedNode : RCTAnimatedNode + +@end diff --git a/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m new file mode 100644 index 00000000000000..e77b773e040a12 --- /dev/null +++ b/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m @@ -0,0 +1,54 @@ +/** + * 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 "RCTTrackingAnimatedNode.h" +#import "RCTValueAnimatedNode.h" +#import "RCTNativeAnimatedNodesManager.h" + +@implementation RCTTrackingAnimatedNode { + NSNumber *_animationId; + NSNumber *_toValueNodeTag; + NSNumber *_valueNodeTag; + NSMutableDictionary *_animationConfig; +} + +- (instancetype)initWithTag:(NSNumber *)tag + config:(NSDictionary *)config +{ + if ((self = [super initWithTag:tag config:config])) { + _animationId = config[@"animationId"]; + _toValueNodeTag = config[@"toValue"]; + _valueNodeTag = config[@"value"]; + _animationConfig = [NSMutableDictionary dictionaryWithDictionary:config[@"animationConfig"]]; + } + return self; +} + +- (void)onDetachedFromNode:(RCTAnimatedNode *)parent +{ + [self.manager stopAnimation:_animationId]; + [super onDetachedFromNode:parent]; +} + +- (void)performUpdate +{ + [super performUpdate]; + + // change animation config's "toValue" to reflect updated value of the parent node + RCTValueAnimatedNode *node = (RCTValueAnimatedNode *)[self.parentNodes objectForKey:_toValueNodeTag]; + _animationConfig[@"toValue"] = @(node.value); + + [self.manager startAnimatingNode:_animationId + nodeTag:_valueNodeTag + config:_animationConfig + endCallback:nil]; +} + +@end + diff --git a/Libraries/NativeAnimation/RCTAnimation.xcodeproj/project.pbxproj b/Libraries/NativeAnimation/RCTAnimation.xcodeproj/project.pbxproj index cddec7f5e67eeb..0ba2446271568a 100644 --- a/Libraries/NativeAnimation/RCTAnimation.xcodeproj/project.pbxproj +++ b/Libraries/NativeAnimation/RCTAnimation.xcodeproj/project.pbxproj @@ -111,6 +111,10 @@ 2D3B5EFE1D9B0B4800451313 /* RCTStyleAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E501E31D07A6C9005F35D8 /* RCTStyleAnimatedNode.m */; }; 2D3B5EFF1D9B0B4800451313 /* RCTTransformAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E501E51D07A6C9005F35D8 /* RCTTransformAnimatedNode.m */; }; 2D3B5F001D9B0B4800451313 /* RCTValueAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E501E71D07A6C9005F35D8 /* RCTValueAnimatedNode.m */; }; + 44DB7D942024F74200588FCD /* RCTTrackingAnimatedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 44DB7D932024F74200588FCD /* RCTTrackingAnimatedNode.h */; }; + 44DB7D952024F74200588FCD /* RCTTrackingAnimatedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 44DB7D932024F74200588FCD /* RCTTrackingAnimatedNode.h */; }; + 44DB7D972024F75100588FCD /* RCTTrackingAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 44DB7D962024F75100588FCD /* RCTTrackingAnimatedNode.m */; }; + 44DB7D982024F75100588FCD /* RCTTrackingAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 44DB7D962024F75100588FCD /* RCTTrackingAnimatedNode.m */; }; 5C9894951D999639008027DB /* RCTDivisionAnimatedNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C9894941D999639008027DB /* RCTDivisionAnimatedNode.m */; }; 944244D01DB962DA0032A02B /* RCTFrameAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 94C1294D1D4069170025F25C /* RCTFrameAnimation.m */; }; 944244D11DB962DC0032A02B /* RCTSpringAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 94C1294F1D4069170025F25C /* RCTSpringAnimation.m */; }; @@ -209,6 +213,8 @@ 19F00F201DC8847500113FEE /* RCTEventAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTEventAnimation.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 19F00F211DC8847500113FEE /* RCTEventAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTEventAnimation.m; sourceTree = ""; }; 2D2A28201D9B03D100D4039D /* libRCTAnimation.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTAnimation.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 44DB7D932024F74200588FCD /* RCTTrackingAnimatedNode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTTrackingAnimatedNode.h; sourceTree = ""; }; + 44DB7D962024F75100588FCD /* RCTTrackingAnimatedNode.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTTrackingAnimatedNode.m; sourceTree = ""; }; 5C9894931D999639008027DB /* RCTDivisionAnimatedNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTDivisionAnimatedNode.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 5C9894941D999639008027DB /* RCTDivisionAnimatedNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDivisionAnimatedNode.m; sourceTree = ""; }; 94C1294A1D4069170025F25C /* RCTAnimationDriver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTAnimationDriver.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; @@ -256,6 +262,8 @@ 13E501E51D07A6C9005F35D8 /* RCTTransformAnimatedNode.m */, 13E501E61D07A6C9005F35D8 /* RCTValueAnimatedNode.h */, 13E501E71D07A6C9005F35D8 /* RCTValueAnimatedNode.m */, + 44DB7D932024F74200588FCD /* RCTTrackingAnimatedNode.h */, + 44DB7D962024F75100588FCD /* RCTTrackingAnimatedNode.m */, ); path = Nodes; sourceTree = ""; @@ -314,6 +322,7 @@ 192F69891E823F4A008692C7 /* RCTDiffClampAnimatedNode.h in Headers */, 192F698A1E823F4A008692C7 /* RCTAdditionAnimatedNode.h in Headers */, 192F698B1E823F4A008692C7 /* RCTAnimatedNode.h in Headers */, + 44DB7D952024F74200588FCD /* RCTTrackingAnimatedNode.h in Headers */, 192F698C1E823F4A008692C7 /* RCTInterpolationAnimatedNode.h in Headers */, 192F698D1E823F4A008692C7 /* RCTModuloAnimatedNode.h in Headers */, 192F698E1E823F4A008692C7 /* RCTMultiplicationAnimatedNode.h in Headers */, @@ -340,6 +349,7 @@ 1980B71D1E80D1C4004DC789 /* RCTDiffClampAnimatedNode.h in Headers */, 1980B71F1E80D1C4004DC789 /* RCTAdditionAnimatedNode.h in Headers */, 1980B7211E80D1C4004DC789 /* RCTAnimatedNode.h in Headers */, + 44DB7D942024F74200588FCD /* RCTTrackingAnimatedNode.h in Headers */, 1980B7231E80D1C4004DC789 /* RCTInterpolationAnimatedNode.h in Headers */, 1980B7251E80D1C4004DC789 /* RCTModuloAnimatedNode.h in Headers */, 1980B7271E80D1C4004DC789 /* RCTMultiplicationAnimatedNode.h in Headers */, @@ -441,6 +451,7 @@ 2D3B5EFA1D9B0B4800451313 /* RCTInterpolationAnimatedNode.m in Sources */, 2D3B5EFF1D9B0B4800451313 /* RCTTransformAnimatedNode.m in Sources */, 2D3B5EFC1D9B0B4800451313 /* RCTMultiplicationAnimatedNode.m in Sources */, + 44DB7D982024F75100588FCD /* RCTTrackingAnimatedNode.m in Sources */, 2D3B5EFD1D9B0B4800451313 /* RCTPropsAnimatedNode.m in Sources */, 944244D01DB962DA0032A02B /* RCTFrameAnimation.m in Sources */, 944244D11DB962DC0032A02B /* RCTSpringAnimation.m in Sources */, @@ -466,6 +477,7 @@ 13E501EC1D07A6C9005F35D8 /* RCTMultiplicationAnimatedNode.m in Sources */, 13E501ED1D07A6C9005F35D8 /* RCTPropsAnimatedNode.m in Sources */, 13E501E91D07A6C9005F35D8 /* RCTAnimatedNode.m in Sources */, + 44DB7D972024F75100588FCD /* RCTTrackingAnimatedNode.m in Sources */, 13E501EB1D07A6C9005F35D8 /* RCTInterpolationAnimatedNode.m in Sources */, 13E501E81D07A6C9005F35D8 /* RCTAdditionAnimatedNode.m in Sources */, 5C9894951D999639008027DB /* RCTDivisionAnimatedNode.m in Sources */, diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m index f37046612cbe1d..ee82a8008c7cf6 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +++ b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m @@ -27,6 +27,7 @@ #import "RCTStyleAnimatedNode.h" #import "RCTTransformAnimatedNode.h" #import "RCTValueAnimatedNode.h" +#import "RCTTrackingAnimatedNode.h" @implementation RCTNativeAnimatedNodesManager { @@ -67,7 +68,8 @@ - (void)createAnimatedNode:(nonnull NSNumber *)tag @"division" : [RCTDivisionAnimatedNode class], @"multiplication" : [RCTMultiplicationAnimatedNode class], @"modulus" : [RCTModuloAnimatedNode class], - @"transform" : [RCTTransformAnimatedNode class]}; + @"transform" : [RCTTransformAnimatedNode class], + @"tracking" : [RCTTrackingAnimatedNode class]}; }); NSString *nodeType = [RCTConvert NSString:config[@"type"]]; @@ -79,6 +81,7 @@ - (void)createAnimatedNode:(nonnull NSNumber *)tag } RCTAnimatedNode *node = [[nodeClass alloc] initWithTag:tag config:config]; + node.manager = self; _animationNodes[tag] = node; [node setNeedsUpdate]; } @@ -222,6 +225,15 @@ - (void)startAnimatingNode:(nonnull NSNumber *)animationId config:(NSDictionary *)config endCallback:(RCTResponseSenderBlock)callBack { + // check if the animation has already started + for (id driver in _activeAnimations) { + if ([driver.animationId isEqual:animationId]) { + // if the animation is running, we restart it with an updated configuration + [driver resetAnimationConfig:config]; + return; + } + } + RCTValueAnimatedNode *valueNode = (RCTValueAnimatedNode *)_animationNodes[nodeTag]; NSString *type = config[@"type"]; diff --git a/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m b/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m index 70678ac2854269..358264899fb528 100644 --- a/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m +++ b/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m @@ -865,4 +865,227 @@ - (void)testNativeAnimatedEventDoNotUpdate [_uiManager verify]; } +/** + * Creates a following graph of nodes: + * Value(3, initialValue) ----> Style(4) ---> Props(5) ---> View(viewTag) + * + * Value(3) is set to track Value(1) via Tracking(2) node with the provided animation config + */ +- (void)createAnimatedGraphWithTrackingNode:(NSNumber *)viewTag + initialValue:(CGFloat)initialValue + animationConfig:(NSDictionary *)animationConfig +{ + [_nodesManager createAnimatedNode:@1 + config:@{@"type": @"value", @"value": @(initialValue), @"offset": @0}]; + [_nodesManager createAnimatedNode:@3 + config:@{@"type": @"value", @"value": @(initialValue), @"offset": @0}]; + + [_nodesManager createAnimatedNode:@2 + config:@{@"type": @"tracking", + @"animationId": @70, + @"value": @3, + @"toValue": @1, + @"animationConfig": animationConfig}]; + [_nodesManager createAnimatedNode:@4 + config:@{@"type": @"style", @"style": @{@"translateX": @3}}]; + [_nodesManager createAnimatedNode:@5 + config:@{@"type": @"props", @"props": @{@"style": @4}}]; + + [_nodesManager connectAnimatedNodes:@1 childTag:@2]; + [_nodesManager connectAnimatedNodes:@3 childTag:@4]; + [_nodesManager connectAnimatedNodes:@4 childTag:@5]; + [_nodesManager connectAnimatedNodeToView:@5 viewTag:viewTag viewName:@"UIView"]; +} + +/** + * In this test we verify that when value is being tracked we can update destination value in the + * middle of ongoing animation and the animation will update and animate to the new spot. This is + * tested using simple 5 frame backed timing animation. + */ +- (void)testTracking +{ + NSArray *frames = @[@0, @0.25, @0.5, @0.75, @1]; + NSDictionary *animationConfig = @{@"type": @"frames", @"frames": frames}; + [self createAnimatedGraphWithTrackingNode:@1000 initialValue:0 animationConfig:animationConfig]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + [[_uiManager expect] synchronouslyUpdateViewOnUIThread:@1000 + viewName:@"UIView" + props:RCTPropChecker(@"translateX", 0)]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; + + // update "toValue" to 100, we expect tracking animation to animate now from 0 to 100 in 5 steps + [_nodesManager setAnimatedNodeValue:@1 value:@100]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + for (NSNumber *frame in frames) { + NSNumber *expected = @([frame doubleValue] * 100); + [[_uiManager expect] synchronouslyUpdateViewOnUIThread:@1000 + viewName:@"UIView" + props:RCTPropChecker(@"translateX", expected)]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; + } + + // update "toValue" to 0 but run only two frames from the animation, + // we expect tracking animation to animate now from 100 to 75 + [_nodesManager setAnimatedNodeValue:@1 value:@0]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + for (int i = 0; i < 2; i++) { + NSNumber *expected = @(100. * (1. - [frames[i] doubleValue])); + [[_uiManager expect] synchronouslyUpdateViewOnUIThread:@1000 + viewName:@"UIView" + props:RCTPropChecker(@"translateX", expected)]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; + } + + // at this point we expect tracking value to be at 75 + // we update "toValue" again to 100 and expect the animation to restart from the current place + [_nodesManager setAnimatedNodeValue:@1 value:@100]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + for (NSNumber *frame in frames) { + NSNumber *expected = @(50. + 50. * [frame doubleValue]); + [[_uiManager expect] synchronouslyUpdateViewOnUIThread:@1000 + viewName:@"UIView" + props:RCTPropChecker(@"translateX", expected)]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; + } + + [_nodesManager stepAnimations:_displayLink]; + [[_uiManager reject] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; +} + +/** + * In this test we verify that when tracking is set up for a given animated node and when the + * animation settles it will not be registered as an active animation and therefore will not + * consume resources on running the animation that has already completed. Then we verify that when + * the value updates the animation will resume as expected and the complete again when reaches the + * end. + */ + + - (void)testTrackingPausesWhenEndValueIsReached +{ + NSArray *frames = @[@0, @0.5, @1]; + NSDictionary *animationConfig = @{@"type": @"frames", @"frames": frames}; + [self createAnimatedGraphWithTrackingNode:@1000 initialValue:0 animationConfig:animationConfig]; + + [_nodesManager setAnimatedNodeValue:@1 value:@100]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + __block int callCount = 0; + [[[_uiManager stub] andDo:^(NSInvocation* __unused invocation) { + callCount++; + }] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + + for (NSUInteger i = 0; i < frames.count; i++) { + [_nodesManager stepAnimations:_displayLink]; + } + [_nodesManager stepAnimations:_displayLink]; + XCTAssertEqual(callCount, 4); + + // the animation has completed, we expect no updates to be done + [[[_uiManager stub] andDo:^(NSInvocation* __unused invocation) { + XCTFail("Expected not to be called"); + }] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; + + // restore rejected method, we will use it later on + callCount = 0; + [[[_uiManager stub] andDo:^(NSInvocation* __unused invocation) { + callCount++; + }] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + + // we update end value and expect the animation to restart + [_nodesManager setAnimatedNodeValue:@1 value:@200]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + for (NSUInteger i = 0; i < frames.count; i++) { + [_nodesManager stepAnimations:_displayLink]; + } + [_nodesManager stepAnimations:_displayLink]; + XCTAssertEqual(callCount, 4); + + // the animation has completed, we expect no updates to be done + [[_uiManager reject] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + [_nodesManager stepAnimations:_displayLink]; + [_uiManager verify]; +} + +/** + * In this test we verify that when tracking is configured to use spring animation and when the + * destination value updates the current speed of the animated value will be taken into account + * while updating the spring animation and it will smoothly transition to the new end value. + */ +- (void) testSpringTrackingRetainsSpeed +{ + // this spring config correspomds to tension 20 and friction 0.5 which makes the spring settle + // very slowly + NSDictionary *springConfig = @{@"type": @"spring", + @"restSpeedThreshold": @0.001, + @"mass": @1, + @"restDisplacementThreshold": @0.001, + @"initialVelocity": @0.5, + @"damping": @2.5, + @"stiffness": @157.8, + @"overshootClamping": @NO}; + [self createAnimatedGraphWithTrackingNode:@1000 initialValue:0 animationConfig:springConfig]; + + __block CGFloat lastTranslateX = 0; + [[[_uiManager stub] andDo:^(NSInvocation *invocation) { + __unsafe_unretained NSDictionary *props = nil; + [invocation getArgument:&props atIndex:4]; + lastTranslateX = [props[@"translateX"] doubleValue]; + }] synchronouslyUpdateViewOnUIThread:OCMOCK_ANY viewName:OCMOCK_ANY props:OCMOCK_ANY]; + + // update "toValue" to 1, we expect tracking animation to animate now from 0 to 1 + [_nodesManager setAnimatedNodeValue:@1 value:@1]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + // we run several steps of animation until the value starts bouncing, has negative speed and + // passes the final point (that is 1) while going backwards + BOOL isBoucingBack = NO; + CGFloat previousValue = 0; + for (int maxFrames = 500; maxFrames > 0; maxFrames--) { + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + if (previousValue >= 1. && lastTranslateX < 1.) { + isBoucingBack = YES; + break; + } + previousValue = lastTranslateX; + } + XCTAssert(isBoucingBack); + + // we now update "toValue" to 1.5 but since the value have negative speed and has also pretty + // low friction we expect it to keep going in the opposite direction for a few more frames + [_nodesManager setAnimatedNodeValue:@1 value:@1.5]; + [_nodesManager stepAnimations:_displayLink]; // kick off the tracking + + int bounceBackInitialFrames = 0; + BOOL hasTurnedForward = NO; + + // we run 8 seconds of animation + for (int i = 0; i < 8 * 60; i++) { + [_nodesManager stepAnimations:_displayLink]; + if (!hasTurnedForward) { + if (lastTranslateX <= previousValue) { + bounceBackInitialFrames++; + } else { + hasTurnedForward = true; + } + } + previousValue = lastTranslateX; + } + XCTAssert(hasTurnedForward); + XCTAssertGreaterThan(bounceBackInitialFrames, 3); + XCTAssertEqual(lastTranslateX, 1.5); +} + @end diff --git a/RNTester/js/NativeAnimationsExample.js b/RNTester/js/NativeAnimationsExample.js index ed6f1acaf7045a..4aaf2063de57a0 100644 --- a/RNTester/js/NativeAnimationsExample.js +++ b/RNTester/js/NativeAnimationsExample.js @@ -255,6 +255,67 @@ class EventExample extends React.Component<{}, $FlowFixMeState> { } } +class TrackingExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> { + state = { + native: new Animated.Value(0), + toNative: new Animated.Value(0), + js: new Animated.Value(0), + toJS: new Animated.Value(0), + }; + + componentDidMount() { + // we configure spring to take a bit of time to settle so that the user + // have time to click many times and see "toValue" getting updated and + const longSettlingSpring = { + tension: 20, + friction: 0.5, + }; + Animated.spring(this.state.native, { + ...longSettlingSpring, + toValue: this.state.toNative, + useNativeDriver: true, + }).start(); + Animated.spring(this.state.js, { + ...longSettlingSpring, + toValue: this.state.toJS, + useNativeDriver: false, + }).start(); + } + + onPress = () => { + // select next value to be tracked by random + const nextValue = Math.random() * 200; + this.state.toNative.setValue(nextValue); + this.state.toJS.setValue(nextValue); + }; + + renderBlock = (anim, dest) => [ + , + , + ] + + render() { + return ( + + + + Native: + + + {this.renderBlock(this.state.native, this.state.toNative)} + + + JavaScript: + + + {this.renderBlock(this.state.js, this.state.toJS)} + + + + ); + } +} + const styles = StyleSheet.create({ row: { padding: 10, @@ -265,6 +326,14 @@ const styles = StyleSheet.create({ height: 50, backgroundColor: 'blue', }, + line: { + position: 'absolute', + left: 35, + top: 0, + bottom: 0, + width: 1, + backgroundColor: 'red', + }, }); exports.framework = 'React'; @@ -540,6 +609,12 @@ exports.examples = [ return ; }, }, + { + title: 'Animated Tracking - tap me many times', + render: function() { + return ; + }, + }, { title: 'Internal Settings', render: function() { diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java index ad715d45c9bac1..b2ae607513a13f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java @@ -10,6 +10,8 @@ package com.facebook.react.animated; import com.facebook.react.bridge.Callback; +import com.facebook.react.bridge.JSApplicationCausedNativeException; +import com.facebook.react.bridge.ReadableMap; /** * Base class for different types of animation drivers. Can be used to implement simple time-based @@ -27,4 +29,15 @@ * android choreographer callback. */ public abstract void runAnimationStep(long frameTimeNanos); + + /** + * This method will get called when some of the configuration gets updated while the animation is + * running. In that case animation should restart keeping its internal state to provide a smooth + * transision. E.g. in case of a spring animation we want to keep the current value and speed and + * start animating with the new properties (different destination or spring settings) + */ + public void resetConfig(ReadableMap config) { + throw new JSApplicationCausedNativeException( + "Animation config for " + getClass().getSimpleName() + " cannot be reset"); + } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java index 41b6d24ff31239..fb7c00d018f33d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java @@ -18,20 +18,28 @@ public class DecayAnimation extends AnimationDriver { private final double mVelocity; - private final double mDeceleration; - private long mStartFrameTimeMillis = -1; - private double mFromValue = 0d; - private double mLastValue = 0d; + private double mDeceleration; + private long mStartFrameTimeMillis; + private double mFromValue; + private double mLastValue; private int mIterations; private int mCurrentLoop; public DecayAnimation(ReadableMap config) { - mVelocity = config.getDouble("velocity"); + mVelocity = config.getDouble("velocity"); // initial velocity + resetConfig(config); + } + + @Override + public void resetConfig(ReadableMap config) { mDeceleration = config.getDouble("deceleration"); mIterations = config.hasKey("iterations") ? config.getInt("iterations") : 1; mCurrentLoop = 1; mHasFinished = mIterations == 0; + mStartFrameTimeMillis = -1; + mFromValue = 0; + mLastValue = 0; } @Override diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java index 94b12178979326..3d37846fb0c6f0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java @@ -22,17 +22,24 @@ class FrameBasedAnimationDriver extends AnimationDriver { // 60FPS private static final double FRAME_TIME_MILLIS = 1000d / 60d; - private long mStartFrameTimeNanos = -1; - private final double[] mFrames; - private final double mToValue; + private long mStartFrameTimeNanos; + private double[] mFrames; + private double mToValue; private double mFromValue; private int mIterations; private int mCurrentLoop; FrameBasedAnimationDriver(ReadableMap config) { + resetConfig(config); + } + + @Override + public void resetConfig(ReadableMap config) { ReadableArray frames = config.getArray("frames"); int numberOfFrames = frames.size(); - mFrames = new double[numberOfFrames]; + if (mFrames == null || mFrames.length != numberOfFrames) { + mFrames = new double[numberOfFrames]; + } for (int i = 0; i < numberOfFrames; i++) { mFrames[i] = frames.getDouble(i); } @@ -40,6 +47,7 @@ class FrameBasedAnimationDriver extends AnimationDriver { mIterations = config.hasKey("iterations") ? config.getInt("iterations") : 1; mCurrentLoop = 1; mHasFinished = mIterations == 0; + mStartFrameTimeNanos = -1; } @Override @@ -49,7 +57,7 @@ public void runAnimationStep(long frameTimeNanos) { mFromValue = mAnimatedValue.mValue; } long timeFromStartMillis = (frameTimeNanos - mStartFrameTimeNanos) / 1000000; - int frameIndex = (int) (timeFromStartMillis / FRAME_TIME_MILLIS); + int frameIndex = (int) Math.round(timeFromStartMillis / FRAME_TIME_MILLIS); if (frameIndex < 0) { throw new IllegalStateException("Calculated frame index should never be lower than 0"); } else if (mHasFinished) { @@ -60,7 +68,7 @@ public void runAnimationStep(long frameTimeNanos) { if (frameIndex >= mFrames.length - 1) { nextValue = mToValue; if (mIterations == -1 || mCurrentLoop < mIterations) { // looping animation, return to start - mStartFrameTimeNanos = frameTimeNanos; + mStartFrameTimeNanos = frameTimeNanos + ((long) FRAME_TIME_MILLIS) * 1000000L; mCurrentLoop++; } else { // animation has completed, no more frames left mHasFinished = true; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java index d65b20fc503794..d54d24bd668ea9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java @@ -105,6 +105,8 @@ public void createAnimatedNode(int tag, ReadableMap config) { node = new DiffClampAnimatedNode(config, this); } else if ("transform".equals(type)) { node = new TransformAnimatedNode(config, this); + } else if ("tracking".equals(type)) { + node = new TrackingAnimatedNode(config, this); } else { throw new JSApplicationIllegalArgumentException("Unsupported node type: " + type); } @@ -189,6 +191,15 @@ public void startAnimatingNode( throw new JSApplicationIllegalArgumentException("Animated node should be of type " + ValueAnimatedNode.class.getName()); } + + final AnimationDriver existingDriver = mActiveAnimations.get(animationId); + if (existingDriver != null) { + // animation with the given ID is already running, we need to update its configuration instead + // of spawning a new one + existingDriver.resetConfig(animationConfig); + return; + } + String type = animationConfig.getString("type"); final AnimationDriver animation; if ("frames".equals(type)) { @@ -214,10 +225,12 @@ private void stopAnimationsForNode(AnimatedNode animatedNode) { for (int i = 0; i < mActiveAnimations.size(); i++) { AnimationDriver animation = mActiveAnimations.valueAt(i); if (animatedNode.equals(animation.mAnimatedValue)) { - // Invoke animation end callback with {finished: false} - WritableMap endCallbackResponse = Arguments.createMap(); - endCallbackResponse.putBoolean("finished", false); - animation.mEndCallback.invoke(endCallbackResponse); + if (animation.mEndCallback != null) { + // Invoke animation end callback with {finished: false} + WritableMap endCallbackResponse = Arguments.createMap(); + endCallbackResponse.putBoolean("finished", false); + animation.mEndCallback.invoke(endCallbackResponse); + } mActiveAnimations.removeAt(i); i--; } @@ -232,10 +245,12 @@ public void stopAnimation(int animationId) { for (int i = 0; i < mActiveAnimations.size(); i++) { AnimationDriver animation = mActiveAnimations.valueAt(i); if (animation.mId == animationId) { - // Invoke animation end callback with {finished: false} - WritableMap endCallbackResponse = Arguments.createMap(); - endCallbackResponse.putBoolean("finished", false); - animation.mEndCallback.invoke(endCallbackResponse); + if (animation.mEndCallback != null) { + // Invoke animation end callback with {finished: false} + WritableMap endCallbackResponse = Arguments.createMap(); + endCallbackResponse.putBoolean("finished", false); + animation.mEndCallback.invoke(endCallbackResponse); + } mActiveAnimations.removeAt(i); return; } @@ -445,9 +460,11 @@ public void runUpdates(long frameTimeNanos) { for (int i = mActiveAnimations.size() - 1; i >= 0; i--) { AnimationDriver animation = mActiveAnimations.valueAt(i); if (animation.mHasFinished) { - WritableMap endCallbackResponse = Arguments.createMap(); - endCallbackResponse.putBoolean("finished", true); - animation.mEndCallback.invoke(endCallbackResponse); + if (animation.mEndCallback != null) { + WritableMap endCallbackResponse = Arguments.createMap(); + endCallbackResponse.putBoolean("finished", true); + animation.mEndCallback.invoke(endCallbackResponse); + } mActiveAnimations.removeAt(i); } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java index 83ccc6f74a7184..3558756149b969 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java @@ -37,24 +37,32 @@ private static class PhysicsState { // thresholds for determining when the spring is at rest private double mRestSpeedThreshold; private double mDisplacementFromRestThreshold; - private double mTimeAccumulator = 0; + private double mTimeAccumulator; // for controlling loop private int mIterations; - private int mCurrentLoop = 0; + private int mCurrentLoop; private double mOriginalValue; SpringAnimation(ReadableMap config) { + mCurrentState.velocity = config.getDouble("initialVelocity"); + resetConfig(config); + } + + @Override + public void resetConfig(ReadableMap config) { mSpringStiffness = config.getDouble("stiffness"); mSpringDamping = config.getDouble("damping"); mSpringMass = config.getDouble("mass"); - mInitialVelocity = config.getDouble("initialVelocity"); - mCurrentState.velocity = mInitialVelocity; + mInitialVelocity = mCurrentState.velocity; mEndValue = config.getDouble("toValue"); mRestSpeedThreshold = config.getDouble("restSpeedThreshold"); mDisplacementFromRestThreshold = config.getDouble("restDisplacementThreshold"); mOvershootClampingEnabled = config.getBoolean("overshootClamping"); mIterations = config.hasKey("iterations") ? config.getInt("iterations") : 1; mHasFinished = mIterations == 0; + mCurrentLoop = 0; + mTimeAccumulator = 0; + mSpringStarted = false; } @Override diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.java new file mode 100644 index 00000000000000..db312d23558078 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.java @@ -0,0 +1,37 @@ +/** + * 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. + */ + +package com.facebook.react.animated; + +import com.facebook.react.bridge.JavaOnlyMap; +import com.facebook.react.bridge.ReadableMap; + +/* package */ class TrackingAnimatedNode extends AnimatedNode { + + private final NativeAnimatedNodesManager mNativeAnimatedNodesManager; + private final int mAnimationId; + private final int mToValueNode; + private final int mValueNode; + private final JavaOnlyMap mAnimationConfig; + + TrackingAnimatedNode(ReadableMap config, NativeAnimatedNodesManager nativeAnimatedNodesManager) { + mNativeAnimatedNodesManager = nativeAnimatedNodesManager; + mAnimationId = config.getInt("animationId"); + mToValueNode = config.getInt("toValue"); + mValueNode = config.getInt("value"); + mAnimationConfig = JavaOnlyMap.deepClone(config.getMap("animationConfig")); + } + + @Override + public void update() { + AnimatedNode toValue = mNativeAnimatedNodesManager.getNodeById(mToValueNode); + mAnimationConfig.putDouble("toValue", ((ValueAnimatedNode) toValue).getValue()); + mNativeAnimatedNodesManager.startAnimatingNode(mAnimationId, mValueNode, mAnimationConfig, null); + } +} diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java index ab404d9b787f90..dd648f53d1c1b8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java @@ -36,6 +36,34 @@ public static JavaOnlyArray of(Object... values) { return new JavaOnlyArray(values); } + public static JavaOnlyArray deepClone(ReadableArray ary) { + JavaOnlyArray res = new JavaOnlyArray(); + for (int i = 0, size = ary.size(); i < size; i++) { + ReadableType type = ary.getType(i); + switch (type) { + case Null: + res.pushNull(); + break; + case Boolean: + res.pushBoolean(ary.getBoolean(i)); + break; + case Number: + res.pushDouble(ary.getDouble(i)); + break; + case String: + res.pushString(ary.getString(i)); + break; + case Map: + res.pushMap(JavaOnlyMap.deepClone(ary.getMap(i))); + break; + case Array: + res.pushArray(deepClone(ary.getArray(i))); + break; + } + } + return res; + } + private JavaOnlyArray(Object... values) { mBackingList = Arrays.asList(values); } @@ -60,12 +88,12 @@ public boolean isNull(int index) { @Override public double getDouble(int index) { - return (Double) mBackingList.get(index); + return ((Number) mBackingList.get(index)).doubleValue(); } @Override public int getInt(int index) { - return (Integer) mBackingList.get(index); + return ((Number) mBackingList.get(index)).intValue(); } @Override diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java index 136786c7b75666..3b9ccf6fdde9de 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java @@ -31,6 +31,36 @@ public static JavaOnlyMap of(Object... keysAndValues) { return new JavaOnlyMap(keysAndValues); } + public static JavaOnlyMap deepClone(ReadableMap map) { + JavaOnlyMap res = new JavaOnlyMap(); + ReadableMapKeySetIterator iter = map.keySetIterator(); + while (iter.hasNextKey()) { + String propKey = iter.nextKey(); + ReadableType type = map.getType(propKey); + switch (type) { + case Null: + res.putNull(propKey); + break; + case Boolean: + res.putBoolean(propKey, map.getBoolean(propKey)); + break; + case Number: + res.putDouble(propKey, map.getDouble(propKey)); + break; + case String: + res.putString(propKey, map.getString(propKey)); + break; + case Map: + res.putMap(propKey, deepClone(map.getMap(propKey))); + break; + case Array: + res.putArray(propKey, JavaOnlyArray.deepClone(map.getArray(propKey))); + break; + } + } + return res; + } + /** * @param keysAndValues keys and values, interleaved */ @@ -65,12 +95,12 @@ public boolean getBoolean(String name) { @Override public double getDouble(String name) { - return (Double) mBackingMap.get(name); + return ((Number) mBackingMap.get(name)).doubleValue(); } @Override public int getInt(String name) { - return (Integer) mBackingMap.get(name); + return ((Number) mBackingMap.get(name)).intValue(); } @Override diff --git a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java index 6f244c70be4baf..e1d1958613e6ee 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java @@ -171,11 +171,6 @@ public void testFramesAnimation() { ArgumentCaptor stylesCaptor = ArgumentCaptor.forClass(ReactStylesDiffMap.class); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("opacity", Double.NaN)).isEqualTo(0); - for (int i = 0; i < frames.size(); i++) { reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); @@ -205,11 +200,6 @@ public void testFramesAnimationLoopsFiveTimes() { ArgumentCaptor stylesCaptor = ArgumentCaptor.forClass(ReactStylesDiffMap.class); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("opacity", Double.NaN)).isEqualTo(0); - for (int iteration = 0; iteration < 5; iteration++) { for (int i = 0; i < frames.size(); i++) { reset(mUIImplementationMock); @@ -270,9 +260,6 @@ public void testNodeValueListenerIfListening() { JavaOnlyMap.of("type", "frames", "frames", frames, "toValue", 1d), animationCallback); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(valueListener).onValueUpdate(eq(0d)); - for (int i = 0; i < frames.size(); i++) { reset(valueListener); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); @@ -600,7 +587,6 @@ public void testAnimationCallbackFinish() { reset(animationCallback); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); verifyNoMoreInteractions(animationCallback); reset(animationCallback); @@ -629,10 +615,10 @@ private void createAnimatedGraphWithAdditionNode( double secondValue) { mNativeAnimatedNodesManager.createAnimatedNode( 1, - JavaOnlyMap.of("type", "value", "value", 100d, "offset", 0d)); + JavaOnlyMap.of("type", "value", "value", firstValue, "offset", 0d)); mNativeAnimatedNodesManager.createAnimatedNode( 2, - JavaOnlyMap.of("type", "value", "value", 1000d, "offset", 0d)); + JavaOnlyMap.of("type", "value", "value", secondValue, "offset", 0d)); mNativeAnimatedNodesManager.createAnimatedNode( 3, @@ -648,7 +634,7 @@ private void createAnimatedGraphWithAdditionNode( mNativeAnimatedNodesManager.connectAnimatedNodes(2, 3); mNativeAnimatedNodesManager.connectAnimatedNodes(3, 4); mNativeAnimatedNodesManager.connectAnimatedNodes(4, 5); - mNativeAnimatedNodesManager.connectAnimatedNodeToView(5, 50); + mNativeAnimatedNodesManager.connectAnimatedNodeToView(5, viewTag); } @Test @@ -677,12 +663,6 @@ public void testAdditionNode() { verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock) - .synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); verify(mUIImplementationMock) @@ -722,12 +702,6 @@ public void testViewReceiveUpdatesIfOneOfAnimationHasntStarted() { verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock) - .synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); verify(mUIImplementationMock) @@ -777,11 +751,6 @@ public void testViewReceiveUpdatesWhenOneOfAnimationHasFinished() { verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(1100d); - for (int i = 1; i < secondFrames.size(); i++) { reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); @@ -843,11 +812,6 @@ public void testMultiplicationNode() { verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(5d); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(5d); - reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); @@ -949,11 +913,6 @@ public void testInterpolationNode() { ArgumentCaptor stylesCaptor = ArgumentCaptor.forClass(ReactStylesDiffMap.class); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(50), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("opacity", Double.NaN)).isEqualTo(0d); - for (int i = 0; i < frames.size(); i++) { reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); @@ -1088,11 +1047,6 @@ public void testRestoreDefaultProps() { ArgumentCaptor stylesCaptor = ArgumentCaptor.forClass(ReactStylesDiffMap.class); - reset(mUIImplementationMock); - mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); - verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(viewTag), stylesCaptor.capture()); - assertThat(stylesCaptor.getValue().getDouble("opacity", Double.NaN)).isEqualTo(1); - for (int i = 0; i < frames.size(); i++) { reset(mUIImplementationMock); mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); @@ -1106,4 +1060,228 @@ public void testRestoreDefaultProps() { verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(viewTag), stylesCaptor.capture()); assertThat(stylesCaptor.getValue().isNull("opacity")); } + + + /** + * Creates a following graph of nodes: + * Value(3, initialValue) ----> Style(4) ---> Props(5) ---> View(viewTag) + * + * Value(3) is set to track Value(1) via Tracking(2) node with the provided animation config + */ + private void createAnimatedGraphWithTrackingNode( + int viewTag, + double initialValue, + JavaOnlyMap animationConfig) { + mNativeAnimatedNodesManager.createAnimatedNode( + 1, + JavaOnlyMap.of("type", "value", "value", initialValue, "offset", 0d)); + mNativeAnimatedNodesManager.createAnimatedNode( + 3, + JavaOnlyMap.of("type", "value", "value", initialValue, "offset", 0d)); + + mNativeAnimatedNodesManager.createAnimatedNode( + 2, + JavaOnlyMap.of("type", "tracking", "animationId", 70, "value", 3, "toValue", 1, "animationConfig", animationConfig)); + + mNativeAnimatedNodesManager.createAnimatedNode( + 4, + JavaOnlyMap.of("type", "style", "style", JavaOnlyMap.of("translateX", 3))); + mNativeAnimatedNodesManager.createAnimatedNode( + 5, + JavaOnlyMap.of("type", "props", "props", JavaOnlyMap.of("style", 4))); + mNativeAnimatedNodesManager.connectAnimatedNodes(1, 2); + mNativeAnimatedNodesManager.connectAnimatedNodes(3, 4); + mNativeAnimatedNodesManager.connectAnimatedNodes(4, 5); + mNativeAnimatedNodesManager.connectAnimatedNodeToView(5, viewTag); + } + + /** + * In this test we verify that when value is being tracked we can update destination value in the + * middle of ongoing animation and the animation will update and animate to the new spot. This is + * tested using simple 5 frame backed timing animation. + */ + @Test + public void testTracking() { + JavaOnlyArray frames = JavaOnlyArray.of(0d, 0.25d, 0.5d, 0.75d, 1d); + JavaOnlyMap animationConfig = JavaOnlyMap.of("type", "frames", "frames", frames); + + createAnimatedGraphWithTrackingNode(1000, 0d, animationConfig); + + ArgumentCaptor stylesCaptor = + ArgumentCaptor.forClass(ReactStylesDiffMap.class); + + reset(mUIImplementationMock); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verify(mUIImplementationMock).synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); + assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)).isEqualTo(0d); + + // update "toValue" to 100, we expect tracking animation to animate now from 0 to 100 in 5 steps + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 100d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); // kick off the animation + + for (int i = 0; i < frames.size(); i++) { + reset(mUIImplementationMock); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verify(mUIImplementationMock) + .synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); + assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)) + .isEqualTo(frames.getDouble(i) * 100d); + } + + // update "toValue" to 0 but run only two frames from the animation, + // we expect tracking animation to animate now from 100 to 75 + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 0d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); // kick off the animation + + for (int i = 0; i < 2; i++) { + reset(mUIImplementationMock); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verify(mUIImplementationMock) + .synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); + assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)) + .isEqualTo(100d * (1d - frames.getDouble(i))); + } + + // at this point we expect tracking value to be at 75 + assertThat(((ValueAnimatedNode) mNativeAnimatedNodesManager.getNodeById(3)).getValue()) + .isEqualTo(75d); + + // we update "toValue" again to 100 and expect the animation to restart from the current place + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 100d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); // kick off the animation + + for (int i = 0; i < frames.size(); i++) { + reset(mUIImplementationMock); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verify(mUIImplementationMock) + .synchronouslyUpdateViewOnUIThread(eq(1000), stylesCaptor.capture()); + assertThat(stylesCaptor.getValue().getDouble("translateX", Double.NaN)) + .isEqualTo(50d + 50d * frames.getDouble(i)); + } + } + + /** + * In this test we verify that when tracking is set up for a given animated node and when the + * animation settles it will not be registered as an active animation and therefore will not + * consume resources on running the animation that has already completed. Then we verify that when + * the value updates the animation will resume as expected and the complete again when reaches the + * end. + */ + @Test + public void testTrackingPausesWhenEndValueIsReached() { + JavaOnlyArray frames = JavaOnlyArray.of(0d, 0.5d, 1d); + JavaOnlyMap animationConfig = JavaOnlyMap.of("type", "frames", "frames", frames); + + createAnimatedGraphWithTrackingNode(1000, 0d, animationConfig); + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 100d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); // make sure animation starts + + reset(mUIImplementationMock); + for (int i = 0; i < frames.size(); i++) { + assertThat(mNativeAnimatedNodesManager.hasActiveAnimations()).isTrue(); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + } + verify(mUIImplementationMock, times(frames.size())) + .synchronouslyUpdateViewOnUIThread(eq(1000), any(ReactStylesDiffMap.class)); + + // the animation has completed, we expect no updates to be done + reset(mUIImplementationMock); + assertThat(mNativeAnimatedNodesManager.hasActiveAnimations()).isFalse(); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verifyNoMoreInteractions(mUIImplementationMock); + + + // we update end value and expect the animation to restart + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 200d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); // make sure animation starts + + reset(mUIImplementationMock); + for (int i = 0; i < frames.size(); i++) { + assertThat(mNativeAnimatedNodesManager.hasActiveAnimations()).isTrue(); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + } + verify(mUIImplementationMock, times(frames.size())) + .synchronouslyUpdateViewOnUIThread(eq(1000), any(ReactStylesDiffMap.class)); + + // the animation has completed, we expect no updates to be done + reset(mUIImplementationMock); + assertThat(mNativeAnimatedNodesManager.hasActiveAnimations()).isFalse(); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + verifyNoMoreInteractions(mUIImplementationMock); + } + + /** + * In this test we verify that when tracking is configured to use spring animation and when the + * destination value updates the current speed of the animated value will be taken into account + * while updating the spring animation and it will smoothly transition to the new end value. + */ + @Test + public void testSpringTrackingRetainsSpeed() { + // this spring config correspomds to tension 20 and friction 0.5 which makes the spring settle + // very slowly + JavaOnlyMap springConfig = JavaOnlyMap.of( + "type", + "spring", + "restSpeedThreshold", + 0.001, + "mass", + 1d, + "restDisplacementThreshold", + 0.001, + "initialVelocity", + 0.5d, + "damping", + 2.5, + "stiffness", + 157.8, + "overshootClamping", + false); + + createAnimatedGraphWithTrackingNode(1000, 0d, springConfig); + + // update "toValue" to 1, we expect tracking animation to animate now from 0 to 1 + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 1d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + + // we run several steps of animation until the value starts bouncing, has negative speed and + // passes the final point (that is 1) while going backwards + boolean isBoucingBack = false; + double previousValue = ((ValueAnimatedNode) mNativeAnimatedNodesManager.getNodeById(3)).getValue(); + for (int maxFrames = 500; maxFrames > 0; maxFrames--) { + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + double currentValue = ((ValueAnimatedNode) mNativeAnimatedNodesManager.getNodeById(3)).getValue(); + if (previousValue >= 1d && currentValue < 1d) { + isBoucingBack = true; + break; + } + previousValue = currentValue; + } + assertThat(isBoucingBack).isTrue(); + + // we now update "toValue" to 1.5 but since the value have negative speed and has also pretty + // low friction we expect it to keep going in the opposite direction for a few more frames + mNativeAnimatedNodesManager.setAnimatedNodeValue(1, 1.5d); + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + int bounceBackInitialFrames = 0; + boolean hasTurnedForward = false; + + // we run 8 seconds of animation + for (int i = 0; i < 8 * 60; i++) { + mNativeAnimatedNodesManager.runUpdates(nextFrameTime()); + double currentValue = ((ValueAnimatedNode) mNativeAnimatedNodesManager.getNodeById(3)).getValue(); + if (!hasTurnedForward) { + if (currentValue <= previousValue) { + bounceBackInitialFrames++; + } else { + hasTurnedForward = true; + } + } + previousValue = currentValue; + } + assertThat(hasTurnedForward).isEqualTo(true); + assertThat(bounceBackInitialFrames).isGreaterThan(3); + + // we verify that the value settled at 2 + assertThat(previousValue).isEqualTo(1.5d); + } } From cff522d2831b9695d4077785a151e12c1a8a393f Mon Sep 17 00:00:00 2001 From: Mehdi Mulani Date: Fri, 16 Feb 2018 12:08:57 -0800 Subject: [PATCH 043/267] Dirty text shadow nodes on UIManager queue after multiplier changes Summary: Letting them fire on whatever queue we get the notification from throws an assert. Reviewed By: shergin Differential Revision: D7002789 fbshipit-source-id: 669474af1a07f0df6784b69b54afe0152c1ba3c4 --- Libraries/Text/Text/RCTTextViewManager.m | 14 +++++++++----- .../Text/TextInput/RCTBaseTextInputViewManager.m | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Libraries/Text/Text/RCTTextViewManager.m b/Libraries/Text/Text/RCTTextViewManager.m index 58b559de18e512..f3d28ee7201dec 100644 --- a/Libraries/Text/Text/RCTTextViewManager.m +++ b/Libraries/Text/Text/RCTTextViewManager.m @@ -13,6 +13,7 @@ #import #import #import +#import #import #import "RCTTextShadowView.h" @@ -83,12 +84,15 @@ - (void)handleDidUpdateMultiplierNotification { CGFloat fontSizeMultiplier = self.bridge.accessibilityManager.multiplier; - for (RCTTextShadowView *shadowView in _shadowViews) { - shadowView.textAttributes.fontSizeMultiplier = fontSizeMultiplier; - [shadowView dirtyLayout]; - } + NSHashTable *shadowViews = _shadowViews; + RCTExecuteOnUIManagerQueue(^{ + for (RCTTextShadowView *shadowView in shadowViews) { + shadowView.textAttributes.fontSizeMultiplier = fontSizeMultiplier; + [shadowView dirtyLayout]; + } - [self.bridge.uiManager setNeedsLayout]; + [self.bridge.uiManager setNeedsLayout]; + }); } @end diff --git a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m index 7e98eda2dee47e..1e192fe944aacd 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m @@ -16,6 +16,7 @@ #import #import #import +#import #import #import "RCTBaseTextInputShadowView.h" @@ -109,12 +110,15 @@ - (void)handleDidUpdateMultiplierNotification { CGFloat fontSizeMultiplier = self.bridge.accessibilityManager.multiplier; - for (RCTBaseTextInputShadowView *shadowView in _shadowViews) { - shadowView.textAttributes.fontSizeMultiplier = fontSizeMultiplier; - [shadowView dirtyLayout]; - } + NSHashTable *shadowViews = _shadowViews; + RCTExecuteOnUIManagerQueue(^{ + for (RCTBaseTextInputShadowView *shadowView in shadowViews) { + shadowView.textAttributes.fontSizeMultiplier = fontSizeMultiplier; + [shadowView dirtyLayout]; + } - [self.bridge.uiManager setNeedsLayout]; + [self.bridge.uiManager setNeedsLayout]; + }); } @end From f96dfb946895c901c7823b06c26bfbbbd8b16862 Mon Sep 17 00:00:00 2001 From: Mehdi Mulani Date: Fri, 16 Feb 2018 12:08:59 -0800 Subject: [PATCH 044/267] Disable font scaling when an explicit font handler is set Reviewed By: sahrens Differential Revision: D7003464 fbshipit-source-id: f36ff344c50a9c63af6c852138041c1c918259c8 --- Libraries/Text/RCTTextAttributes.m | 2 +- React/Views/RCTFont.h | 1 + React/Views/RCTFont.mm | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Libraries/Text/RCTTextAttributes.m b/Libraries/Text/RCTTextAttributes.m index 26d63bdda8cd60..9b1ba122196cef 100644 --- a/Libraries/Text/RCTTextAttributes.m +++ b/Libraries/Text/RCTTextAttributes.m @@ -190,7 +190,7 @@ - (UIFont *)effectiveFont - (CGFloat)effectiveFontSizeMultiplier { - return _allowFontScaling && !isnan(_fontSizeMultiplier) ? _fontSizeMultiplier : 1.0; + return !RCTHasFontHandlerSet() && _allowFontScaling && !isnan(_fontSizeMultiplier) ? _fontSizeMultiplier : 1.0; } - (UIColor *)effectiveForegroundColor diff --git a/React/Views/RCTFont.h b/React/Views/RCTFont.h index ba34e8f3462b9c..711721d2a71cc5 100644 --- a/React/Views/RCTFont.h +++ b/React/Views/RCTFont.h @@ -20,6 +20,7 @@ typedef UIFont *(^RCTFontHandler)(CGFloat fontSize, NSString *fontWeightDescript * "semibold", "extrabold", "bold", "heavy", or "black". */ RCT_EXTERN void RCTSetDefaultFontHandler(RCTFontHandler handler); +RCT_EXTERN BOOL RCTHasFontHandlerSet(); @interface RCTFont : NSObject diff --git a/React/Views/RCTFont.mm b/React/Views/RCTFont.mm index 37595dd3fbf42c..dc3877cb352cbc 100644 --- a/React/Views/RCTFont.mm +++ b/React/Views/RCTFont.mm @@ -103,6 +103,10 @@ void RCTSetDefaultFontHandler(RCTFontHandler handler) { defaultFontHandler = handler; } +BOOL RCTHasFontHandlerSet() { + return defaultFontHandler != nil; +} + // We pass a string description of the font weight to the defaultFontHandler because UIFontWeight // is not defined pre-iOS 8.2. // Furthermore, UIFontWeight's are lossy floats, so we must use an inexact compare to figure out From 1f7a48f2141acec236f4eea2168a42b55b663c02 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 16 Feb 2018 13:01:02 -0800 Subject: [PATCH 045/267] Extend the FabricUIManagerModule class to integrate with JSI/JSC in Android Reviewed By: sebmarkbage Differential Revision: D7005419 fbshipit-source-id: 6e65be5a922ddb29fde965f5df779cc92a996ecf --- .../react/fabric/FabricUIManagerModule.java | 78 +++++++++---------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java index 548f31c7afda7c..0e52bcd36a701b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java @@ -3,36 +3,35 @@ package com.facebook.react.fabric; import com.facebook.react.bridge.ReactApplicationContext; -import com.facebook.react.bridge.ReactContextBaseJavaModule; -import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.module.annotations.ReactModule; import com.facebook.react.uimanager.ReactShadowNode; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Nullable; /** - *

Native module to allow JS to create and update native Views using Fabric API.

- * + * This class is responsible to create, clone and update {@link ReactShadowNode} using the + * Fabric API. */ -@ReactModule(name = FabricUIManagerModule.NAME) -public class FabricUIManagerModule extends ReactContextBaseJavaModule { +public class FabricUIManagerModule { - static final String NAME = "FabricUIManager"; + private final ReactApplicationContext mReactApplicationContext; public FabricUIManagerModule(ReactApplicationContext reactContext) { - super(reactContext); + mReactApplicationContext = reactContext; } /** * Creates a new {@link ReactShadowNode} */ - @ReactMethod(isBlockingSynchronousMethod = true) - public int createNode(int reactTag, + @Nullable + public ReactShadowNode createNode(int reactTag, String viewName, int rootTag, ReadableMap props, int instanceHandle) { //TODO T25560658 - return -1; + return null; } /** @@ -40,10 +39,10 @@ public int createNode(int reactTag, * ReactShadowNode will contain a copy of all the internal data of the original node, including * its children set (note that the children nodes will not be cloned). */ - @ReactMethod(isBlockingSynchronousMethod = true) - public int cloneNode(int node) { + @Nullable + public ReactShadowNode cloneNode(ReactShadowNode node) { //TODO T25560658 - return -1; + return null; } /** @@ -51,10 +50,10 @@ public int cloneNode(int node) { * ReactShadowNode will contain a copy of all the internal data of the original node, but * its children set will be empty. */ - @ReactMethod(isBlockingSynchronousMethod = true) - public int cloneNodeWithNewChildren(int node) { + @Nullable + public ReactShadowNode cloneNodeWithNewChildren(ReactShadowNode node) { //TODO T25560658 - return -1; + return null; } /** @@ -62,10 +61,10 @@ public int cloneNodeWithNewChildren(int node) { * ReactShadowNode will contain a copy of all the internal data of the original node, but its * props will be overridden with the {@link ReadableMap} received by parameter. */ - @ReactMethod(isBlockingSynchronousMethod = true) - public int cloneNodeWithNewProps(int node, ReadableMap newProps) { + @Nullable + public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableMap newProps) { //TODO T25560658 - return -1; + return null; } /** @@ -74,41 +73,40 @@ public int cloneNodeWithNewProps(int node, ReadableMap newProps) { * props will be overridden with the {@link ReadableMap} received by parameter and its children * set will be empty. */ - @ReactMethod(isBlockingSynchronousMethod = true) - public int cloneNodeWithNewChildrenAndProps( - int node, + @Nullable + public ReactShadowNode cloneNodeWithNewChildrenAndProps( + ReactShadowNode node, ReadableMap newProps) { //TODO T25560658 - return -1; + return null; } /** * Appends the child {@link ReactShadowNode} to the children set of the parent * {@link ReactShadowNode}. */ - @ReactMethod - public void appendChild(int parent, int child) { + @Nullable + public void appendChild(ReactShadowNode parent, ReactShadowNode child) { //TODO T25560658 } - @ReactMethod(isBlockingSynchronousMethod = true) - public int createChildSet() { - //TODO T25560658 - return -1; + /** + * @return an empty {@link List} that will be used to append the + * {@link ReactShadowNode} elements of the root. Typically this List will contain one element. + */ + public List createChildSet() { + return new ArrayList<>(1); } - @ReactMethod - public void appendChildToSet(int childSet, int child) { - //TODO T25560658 + /** + * Adds the {@link ReactShadowNode} to the {@link List} received by parameter. + */ + public void appendChildToSet(List childList, ReactShadowNode child) { + childList.add(child); } - @ReactMethod - public void completeRoot(int rootTag, int childSet) { + public void completeRoot(int rootTag, List childList) { //TODO T25560658 } - @Override - public String getName() { - return NAME; - } } From 617362b6f7f7c17b0a4938ada7b4e4d841c6b434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Fri, 16 Feb 2018 13:35:43 -0800 Subject: [PATCH 046/267] Bump buck to v2018.02.16.01 Summary: This should fix our current Android test failures. Closes https://github.com/facebook/react-native/pull/18002 Differential Revision: D7014218 Pulled By: hramos fbshipit-source-id: 2933baf9fd05f3ad33306c3ca7b62da8af568db0 --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dc428d3a0b75af..cc86a51c4688e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,11 +42,11 @@ aliases: - &restore-cache-buck keys: - - v2-buck-{{ arch }}-v2017.11.16.01 + - v2-buck-{{ arch }}-v2018.02.16.01 - &save-cache-buck paths: - ~/buck - key: v2-buck-{{ arch }}-v2017.11.16.01 + key: v2-buck-{{ arch }}-v2018.02.16.01 - &restore-cache-watchman keys: @@ -101,7 +101,7 @@ aliases: - &install-buck | if [[ ! -e ~/buck ]]; then - git clone https://github.com/facebook/buck.git ~/buck --branch v2017.11.16.01 --depth=1 + git clone https://github.com/facebook/buck.git ~/buck --branch v2018.02.16.01 --depth=1 fi cd ~/buck && ant buck --version From 21231084dbccc8abe7823d4444a7e772c08e3e72 Mon Sep 17 00:00:00 2001 From: aneophyte Date: Fri, 16 Feb 2018 13:51:23 -0800 Subject: [PATCH 047/267] Exclude jsbundle files from VCS Summary: jsbundle files can be generated, and are quite large and therefore, I think should be excluded from being committed to the repo. [ GENERAL ][ MINOR ][local-cli/templates/_gitignore] - Included a new entry to ignore jsbundle files Closes https://github.com/facebook/react-native/pull/17888 Differential Revision: D6977064 Pulled By: hramos fbshipit-source-id: 9c7803004f3f4ec59cba3017213f68fba8225dbf --- local-cli/templates/HelloWorld/_gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local-cli/templates/HelloWorld/_gitignore b/local-cli/templates/HelloWorld/_gitignore index 0826423b786cca..5d647565fa9ef7 100644 --- a/local-cli/templates/HelloWorld/_gitignore +++ b/local-cli/templates/HelloWorld/_gitignore @@ -51,3 +51,6 @@ buck-out/ */fastlane/report.xml */fastlane/Preview.html */fastlane/screenshots + +# Bundle artifact +*.jsbundle From 3a3d884df253dbc1c02ffef33e99c4a91ea8751b Mon Sep 17 00:00:00 2001 From: Douglas Date: Fri, 16 Feb 2018 14:28:16 -0800 Subject: [PATCH 048/267] tvOS: TV nav event emitter should check for bridge Summary: When running with the packager in the tvOS simulator, reloading from the packager hits an assert in `RCTEventEmitter`, causing a crash. The solution is for `RCTTVNavigationEventEmitter` to check for the existence of the bridge before attempting to send an event. Manual testing. [IOS] [BUGFIX] [RCTTVNavigationEventEmitter.m] - Fix crash when reloading in tvOS Closes https://github.com/facebook/react-native/pull/17797 Differential Revision: D7014975 Pulled By: hramos fbshipit-source-id: 0bf766e87267ca8592ff0cc0b3cb4621a8e8f9b5 --- React/Modules/RCTTVNavigationEventEmitter.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/React/Modules/RCTTVNavigationEventEmitter.m b/React/Modules/RCTTVNavigationEventEmitter.m index 12d17758401104..bbc42e14f4c55c 100644 --- a/React/Modules/RCTTVNavigationEventEmitter.m +++ b/React/Modules/RCTTVNavigationEventEmitter.m @@ -46,7 +46,9 @@ - (void)dealloc - (void)handleTVNavigationEventNotification:(NSNotification *)notif { - [self sendEventWithName:TVNavigationEventName body:notif.object]; + if (self.bridge) { + [self sendEventWithName:TVNavigationEventName body:notif.object]; + } } @end From 5447ca67076a110e2b0df03b014f53d1df4646ab Mon Sep 17 00:00:00 2001 From: Alexander Chernoshej Date: Fri, 16 Feb 2018 14:29:42 -0800 Subject: [PATCH 049/267] Change irrelevant Products path in ./local-cli/runIOS/runIOS.js Summary: https://github.com/facebook/react-native/issues/7308 and many of the same Seems like xcode cli tool isn't create ./build directory any more but place Products right inside ./Build (may check while creating single view ios application in XCode) * edit hardcoded path to {appName}.app Command `$ react-native run-ios` is often lead to `Entry, ":CFBundleIdentifier", Does Not Exist` I find out how to fix it in current version of RN and Xcode cli tools Just try to do `$ react native init {appName}` and then `$ react native run-ios` if everything fine it means my approach is right :) Closes https://github.com/facebook/react-native/pull/17963 Differential Revision: D7014984 Pulled By: hramos fbshipit-source-id: da62f130e6ebf7d3acd09d36525838d5c9684e75 --- local-cli/runIOS/runIOS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index cb459a81c2d15e..d2ec2b82d63df1 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -26,7 +26,7 @@ const getBuildPath = function (configuration = 'Debug', appName, isDevice) { device = 'iphonesimulator'; } - return `build/Build/Products/${configuration}-${device}/${appName}.app`; + return `Build/Products/${configuration}-${device}/${appName}.app`; }; const xcprettyAvailable = function() { try { From d16ff3bd8b92fa84a9007bf5ebedd8153e4c089d Mon Sep 17 00:00:00 2001 From: Kevin Cassidy Jr Date: Fri, 16 Feb 2018 16:50:45 -0800 Subject: [PATCH 050/267] Better Android Gradle Plugin 3.x integration Summary: Better integration with the Android Gradle-based build process, especially the changes introduced by the [Android Gradle Plugin 3.x and AAPT2](https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html). Fixes #16906, the `android.enableAapt2=false` workaround is no longer required. Bases the task generation process on the actual application variants present in the project. The current manual process of iterating build types and product flavors could break down when more than one dimension type is present (see https://developer.android.com/studio/build/build-variants.html#flavor-dimensions). This also exposes a very basic set of properties in the build tasks, so that other tasks can more reliably access them: ```groovy android.applicationVariants.all { variant -> // This is the generated task itself: def reactBundleTask = variant.bundleJsAndAssets // These are the outputs by type: def resFileCollection = reactBundleTask.generatedResFolders def assetsFileCollection = reactBundleTask.generatedAssetsFolders } ``` I've tested various combinations of product flavors and build types ([Build Variants](https://developer.android.com/studio/build/build-variants.html)) to make sure this is consistent. This is a port of what we're currently deploying to our CI process. [ ANDROID ] [ BUGFIX ] [ react.gradle ] - Support Android Gradle Plugin 3.x and AAPT2 [ ANDROID ] [ FEATURE ] [ react.gradle ] - Expose the bundling task and its outputs via ext properties Closes https://github.com/facebook/react-native/pull/17967 Differential Revision: D7017148 Pulled By: hramos fbshipit-source-id: e52b3365e5807430b9caced51349abf72332a587 --- react.gradle | 199 ++++++++++++++++++++++++++------------------------- 1 file changed, 102 insertions(+), 97 deletions(-) diff --git a/react.gradle b/react.gradle index 64b2f02f8cbf26..685862193bb945 100644 --- a/react.gradle +++ b/react.gradle @@ -6,112 +6,117 @@ def cliPath = config.cliPath ?: "node_modules/react-native/local-cli/cli.js" def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" def entryFile = config.entryFile ?: "index.android.js" def bundleCommand = config.bundleCommand ?: "bundle" - -// because elvis operator -def elvisFile(thing) { - return thing ? file(thing) : null; -} - -def reactRoot = elvisFile(config.root) ?: file("../../") +def reactRoot = file(config.root ?: "../../") def inputExcludes = config.inputExcludes ?: ["android/**", "ios/**"] def bundleConfig = config.bundleConfig ? "${reactRoot}/${config.bundleConfig}" : null ; -void runBefore(String dependentTaskName, Task task) { - Task dependentTask = tasks.findByPath(dependentTaskName); - if (dependentTask != null) { - dependentTask.dependsOn task - } -} gradle.projectsEvaluated { - // Grab all build types and product flavors - def buildTypes = android.buildTypes.collect { type -> type.name } - def productFlavors = android.productFlavors.collect { flavor -> flavor.name } - - // When no product flavors defined, use empty - if (!productFlavors) productFlavors.add('') - - productFlavors.each { productFlavorName -> - buildTypes.each { buildTypeName -> - // Create variant and target names - def flavorNameCapitalized = "${productFlavorName.capitalize()}" - def buildNameCapitalized = "${buildTypeName.capitalize()}" - def targetName = "${flavorNameCapitalized}${buildNameCapitalized}" - def targetPath = productFlavorName ? - "${productFlavorName}/${buildTypeName}" : - "${buildTypeName}" - - // React js bundle directories - def jsBundleDirConfigName = "jsBundleDir${targetName}" - def jsBundleDir = elvisFile(config."$jsBundleDirConfigName") ?: - file("$buildDir/intermediates/assets/${targetPath}") - - def resourcesDirConfigName = "resourcesDir${targetName}" - def resourcesDir = elvisFile(config."${resourcesDirConfigName}") ?: - file("$buildDir/intermediates/res/merged/${targetPath}") - def jsBundleFile = file("$jsBundleDir/$bundleAssetName") - - // Bundle task name for variant - def bundleJsAndAssetsTaskName = "bundle${targetName}JsAndAssets" - - // Additional node and packager commandline arguments - def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"] - def extraPackagerArgs = config.extraPackagerArgs ?: [] - - def currentBundleTask = tasks.create( - name: bundleJsAndAssetsTaskName, - type: Exec) { + android.applicationVariants.all { def variant -> + // Create variant and target names + def targetName = variant.name.capitalize() + def targetPath = variant.dirName + + // React js bundle directories + def jsBundleDir = file("$buildDir/generated/assets/react/${targetPath}") + def resourcesDir = file("$buildDir/generated/res/react/${targetPath}") + + def jsBundleFile = file("$jsBundleDir/$bundleAssetName") + + // Additional node and packager commandline arguments + def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"] + def extraPackagerArgs = config.extraPackagerArgs ?: [] + + def currentBundleTask = tasks.create( + name: "bundle${targetName}JsAndAssets", + type: Exec) { + group = "react" + description = "bundle JS and assets for ${targetName}." + + // Create dirs if they are not there (e.g. the "clean" task just ran) + doFirst { + jsBundleDir.deleteDir() + jsBundleDir.mkdirs() + resourcesDir.deleteDir() + resourcesDir.mkdirs() + } + + // Set up inputs and outputs so gradle can cache the result + inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) + outputs.dir jsBundleDir + outputs.dir resourcesDir + + // Set up the call to the react-native cli + workingDir reactRoot + + // Set up dev mode + def devEnabled = !(config."devDisabledIn${targetName}" + || targetName.toLowerCase().contains("release")) + + def extraArgs = extraPackagerArgs; + + if (bundleConfig) { + extraArgs = extraArgs.clone() + extraArgs.add("--config"); + extraArgs.add(bundleConfig); + } + + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + commandLine("cmd", "/c", *nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", + "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs) + } else { + commandLine(*nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", + "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs) + } + + enabled config."bundleIn${targetName}" || + config."bundleIn${variant.buildType.name.capitalize()}" ?: + targetName.toLowerCase().contains("release") + } + + // Expose a minimal interface on the application variant and the task itself: + variant.ext.bundleJsAndAssets = currentBundleTask + currentBundleTask.ext.generatedResFolders = files(resourcesDir).builtBy(currentBundleTask) + currentBundleTask.ext.generatedAssetsFolders = files(jsBundleDir).builtBy(currentBundleTask) + + variant.registerGeneratedResFolders(currentBundleTask.generatedResFolders) + variant.mergeResources.dependsOn(currentBundleTask) + + def resourcesDirConfigValue = config."resourcesDir${targetName}" + if (resourcesDirConfigValue) { + def currentCopyResTask = tasks.create( + name: "copy${targetName}BundledResources", + type: Copy) { group = "react" - description = "bundle JS and assets for ${targetName}." - - // Create dirs if they are not there (e.g. the "clean" task just ran) - doFirst { - jsBundleDir.mkdirs() - resourcesDir.mkdirs() - } - - // Set up inputs and outputs so gradle can cache the result - inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) - outputs.dir jsBundleDir - outputs.dir resourcesDir - - // Set up the call to the react-native cli - workingDir reactRoot - - // Set up dev mode - def devEnabled = !(config."devDisabledIn${targetName}" - || targetName.toLowerCase().contains("release")) - - def extraArgs = extraPackagerArgs; - - if (bundleConfig) { - extraArgs = extraArgs.clone() - extraArgs.add("--config"); - extraArgs.add(bundleConfig); - } - - if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine("cmd", "/c", *nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", - "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs) - } else { - commandLine(*nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", - "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs) - } - - enabled config."bundleIn${targetName}" || - config."bundleIn${buildTypeName.capitalize()}" ?: - targetName.toLowerCase().contains("release") + description = "copy bundled resources into custom location for ${targetName}." + + from resourcesDir + into file(resourcesDirConfigValue) + + dependsOn(currentBundleTask) + + enabled currentBundleTask.enabled } - // Hook bundle${productFlavor}${buildType}JsAndAssets into the android build process - currentBundleTask.dependsOn("merge${targetName}Resources") - currentBundleTask.dependsOn("merge${targetName}Assets") + variant.packageApplication.dependsOn(currentCopyResTask) + } + + def currentAssetsCopyTask = tasks.create( + name: "copy${targetName}BundledJs", + type: Copy) { + group = "react" + description = "copy bundled JS into ${targetName}." - runBefore("process${flavorNameCapitalized}Armeabi-v7a${buildNameCapitalized}Resources", currentBundleTask) - runBefore("process${flavorNameCapitalized}X86${buildNameCapitalized}Resources", currentBundleTask) - runBefore("processUniversal${targetName}Resources", currentBundleTask) - runBefore("process${targetName}Resources", currentBundleTask) - runBefore("dataBindingProcessLayouts${targetName}", currentBundleTask) + from jsBundleDir + into file(config."jsBundleDir${targetName}" ?: + "$buildDir/intermediates/assets/${targetPath}") + + // mergeAssets must run first, as it clears the intermediates directory + dependsOn(variant.mergeAssets) + + enabled currentBundleTask.enabled } + + variant.packageApplication.dependsOn(currentAssetsCopyTask) } } From 67c3ad4e6a1847cbac43115b01f72cc5c8932a61 Mon Sep 17 00:00:00 2001 From: Toby Cox Date: Fri, 16 Feb 2018 17:28:35 -0800 Subject: [PATCH 051/267] Fix pinch crash in touch-responsive views. Summary: Fork and rebase of gillessed's PR https://github.com/facebook/react-native/pull/13166 which has gotten stale. From original PR: Motivation (required) Multiple react native developer (including myself) have run into a crash with the react-native-photo-view library (and possibly others). The common solution to this problem lies in the underlying java code, and thus requires a change in the react native source. The stack trace I am getting is the same as listed here alwx/react-native-photo-view#15. There was a PR to fix this (#12085) but it was closed. In response to the comments there, in my PR, I do log the exceptions. I don't think we can get any closer to the exception because in the next level of the stack trace, we are in the android sdk code. Looking at some stack overflow pages and the android bug tracker, it seems that this is the common solution to this bug, and does not cause any impact any functionality. https://code.google.com/p/android/issues/list?can=1&q=pointerindex+out+of+range&colspec=ID+Status+Priority+Owner+Summary+Stars+Reporter+Opened&cells=tiles Test Plan (required) I have manually tested this by compiling react native android from source and have confirmed the exception still gets hit and logged, but does not cause the app to terminate. Closes https://github.com/facebook/react-native/pull/17167 Differential Revision: D7014296 Pulled By: hramos fbshipit-source-id: 06b4a31062a591b726d2021e877d16f49881dcfd --- .../react/views/drawer/ReactDrawerLayout.java | 16 +++++++++++--- .../scroll/ReactHorizontalScrollView.java | 22 ++++++++++++++----- .../react/views/scroll/ReactScrollView.java | 19 +++++++++++----- .../react/views/viewpager/ReactViewPager.java | 16 +++++++++++--- 4 files changed, 55 insertions(+), 18 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java index abdb4a04d4e1b6..cdb0265e26e49f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java @@ -11,10 +11,12 @@ import android.support.v4.widget.DrawerLayout; import android.view.Gravity; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import com.facebook.react.bridge.ReactContext; +import com.facebook.react.common.ReactConstants; import com.facebook.react.uimanager.PixelUtil; import com.facebook.react.uimanager.events.NativeGestureUtil; @@ -34,10 +36,18 @@ public ReactDrawerLayout(ReactContext reactContext) { @Override public boolean onInterceptTouchEvent(MotionEvent ev) { - if (super.onInterceptTouchEvent(ev)) { - NativeGestureUtil.notifyNativeGestureStarted(this, ev); - return true; + try { + if (super.onInterceptTouchEvent(ev)) { + NativeGestureUtil.notifyNativeGestureStarted(this, ev); + return true; + } + } catch (IllegalArgumentException e) { + // Log and ignore the error. This seems to be a bug in the android SDK and + // this is the commonly accepted workaround. + // https://tinyurl.com/mw6qkod (Stack Overflow) + Log.w(ReactConstants.TAG, "Error intercepting touch event.", e); } + return false; } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java index 38371436b8834a..ebcd2d50110663 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java @@ -17,10 +17,13 @@ import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.support.v4.view.ViewCompat; +import android.graphics.drawable.LayerDrawable; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.widget.HorizontalScrollView; import com.facebook.infer.annotation.Assertions; +import com.facebook.react.common.ReactConstants; import com.facebook.react.uimanager.MeasureSpecAssertions; import com.facebook.react.uimanager.ReactClippingViewGroup; import com.facebook.react.uimanager.ReactClippingViewGroupHelper; @@ -140,12 +143,19 @@ public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } - if (super.onInterceptTouchEvent(ev)) { - NativeGestureUtil.notifyNativeGestureStarted(this, ev); - ReactScrollViewHelper.emitScrollBeginDragEvent(this); - mDragging = true; - enableFpsListener(); - return true; + try { + if (super.onInterceptTouchEvent(ev)) { + NativeGestureUtil.notifyNativeGestureStarted(this, ev); + ReactScrollViewHelper.emitScrollBeginDragEvent(this); + mDragging = true; + enableFpsListener(); + return true; + } + } catch (IllegalArgumentException e) { + // Log and ignore the error. This seems to be a bug in the android SDK and + // this is the commonly accepted workaround. + // https://tinyurl.com/mw6qkod (Stack Overflow) + Log.w(ReactConstants.TAG, "Error intercepting touch event.", e); } return false; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java index a9c7960cf14ae5..509964ceb13064 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java @@ -190,12 +190,19 @@ public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } - if (super.onInterceptTouchEvent(ev)) { - NativeGestureUtil.notifyNativeGestureStarted(this, ev); - ReactScrollViewHelper.emitScrollBeginDragEvent(this); - mDragging = true; - enableFpsListener(); - return true; + try { + if (super.onInterceptTouchEvent(ev)) { + NativeGestureUtil.notifyNativeGestureStarted(this, ev); + ReactScrollViewHelper.emitScrollBeginDragEvent(this); + mDragging = true; + enableFpsListener(); + return true; + } + } catch (IllegalArgumentException e) { + // Log and ignore the error. This seems to be a bug in the android SDK and + // this is the commonly accepted workaround. + // https://tinyurl.com/mw6qkod (Stack Overflow) + Log.w(ReactConstants.TAG, "Error intercepting touch event.", e); } return false; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java index 9a76bace545907..7d99e272a40153 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java @@ -11,10 +11,12 @@ import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import com.facebook.react.bridge.ReactContext; +import com.facebook.react.common.ReactConstants; import com.facebook.react.uimanager.UIManagerModule; import com.facebook.react.uimanager.events.EventDispatcher; import com.facebook.react.uimanager.events.NativeGestureUtil; @@ -176,10 +178,18 @@ public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } - if (super.onInterceptTouchEvent(ev)) { - NativeGestureUtil.notifyNativeGestureStarted(this, ev); - return true; + try { + if (super.onInterceptTouchEvent(ev)) { + NativeGestureUtil.notifyNativeGestureStarted(this, ev); + return true; + } + } catch (IllegalArgumentException e) { + // Log and ignore the error. This seems to be a bug in the android SDK and + // this is the commonly accepted workaround. + // https://tinyurl.com/mw6qkod (Stack Overflow) + Log.w(ReactConstants.TAG, "Error intercepting touch event.", e); } + return false; } From 1490ab12ef156bf3201882eeabfcac18a1210352 Mon Sep 17 00:00:00 2001 From: Sophie Alpert Date: Fri, 16 Feb 2018 18:24:55 -0800 Subject: [PATCH 052/267] Update license headers for MIT license Summary: Includes React Native and its dependencies Fresco, Metro, and Yoga. Excludes samples/examples/docs. find: ^(?:( *)|( *(?:[\*~#]|::))( )? *)?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+?BSD[\s\S]+?(?:this source tree|the same directory)\.$ replace: $1$2$3Copyright (c) $4-present, Facebook, Inc.\n$2\n$1$2$3This source code is licensed under the MIT license found in the\n$1$2$3LICENSE file in the root directory of this source tree. Reviewed By: TheSavior, yungsters Differential Revision: D7007050 fbshipit-source-id: 37dd6bf0ffec0923bfc99c260bb330683f35553e --- CONTRIBUTING.md | 6 ++---- .../scripts/run-android-ci-instrumentation-tests.js | 6 ++---- IntegrationTests/AccessibilityManagerTest.js | 6 ++---- IntegrationTests/AppEventsTest.js | 6 ++---- IntegrationTests/AsyncStorageTest.js | 6 ++---- IntegrationTests/ImageCachePolicyTest.js | 6 ++---- IntegrationTests/ImageSnapshotTest.js | 6 ++---- IntegrationTests/IntegrationTestHarnessTest.js | 6 ++---- IntegrationTests/IntegrationTestsApp.js | 6 ++---- IntegrationTests/LayoutEventsTest.js | 6 ++---- IntegrationTests/LoggingTestModule.js | 6 ++---- IntegrationTests/PromiseTest.js | 6 ++---- IntegrationTests/PropertiesUpdateTest.js | 6 ++---- IntegrationTests/RCTRootViewIntegrationTestApp.js | 6 ++---- IntegrationTests/ReactContentSizeUpdateTest.js | 6 ++---- IntegrationTests/SimpleSnapshotTest.js | 6 ++---- IntegrationTests/SizeFlexibilityUpdateTest.js | 6 ++---- IntegrationTests/SyncMethodTest.js | 6 ++---- IntegrationTests/TimersTest.js | 6 ++---- IntegrationTests/WebSocketTest.js | 6 ++---- IntegrationTests/WebViewTest.js | 6 ++---- IntegrationTests/launchWebSocketServer.command | 6 ++---- IntegrationTests/websocket_integration_test_server.js | 6 ++---- Libraries/ART/ARTCGFloatArray.h | 6 ++---- Libraries/ART/ARTContainer.h | 6 ++---- Libraries/ART/ARTGroup.h | 6 ++---- Libraries/ART/ARTGroup.m | 6 ++---- Libraries/ART/ARTNode.h | 6 ++---- Libraries/ART/ARTNode.m | 6 ++---- Libraries/ART/ARTRenderable.h | 6 ++---- Libraries/ART/ARTRenderable.m | 6 ++---- Libraries/ART/ARTSerializablePath.js | 6 ++---- Libraries/ART/ARTShape.h | 6 ++---- Libraries/ART/ARTShape.m | 6 ++---- Libraries/ART/ARTSurfaceView.h | 6 ++---- Libraries/ART/ARTSurfaceView.m | 6 ++---- Libraries/ART/ARTText.h | 6 ++---- Libraries/ART/ARTText.m | 6 ++---- Libraries/ART/ARTTextFrame.h | 6 ++---- Libraries/ART/Brushes/ARTBrush.h | 6 ++---- Libraries/ART/Brushes/ARTBrush.m | 6 ++---- Libraries/ART/Brushes/ARTLinearGradient.h | 6 ++---- Libraries/ART/Brushes/ARTLinearGradient.m | 6 ++---- Libraries/ART/Brushes/ARTPattern.h | 6 ++---- Libraries/ART/Brushes/ARTPattern.m | 6 ++---- Libraries/ART/Brushes/ARTRadialGradient.h | 6 ++---- Libraries/ART/Brushes/ARTRadialGradient.m | 6 ++---- Libraries/ART/Brushes/ARTSolidColor.h | 6 ++---- Libraries/ART/Brushes/ARTSolidColor.m | 6 ++---- Libraries/ART/RCTConvert+ART.h | 6 ++---- Libraries/ART/RCTConvert+ART.m | 6 ++---- Libraries/ART/ReactNativeART.js | 6 ++---- Libraries/ART/ViewManagers/ARTGroupManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTGroupManager.m | 6 ++---- Libraries/ART/ViewManagers/ARTNodeManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTNodeManager.m | 6 ++---- Libraries/ART/ViewManagers/ARTRenderableManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTRenderableManager.m | 6 ++---- Libraries/ART/ViewManagers/ARTShapeManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTShapeManager.m | 6 ++---- Libraries/ART/ViewManagers/ARTSurfaceViewManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTSurfaceViewManager.m | 6 ++---- Libraries/ART/ViewManagers/ARTTextManager.h | 6 ++---- Libraries/ART/ViewManagers/ARTTextManager.m | 6 ++---- Libraries/ActionSheetIOS/ActionSheetIOS.js | 6 ++---- Libraries/ActionSheetIOS/RCTActionSheetManager.h | 6 ++---- Libraries/ActionSheetIOS/RCTActionSheetManager.m | 6 ++---- Libraries/Alert/Alert.js | 6 ++---- Libraries/Alert/AlertIOS.js | 6 ++---- Libraries/Alert/RCTAlertManager.android.js | 6 ++---- Libraries/Alert/RCTAlertManager.ios.js | 6 ++---- Libraries/Animated/release/gulpfile.js | 8 +++----- Libraries/Animated/src/Animated.js | 6 ++---- Libraries/Animated/src/AnimatedEvent.js | 6 ++---- Libraries/Animated/src/AnimatedImplementation.js | 6 ++---- Libraries/Animated/src/AnimatedWeb.js | 6 ++---- Libraries/Animated/src/Easing.js | 6 ++---- Libraries/Animated/src/NativeAnimatedHelper.js | 6 ++---- Libraries/Animated/src/SpringConfig.js | 6 ++---- Libraries/Animated/src/__tests__/Animated-test.js | 6 ++---- Libraries/Animated/src/__tests__/AnimatedNative-test.js | 6 ++---- Libraries/Animated/src/__tests__/Easing-test.js | 6 ++---- Libraries/Animated/src/__tests__/Interpolation-test.js | 6 ++---- Libraries/Animated/src/animations/Animation.js | 6 ++---- Libraries/Animated/src/animations/DecayAnimation.js | 6 ++---- Libraries/Animated/src/animations/SpringAnimation.js | 6 ++---- Libraries/Animated/src/animations/TimingAnimation.js | 6 ++---- Libraries/Animated/src/createAnimatedComponent.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedAddition.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedDiffClamp.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedDivision.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedInterpolation.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedModulo.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedMultiplication.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedNode.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedProps.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedStyle.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedTracking.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedTransform.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedValue.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedValueXY.js | 6 ++---- Libraries/Animated/src/nodes/AnimatedWithChildren.js | 6 ++---- Libraries/Animated/src/polyfills/InteractionManager.js | 6 ++---- Libraries/Animated/src/polyfills/Set.js | 6 ++---- Libraries/Animated/src/polyfills/flattenStyle.js | 6 ++---- Libraries/AppState/AppState.js | 6 ++---- Libraries/BatchedBridge/BatchedBridge.js | 6 ++---- Libraries/BatchedBridge/MessageQueue.js | 6 ++---- Libraries/BatchedBridge/NativeModules.js | 6 ++---- .../BatchedBridge/__mocks__/MessageQueueTestConfig.js | 6 ++---- .../BatchedBridge/__mocks__/MessageQueueTestModule.js | 6 ++---- Libraries/BatchedBridge/__tests__/MessageQueue-test.js | 6 ++---- Libraries/BatchedBridge/__tests__/NativeModules-test.js | 6 ++---- Libraries/Blob/Blob.js | 6 ++---- Libraries/Blob/BlobManager.js | 6 ++---- Libraries/Blob/BlobRegistry.js | 6 ++---- Libraries/Blob/BlobTypes.js | 6 ++---- Libraries/Blob/File.js | 6 ++---- Libraries/Blob/FileReader.js | 6 ++---- Libraries/Blob/RCTBlobManager.h | 6 ++---- Libraries/Blob/RCTBlobManager.mm | 6 ++---- Libraries/Blob/RCTFileReaderModule.h | 6 ++---- Libraries/Blob/RCTFileReaderModule.m | 6 ++---- Libraries/Blob/URL.js | 6 ++---- Libraries/Blob/__mocks__/BlobModule.js | 6 ++---- Libraries/Blob/__mocks__/FileReaderModule.js | 6 ++---- Libraries/Blob/__tests__/Blob-test.js | 6 ++---- Libraries/Blob/__tests__/BlobManager-test.js | 6 ++---- Libraries/Blob/__tests__/File-test.js | 6 ++---- Libraries/Blob/__tests__/FileReader-test.js | 6 ++---- Libraries/BugReporting/BugReporting.js | 6 ++---- Libraries/BugReporting/dumpReactTree.js | 6 ++---- Libraries/BugReporting/getReactData.js | 6 ++---- Libraries/CameraRoll/CameraRoll.js | 6 ++---- Libraries/CameraRoll/ImagePickerIOS.js | 6 ++---- Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.h | 6 ++---- Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.m | 6 ++---- Libraries/CameraRoll/RCTCameraRollManager.h | 6 ++---- Libraries/CameraRoll/RCTCameraRollManager.m | 6 ++---- Libraries/CameraRoll/RCTImagePickerManager.h | 8 +++----- Libraries/CameraRoll/RCTImagePickerManager.m | 8 +++----- Libraries/CameraRoll/RCTPhotoLibraryImageLoader.h | 6 ++---- Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m | 6 ++---- .../AccessibilityInfo/AccessibilityInfo.android.js | 6 ++---- .../AccessibilityInfo/AccessibilityInfo.ios.js | 6 ++---- .../Components/ActivityIndicator/ActivityIndicator.js | 6 ++---- Libraries/Components/AppleTV/TVEventHandler.android.js | 6 ++---- Libraries/Components/AppleTV/TVEventHandler.ios.js | 6 ++---- Libraries/Components/AppleTV/TVViewPropTypes.js | 6 ++---- Libraries/Components/Button.js | 6 ++---- Libraries/Components/CheckBox/CheckBox.android.js | 6 ++---- Libraries/Components/CheckBox/CheckBox.ios.js | 6 ++---- Libraries/Components/Clipboard/Clipboard.js | 6 ++---- Libraries/Components/DatePicker/DatePickerIOS.android.js | 6 ++---- Libraries/Components/DatePicker/DatePickerIOS.ios.js | 6 ++---- .../DatePickerAndroid/DatePickerAndroid.android.js | 6 ++---- .../DatePickerAndroid/DatePickerAndroid.ios.js | 6 ++---- .../DrawerAndroid/DrawerLayoutAndroid.android.js | 6 ++---- .../Components/DrawerAndroid/DrawerLayoutAndroid.ios.js | 6 ++---- Libraries/Components/Keyboard/Keyboard.js | 6 ++---- Libraries/Components/Keyboard/KeyboardAvoidingView.js | 6 ++---- Libraries/Components/LazyRenderer.js | 6 ++---- Libraries/Components/MaskedView/MaskedViewIOS.android.js | 6 ++---- Libraries/Components/MaskedView/MaskedViewIOS.ios.js | 6 ++---- Libraries/Components/Navigation/NavigatorIOS.android.js | 6 ++---- Libraries/Components/Navigation/NavigatorIOS.ios.js | 6 ++---- Libraries/Components/Picker/Picker.js | 6 ++---- Libraries/Components/Picker/PickerAndroid.android.js | 6 ++---- Libraries/Components/Picker/PickerAndroid.ios.js | 6 ++---- Libraries/Components/Picker/PickerIOS.android.js | 6 ++---- Libraries/Components/Picker/PickerIOS.ios.js | 6 ++---- .../ProgressBarAndroid/ProgressBarAndroid.android.js | 6 ++---- .../ProgressBarAndroid/ProgressBarAndroid.ios.js | 6 ++---- .../ProgressViewIOS/ProgressViewIOS.android.js | 6 ++---- .../Components/ProgressViewIOS/ProgressViewIOS.ios.js | 6 ++---- Libraries/Components/RefreshControl/RefreshControl.js | 6 ++---- .../RefreshControl/__mocks__/RefreshControlMock.js | 6 ++---- .../Components/SafeAreaView/SafeAreaView.android.js | 6 ++---- Libraries/Components/SafeAreaView/SafeAreaView.ios.js | 6 ++---- Libraries/Components/ScrollResponder.js | 6 ++---- Libraries/Components/ScrollView/ScrollView.js | 6 ++---- .../Components/ScrollView/ScrollViewStickyHeader.js | 6 ++---- .../Components/ScrollView/__mocks__/ScrollViewMock.js | 6 ++---- .../Components/ScrollView/processDecelerationRate.js | 6 ++---- .../SegmentedControlIOS/SegmentedControlIOS.android.js | 6 ++---- .../SegmentedControlIOS/SegmentedControlIOS.ios.js | 6 ++---- Libraries/Components/Slider/Slider.js | 6 ++---- Libraries/Components/StaticContainer.react.js | 6 ++---- Libraries/Components/StaticRenderer.js | 6 ++---- Libraries/Components/StatusBar/StatusBar.js | 6 ++---- Libraries/Components/StatusBar/StatusBarIOS.android.js | 6 ++---- Libraries/Components/StatusBar/StatusBarIOS.ios.js | 6 ++---- Libraries/Components/Subscribable.js | 6 ++---- Libraries/Components/Switch/Switch.js | 6 ++---- Libraries/Components/TabBarIOS/TabBarIOS.android.js | 6 ++---- Libraries/Components/TabBarIOS/TabBarIOS.ios.js | 6 ++---- Libraries/Components/TabBarIOS/TabBarItemIOS.android.js | 6 ++---- Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js | 6 ++---- Libraries/Components/TextInput/TextInput.js | 6 ++---- Libraries/Components/TextInput/TextInputState.js | 6 ++---- .../TimePickerAndroid/TimePickerAndroid.android.js | 6 ++---- .../TimePickerAndroid/TimePickerAndroid.ios.js | 6 ++---- .../Components/ToastAndroid/ToastAndroid.android.js | 6 ++---- Libraries/Components/ToastAndroid/ToastAndroid.ios.js | 6 ++---- .../Components/ToolbarAndroid/ToolbarAndroid.android.js | 6 ++---- .../Components/ToolbarAndroid/ToolbarAndroid.ios.js | 6 ++---- Libraries/Components/Touchable/BoundingDimensions.js | 6 ++---- Libraries/Components/Touchable/Position.js | 6 ++---- Libraries/Components/Touchable/Touchable.js | 6 ++---- Libraries/Components/Touchable/TouchableBounce.js | 6 ++---- Libraries/Components/Touchable/TouchableHighlight.js | 6 ++---- .../Touchable/TouchableNativeFeedback.android.js | 6 ++---- .../Components/Touchable/TouchableNativeFeedback.ios.js | 6 ++---- Libraries/Components/Touchable/TouchableOpacity.js | 6 ++---- .../Components/Touchable/TouchableWithoutFeedback.js | 6 ++---- .../Touchable/__mocks__/ensureComponentIsNative.js | 6 ++---- .../Touchable/__tests__/TouchableHighlight-test.js | 6 ++---- .../Components/Touchable/ensureComponentIsNative.js | 6 ++---- .../Components/Touchable/ensurePositiveDelayProps.js | 6 ++---- .../Components/UnimplementedViews/UnimplementedView.js | 6 ++---- .../Components/View/PlatformViewPropTypes.android.js | 6 ++---- Libraries/Components/View/PlatformViewPropTypes.ios.js | 6 ++---- Libraries/Components/View/ReactNativeStyleAttributes.js | 6 ++---- Libraries/Components/View/ReactNativeViewAttributes.js | 6 ++---- Libraries/Components/View/ShadowPropTypesIOS.js | 6 ++---- Libraries/Components/View/View.js | 6 ++---- Libraries/Components/View/View.js.flow | 6 ++---- Libraries/Components/View/ViewAccessibility.js | 6 ++---- Libraries/Components/View/ViewContext.js | 6 ++---- Libraries/Components/View/ViewPropTypes.js | 6 ++---- Libraries/Components/View/ViewStylePropTypes.js | 6 ++---- .../Components/ViewPager/ViewPagerAndroid.android.js | 6 ++---- Libraries/Components/ViewPager/ViewPagerAndroid.ios.js | 6 ++---- Libraries/Components/WebView/WebView.android.js | 6 ++---- Libraries/Components/WebView/WebView.ios.js | 6 ++---- .../Core/Devtools/__tests__/parseErrorStack-test.js | 6 ++---- Libraries/Core/Devtools/getDevServer.js | 6 ++---- Libraries/Core/Devtools/openFileInEditor.js | 6 ++---- Libraries/Core/Devtools/parseErrorStack.js | 6 ++---- Libraries/Core/Devtools/setupDevtools.js | 6 ++---- Libraries/Core/Devtools/symbolicateStackTrace.js | 6 ++---- Libraries/Core/ExceptionsManager.js | 6 ++---- Libraries/Core/InitializeCore.js | 6 ++---- Libraries/Core/ReactNativeVersion.js | 6 ++---- Libraries/Core/ReactNativeVersionCheck.js | 6 ++---- Libraries/Core/Timers/JSTimers.js | 6 ++---- Libraries/Core/__mocks__/ErrorUtils.js | 6 ++---- Libraries/Core/__tests__/ReactNativeVersionCheck-test.js | 6 ++---- Libraries/EventEmitter/MissingNativeEventEmitterShim.js | 6 ++---- Libraries/EventEmitter/NativeEventEmitter.js | 6 ++---- Libraries/EventEmitter/RCTDeviceEventEmitter.js | 6 ++---- Libraries/EventEmitter/RCTEventEmitter.js | 6 ++---- Libraries/EventEmitter/RCTNativeAppEventEmitter.js | 6 ++---- Libraries/EventEmitter/__mocks__/NativeEventEmitter.js | 6 ++---- Libraries/Experimental/Incremental.js | 6 ++---- Libraries/Experimental/IncrementalExample.js | 6 ++---- Libraries/Experimental/IncrementalGroup.js | 6 ++---- Libraries/Experimental/IncrementalPresenter.js | 6 ++---- Libraries/Experimental/SwipeableRow/SwipeableFlatList.js | 6 ++---- Libraries/Experimental/SwipeableRow/SwipeableListView.js | 6 ++---- .../SwipeableRow/SwipeableListViewDataSource.js | 6 ++---- .../SwipeableRow/SwipeableQuickActionButton.js | 6 ++---- .../Experimental/SwipeableRow/SwipeableQuickActions.js | 6 ++---- Libraries/Experimental/SwipeableRow/SwipeableRow.js | 6 ++---- Libraries/Experimental/WindowedListView.js | 6 ++---- Libraries/Geolocation/Geolocation.js | 6 ++---- Libraries/Geolocation/RCTLocationObserver.h | 6 ++---- Libraries/Geolocation/RCTLocationObserver.m | 6 ++---- Libraries/Image/AssetRegistry.js | 6 ++---- Libraries/Image/AssetSourceResolver.js | 6 ++---- Libraries/Image/Image.android.js | 6 ++---- Libraries/Image/Image.ios.js | 6 ++---- Libraries/Image/ImageBackground.js | 6 ++---- Libraries/Image/ImageEditor.js | 6 ++---- Libraries/Image/ImageResizeMode.js | 6 ++---- Libraries/Image/ImageSource.js | 6 ++---- Libraries/Image/ImageSourcePropType.js | 6 ++---- Libraries/Image/ImageStore.js | 6 ++---- Libraries/Image/ImageStylePropTypes.js | 6 ++---- Libraries/Image/RCTGIFImageDecoder.h | 6 ++---- Libraries/Image/RCTGIFImageDecoder.m | 6 ++---- Libraries/Image/RCTImageBlurUtils.h | 8 +++----- Libraries/Image/RCTImageBlurUtils.m | 6 ++---- Libraries/Image/RCTImageCache.h | 6 ++---- Libraries/Image/RCTImageCache.m | 6 ++---- Libraries/Image/RCTImageEditingManager.h | 6 ++---- Libraries/Image/RCTImageEditingManager.m | 6 ++---- Libraries/Image/RCTImageLoader.h | 6 ++---- Libraries/Image/RCTImageLoader.m | 6 ++---- Libraries/Image/RCTImageShadowView.h | 6 ++---- Libraries/Image/RCTImageShadowView.m | 6 ++---- Libraries/Image/RCTImageStoreManager.m | 6 ++---- Libraries/Image/RCTImageUtils.h | 8 +++----- Libraries/Image/RCTImageUtils.m | 6 ++---- Libraries/Image/RCTImageView.h | 6 ++---- Libraries/Image/RCTImageView.m | 6 ++---- Libraries/Image/RCTImageViewManager.h | 6 ++---- Libraries/Image/RCTImageViewManager.m | 6 ++---- Libraries/Image/RCTLocalAssetImageLoader.h | 6 ++---- Libraries/Image/RCTLocalAssetImageLoader.m | 6 ++---- Libraries/Image/RCTResizeMode.h | 6 ++---- Libraries/Image/RCTResizeMode.m | 6 ++---- Libraries/Image/RelativeImageStub.js | 6 ++---- Libraries/Image/__tests__/assetRelativePathInSnapshot.js | 6 ++---- Libraries/Image/__tests__/resolveAssetSource-test.js | 6 ++---- Libraries/Image/nativeImageSource.js | 6 ++---- Libraries/Image/resolveAssetSource.js | 6 ++---- Libraries/Inspector/BorderBox.js | 6 ++---- Libraries/Inspector/BoxInspector.js | 6 ++---- Libraries/Inspector/ElementBox.js | 6 ++---- Libraries/Inspector/ElementProperties.js | 6 ++---- Libraries/Inspector/Inspector.js | 6 ++---- Libraries/Inspector/InspectorOverlay.js | 6 ++---- Libraries/Inspector/InspectorPanel.js | 6 ++---- Libraries/Inspector/NetworkOverlay.js | 6 ++---- Libraries/Inspector/PerformanceOverlay.js | 6 ++---- Libraries/Inspector/StyleInspector.js | 6 ++---- Libraries/Inspector/resolveBoxStyle.js | 6 ++---- Libraries/Interaction/Batchinator.js | 6 ++---- Libraries/Interaction/BridgeSpyStallHandler.js | 6 ++---- Libraries/Interaction/FrameRateLogger.js | 6 ++---- Libraries/Interaction/InteractionManager.js | 6 ++---- Libraries/Interaction/InteractionMixin.js | 6 ++---- Libraries/Interaction/InteractionStallDebugger.js | 6 ++---- Libraries/Interaction/JSEventLoopWatchdog.js | 6 ++---- Libraries/Interaction/PanResponder.js | 6 ++---- Libraries/Interaction/ReactPerfStallHandler.js | 6 ++---- Libraries/Interaction/TaskQueue.js | 6 ++---- Libraries/Interaction/__tests__/Batchinator-test.js | 6 ++---- .../Interaction/__tests__/InteractionManager-test.js | 6 ++---- Libraries/Interaction/__tests__/InteractionMixin-test.js | 6 ++---- Libraries/Interaction/__tests__/TaskQueue-test.js | 6 ++---- Libraries/JSInspector/InspectorAgent.js | 6 ++---- Libraries/JSInspector/JSInspector.js | 6 ++---- Libraries/JSInspector/NetworkAgent.js | 6 ++---- Libraries/LayoutAnimation/LayoutAnimation.js | 6 ++---- Libraries/Linking/Linking.js | 6 ++---- Libraries/LinkingIOS/RCTLinkingManager.h | 6 ++---- Libraries/LinkingIOS/RCTLinkingManager.m | 6 ++---- Libraries/Lists/FillRateHelper.js | 6 ++---- Libraries/Lists/FlatList.js | 6 ++---- Libraries/Lists/ListView/ListView.js | 6 ++---- Libraries/Lists/ListView/ListViewDataSource.js | 6 ++---- Libraries/Lists/ListView/__mocks__/ListViewMock.js | 6 ++---- Libraries/Lists/MetroListView.js | 6 ++---- Libraries/Lists/SectionList.js | 6 ++---- Libraries/Lists/ViewabilityHelper.js | 6 ++---- Libraries/Lists/VirtualizeUtils.js | 6 ++---- Libraries/Lists/VirtualizedList.js | 6 ++---- Libraries/Lists/VirtualizedSectionList.js | 6 ++---- Libraries/Lists/__flowtests__/FlatList-flowtest.js | 6 ++---- Libraries/Lists/__flowtests__/SectionList-flowtest.js | 6 ++---- Libraries/Lists/__tests__/FillRateHelper-test.js | 6 ++---- Libraries/Lists/__tests__/FlatList-test.js | 6 ++---- Libraries/Lists/__tests__/SectionList-test.js | 6 ++---- Libraries/Lists/__tests__/ViewabilityHelper-test.js | 6 ++---- Libraries/Lists/__tests__/VirtualizeUtils-test.js | 6 ++---- Libraries/Lists/__tests__/VirtualizedList-test.js | 6 ++---- Libraries/Modal/Modal.js | 6 ++---- Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h | 6 ++---- Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h | 6 ++---- Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m | 6 ++---- Libraries/NativeAnimation/Drivers/RCTEventAnimation.h | 6 ++---- Libraries/NativeAnimation/Drivers/RCTEventAnimation.m | 6 ++---- Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h | 6 ++---- Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m | 6 ++---- Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h | 6 ++---- Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m | 6 ++---- .../NativeAnimation/Nodes/RCTAdditionAnimatedNode.h | 6 ++---- .../NativeAnimation/Nodes/RCTAdditionAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h | 6 ++---- Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m | 6 ++---- .../NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h | 6 ++---- .../NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m | 6 ++---- .../NativeAnimation/Nodes/RCTDivisionAnimatedNode.h | 6 ++---- .../NativeAnimation/Nodes/RCTDivisionAnimatedNode.m | 6 ++---- .../NativeAnimation/Nodes/RCTInterpolationAnimatedNode.h | 6 ++---- .../NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h | 6 ++---- Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.m | 6 ++---- .../Nodes/RCTMultiplicationAnimatedNode.h | 6 ++---- .../Nodes/RCTMultiplicationAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.h | 6 ++---- Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h | 6 ++---- Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m | 6 ++---- .../NativeAnimation/Nodes/RCTTransformAnimatedNode.h | 6 ++---- .../NativeAnimation/Nodes/RCTTransformAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h | 6 ++---- Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m | 6 ++---- Libraries/NativeAnimation/RCTAnimationUtils.h | 6 ++---- Libraries/NativeAnimation/RCTAnimationUtils.m | 6 ++---- Libraries/NativeAnimation/RCTNativeAnimatedModule.h | 6 ++---- Libraries/NativeAnimation/RCTNativeAnimatedModule.m | 6 ++---- .../NativeAnimation/RCTNativeAnimatedNodesManager.h | 6 ++---- .../NativeAnimation/RCTNativeAnimatedNodesManager.m | 6 ++---- Libraries/Network/FormData.js | 6 ++---- Libraries/Network/NetInfo.js | 6 ++---- Libraries/Network/RCTDataRequestHandler.h | 6 ++---- Libraries/Network/RCTDataRequestHandler.m | 6 ++---- Libraries/Network/RCTFileRequestHandler.h | 6 ++---- Libraries/Network/RCTFileRequestHandler.m | 6 ++---- Libraries/Network/RCTHTTPRequestHandler.h | 6 ++---- Libraries/Network/RCTHTTPRequestHandler.mm | 6 ++---- Libraries/Network/RCTNetInfo.h | 6 ++---- Libraries/Network/RCTNetInfo.m | 6 ++---- Libraries/Network/RCTNetworkTask.h | 6 ++---- Libraries/Network/RCTNetworkTask.m | 6 ++---- Libraries/Network/RCTNetworking.android.js | 6 ++---- Libraries/Network/RCTNetworking.h | 6 ++---- Libraries/Network/RCTNetworking.ios.js | 6 ++---- Libraries/Network/RCTNetworking.mm | 6 ++---- Libraries/Network/XHRInterceptor.js | 6 ++---- Libraries/Network/XMLHttpRequest.js | 6 ++---- Libraries/Network/__tests__/FormData-test.js | 6 ++---- Libraries/Network/__tests__/XMLHttpRequest-test.js | 6 ++---- Libraries/Network/convertRequestBody.js | 6 ++---- Libraries/Network/fetch.js | 6 ++---- Libraries/Performance/QuickPerformanceLogger.js | 6 ++---- Libraries/Performance/SamplingProfiler.js | 6 ++---- Libraries/Performance/Systrace.js | 6 ++---- Libraries/PermissionsAndroid/PermissionsAndroid.js | 6 ++---- Libraries/Promise.js | 6 ++---- Libraries/PushNotificationIOS/PushNotificationIOS.js | 6 ++---- .../PushNotificationIOS/RCTPushNotificationManager.h | 6 ++---- .../PushNotificationIOS/RCTPushNotificationManager.m | 6 ++---- .../RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.h | 8 +++----- .../RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.m | 8 +++----- .../FBSnapshotTestCase/FBSnapshotTestController.h | 8 +++----- .../FBSnapshotTestCase/FBSnapshotTestController.m | 8 +++----- Libraries/RCTTest/RCTSnapshotManager.h | 6 ++---- Libraries/RCTTest/RCTSnapshotManager.m | 6 ++---- Libraries/RCTTest/RCTTestModule.h | 6 ++---- Libraries/RCTTest/RCTTestModule.m | 6 ++---- Libraries/RCTTest/RCTTestRunner.h | 6 ++---- Libraries/RCTTest/RCTTestRunner.m | 6 ++---- Libraries/RCTTest/SnapshotViewIOS.android.js | 6 ++---- Libraries/RCTTest/SnapshotViewIOS.ios.js | 6 ++---- Libraries/ReactNative/AppContainer.js | 6 ++---- Libraries/ReactNative/AppRegistry.js | 6 ++---- Libraries/ReactNative/FabricUIManager.js | 6 ++---- Libraries/ReactNative/I18nManager.js | 6 ++---- Libraries/ReactNative/UIManager.js | 6 ++---- Libraries/ReactNative/UIManagerStatTracker.js | 6 ++---- Libraries/ReactNative/YellowBox.js | 6 ++---- Libraries/ReactNative/queryLayoutByID.js | 6 ++---- Libraries/ReactNative/renderApplication.js | 6 ++---- Libraries/ReactNative/renderFabricSurface.js | 6 ++---- Libraries/ReactNative/requireNativeComponent.js | 6 ++---- Libraries/ReactNative/verifyPropTypes.js | 6 ++---- Libraries/Settings/RCTSettingsManager.h | 6 ++---- Libraries/Settings/RCTSettingsManager.m | 6 ++---- Libraries/Settings/Settings.android.js | 6 ++---- Libraries/Settings/Settings.ios.js | 6 ++---- Libraries/Share/Share.js | 6 ++---- Libraries/Storage/AsyncStorage.js | 6 ++---- Libraries/StyleSheet/ColorPropType.js | 6 ++---- Libraries/StyleSheet/EdgeInsetsPropType.js | 6 ++---- Libraries/StyleSheet/LayoutPropTypes.js | 6 ++---- Libraries/StyleSheet/PointPropType.js | 6 ++---- Libraries/StyleSheet/StyleSheet.js | 6 ++---- Libraries/StyleSheet/StyleSheetPropType.js | 6 ++---- Libraries/StyleSheet/StyleSheetTypes.js | 6 ++---- Libraries/StyleSheet/StyleSheetValidation.js | 6 ++---- Libraries/StyleSheet/TransformPropTypes.js | 6 ++---- Libraries/StyleSheet/__tests__/flattenStyle-test.js | 6 ++---- Libraries/StyleSheet/__tests__/normalizeColor-test.js | 6 ++---- Libraries/StyleSheet/__tests__/processColor-test.js | 6 ++---- Libraries/StyleSheet/__tests__/processTransform-test.js | 6 ++---- .../StyleSheet/__tests__/setNormalizedColorAlpha-test.js | 6 ++---- Libraries/StyleSheet/flattenStyle.js | 6 ++---- Libraries/StyleSheet/normalizeColor.js | 6 ++---- Libraries/StyleSheet/processColor.js | 6 ++---- Libraries/StyleSheet/processTransform.js | 6 ++---- Libraries/StyleSheet/setNormalizedColorAlpha.js | 6 ++---- .../SurfaceBackedComponent/RCTSurfaceBackedComponent.h | 6 ++---- .../SurfaceBackedComponent/RCTSurfaceBackedComponent.mm | 6 ++---- .../RCTSurfaceBackedComponentState.h | 6 ++---- .../RCTSurfaceBackedComponentState.mm | 6 ++---- .../RCTSurfaceHostingComponent+Internal.h | 6 ++---- .../SurfaceHostingComponent/RCTSurfaceHostingComponent.h | 6 ++---- .../RCTSurfaceHostingComponent.mm | 6 ++---- .../RCTSurfaceHostingComponentController.h | 6 ++---- .../RCTSurfaceHostingComponentController.mm | 6 ++---- .../RCTSurfaceHostingComponentOptions.h | 6 ++---- .../RCTSurfaceHostingComponentState.h | 6 ++---- .../RCTSurfaceHostingComponentState.mm | 6 ++---- Libraries/Text/BaseText/RCTBaseTextShadowView.h | 6 ++---- Libraries/Text/BaseText/RCTBaseTextShadowView.m | 6 ++---- Libraries/Text/BaseText/RCTBaseTextViewManager.h | 6 ++---- Libraries/Text/BaseText/RCTBaseTextViewManager.m | 6 ++---- Libraries/Text/RCTConvert+Text.h | 6 ++---- Libraries/Text/RCTConvert+Text.m | 6 ++---- Libraries/Text/RCTTextAttributes.h | 6 ++---- Libraries/Text/RCTTextAttributes.m | 6 ++---- Libraries/Text/RawText/RCTRawTextShadowView.h | 6 ++---- Libraries/Text/RawText/RCTRawTextShadowView.m | 6 ++---- Libraries/Text/RawText/RCTRawTextViewManager.h | 6 ++---- Libraries/Text/RawText/RCTRawTextViewManager.m | 6 ++---- Libraries/Text/Text.js | 6 ++---- Libraries/Text/Text/NSTextStorage+FontScaling.h | 6 ++---- Libraries/Text/Text/NSTextStorage+FontScaling.m | 6 ++---- Libraries/Text/Text/RCTTextShadowView.h | 6 ++---- Libraries/Text/Text/RCTTextShadowView.m | 6 ++---- Libraries/Text/Text/RCTTextView.h | 6 ++---- Libraries/Text/Text/RCTTextView.m | 6 ++---- Libraries/Text/Text/RCTTextViewManager.h | 6 ++---- Libraries/Text/Text/RCTTextViewManager.m | 6 ++---- .../Text/TextInput/Multiline/RCTMultilineTextInputView.h | 6 ++---- .../Text/TextInput/Multiline/RCTMultilineTextInputView.m | 6 ++---- .../Multiline/RCTMultilineTextInputViewManager.h | 6 ++---- .../Multiline/RCTMultilineTextInputViewManager.m | 6 ++---- Libraries/Text/TextInput/Multiline/RCTUITextView.h | 6 ++---- Libraries/Text/TextInput/Multiline/RCTUITextView.m | 6 ++---- Libraries/Text/TextInput/RCTBackedTextInputDelegate.h | 6 ++---- .../Text/TextInput/RCTBackedTextInputDelegateAdapter.h | 6 ++---- .../Text/TextInput/RCTBackedTextInputDelegateAdapter.m | 6 ++---- .../Text/TextInput/RCTBackedTextInputViewProtocol.h | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputShadowView.h | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputShadowView.m | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputView.h | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputView.m | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputViewManager.h | 6 ++---- Libraries/Text/TextInput/RCTBaseTextInputViewManager.m | 6 ++---- Libraries/Text/TextInput/RCTTextSelection.h | 6 ++---- Libraries/Text/TextInput/RCTTextSelection.m | 6 ++---- .../TextInput/Singleline/RCTSinglelineTextInputView.h | 6 ++---- .../TextInput/Singleline/RCTSinglelineTextInputView.m | 6 ++---- .../Singleline/RCTSinglelineTextInputViewManager.h | 6 ++---- .../Singleline/RCTSinglelineTextInputViewManager.m | 6 ++---- Libraries/Text/TextInput/Singleline/RCTUITextField.h | 6 ++---- Libraries/Text/TextInput/Singleline/RCTUITextField.m | 6 ++---- Libraries/Text/TextProps.js | 6 ++---- Libraries/Text/TextStylePropTypes.js | 6 ++---- Libraries/Text/TextUpdateTest.js | 6 ++---- Libraries/Text/VirtualText/RCTVirtualTextShadowView.h | 6 ++---- Libraries/Text/VirtualText/RCTVirtualTextShadowView.m | 6 ++---- Libraries/Text/VirtualText/RCTVirtualTextViewManager.h | 6 ++---- Libraries/Text/VirtualText/RCTVirtualTextViewManager.m | 6 ++---- Libraries/Types/CoreEventTypes.js | 6 ++---- Libraries/UTFSequence.js | 6 ++---- Libraries/Utilities/BackAndroid.js | 6 ++---- Libraries/Utilities/BackHandler.android.js | 6 ++---- Libraries/Utilities/BackHandler.ios.js | 6 ++---- Libraries/Utilities/DebugEnvironment.js | 6 ++---- Libraries/Utilities/DeviceInfo.js | 6 ++---- Libraries/Utilities/Dimensions.js | 6 ++---- Libraries/Utilities/HMRClient.js | 6 ++---- Libraries/Utilities/HMRLoadingView.android.js | 6 ++---- Libraries/Utilities/HMRLoadingView.ios.js | 6 ++---- Libraries/Utilities/HeapCapture.js | 6 ++---- Libraries/Utilities/JSDevSupportModule.js | 6 ++---- Libraries/Utilities/MatrixMath.js | 6 ++---- Libraries/Utilities/PerformanceLogger.js | 6 ++---- Libraries/Utilities/PixelRatio.js | 6 ++---- Libraries/Utilities/Platform.android.js | 6 ++---- Libraries/Utilities/Platform.ios.js | 6 ++---- Libraries/Utilities/PlatformOS.android.js | 6 ++---- Libraries/Utilities/PlatformOS.ios.js | 6 ++---- Libraries/Utilities/PolyfillFunctions.js | 6 ++---- Libraries/Utilities/RCTLog.js | 6 ++---- Libraries/Utilities/SceneTracker.js | 6 ++---- Libraries/Utilities/__mocks__/BackHandler.js | 6 ++---- Libraries/Utilities/__tests__/MatrixMath-test.js | 6 ++---- Libraries/Utilities/__tests__/Platform-test.js | 6 ++---- Libraries/Utilities/__tests__/SceneTracker-test.js | 6 ++---- .../Utilities/__tests__/buildStyleInterpolator-test.js | 6 ++---- .../__tests__/deepFreezeAndThrowOnMutationInDev-test.js | 6 ++---- Libraries/Utilities/__tests__/groupByEveryN-test.js | 6 ++---- Libraries/Utilities/__tests__/mapWithSeparator-test.js | 6 ++---- Libraries/Utilities/__tests__/truncate-test.js | 6 ++---- Libraries/Utilities/binaryToBase64.js | 6 ++---- Libraries/Utilities/buildStyleInterpolator.js | 6 ++---- Libraries/Utilities/clamp.js | 6 ++---- Libraries/Utilities/createStrictShapeTypeChecker.js | 6 ++---- Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js | 6 ++---- Libraries/Utilities/defineLazyObjectProperty.js | 6 ++---- Libraries/Utilities/deprecatedPropType.js | 6 ++---- Libraries/Utilities/differ/__tests__/deepDiffer-test.js | 6 ++---- Libraries/Utilities/differ/deepDiffer.js | 6 ++---- Libraries/Utilities/differ/insetsDiffer.js | 6 ++---- Libraries/Utilities/differ/matricesDiffer.js | 6 ++---- Libraries/Utilities/differ/pointsDiffer.js | 6 ++---- Libraries/Utilities/differ/sizesDiffer.js | 6 ++---- Libraries/Utilities/dismissKeyboard.js | 6 ++---- Libraries/Utilities/groupByEveryN.js | 6 ++---- Libraries/Utilities/infoLog.js | 6 ++---- Libraries/Utilities/logError.js | 6 ++---- Libraries/Utilities/mapWithSeparator.js | 6 ++---- Libraries/Utilities/mergeFast.js | 6 ++---- Libraries/Utilities/mergeIntoFast.js | 6 ++---- Libraries/Utilities/stringifySafe.js | 6 ++---- Libraries/Utilities/truncate.js | 6 ++---- Libraries/Vibration/RCTVibration.h | 6 ++---- Libraries/Vibration/RCTVibration.m | 6 ++---- Libraries/Vibration/Vibration.js | 6 ++---- Libraries/Vibration/VibrationIOS.android.js | 6 ++---- Libraries/Vibration/VibrationIOS.ios.js | 6 ++---- Libraries/WebSocket/RCTReconnectingWebSocket.h | 6 ++---- Libraries/WebSocket/RCTReconnectingWebSocket.m | 6 ++---- Libraries/WebSocket/RCTWebSocketExecutor.h | 6 ++---- Libraries/WebSocket/RCTWebSocketExecutor.m | 6 ++---- Libraries/WebSocket/RCTWebSocketModule.h | 6 ++---- Libraries/WebSocket/RCTWebSocketModule.m | 6 ++---- Libraries/WebSocket/WebSocket.js | 6 ++---- Libraries/WebSocket/WebSocketEvent.js | 6 ++---- Libraries/WebSocket/WebSocketInterceptor.js | 6 ++---- Libraries/WebSocket/__tests__/WebSocket-test.js | 6 ++---- Libraries/polyfills/Array.es6.js | 6 ++---- Libraries/polyfills/Array.prototype.es6.js | 6 ++---- Libraries/polyfills/Number.es6.js | 6 ++---- Libraries/polyfills/Object.es6.js | 6 ++---- Libraries/polyfills/Object.es7.js | 6 ++---- Libraries/polyfills/String.prototype.es6.js | 6 ++---- Libraries/polyfills/__tests__/Object.es7-test.js | 6 ++---- Libraries/polyfills/babelHelpers.js | 6 ++---- Libraries/polyfills/console.js | 6 ++---- Libraries/polyfills/error-guard.js | 6 ++---- Libraries/promiseRejectionIsError.js | 6 ++---- Libraries/react-native/React.js | 6 ++---- Libraries/react-native/react-native-implementation.js | 6 ++---- Libraries/react-native/react-native-interface.js | 6 ++---- Libraries/vendor/core/ErrorUtils.js | 6 ++---- Libraries/vendor/core/Map.js | 6 ++---- Libraries/vendor/core/Set.js | 6 ++---- Libraries/vendor/core/_shouldPolyfillES6Collection.js | 6 ++---- Libraries/vendor/core/getObjectValues.js | 6 ++---- Libraries/vendor/core/guid.js | 6 ++---- Libraries/vendor/core/isEmpty.js | 6 ++---- Libraries/vendor/core/mergeHelpers.js | 6 ++---- Libraries/vendor/core/toIterator.js | 6 ++---- .../vendor/document/selection/DocumentSelectionState.js | 6 ++---- Libraries/vendor/emitter/EmitterSubscription.js | 6 ++---- Libraries/vendor/emitter/EventEmitter.js | 6 ++---- Libraries/vendor/emitter/EventEmitterWithHolding.js | 6 ++---- Libraries/vendor/emitter/EventHolder.js | 6 ++---- Libraries/vendor/emitter/EventSubscription.js | 6 ++---- Libraries/vendor/emitter/EventSubscriptionVendor.js | 6 ++---- Libraries/vendor/emitter/EventValidator.js | 6 ++---- Libraries/vendor/emitter/mixInEventEmitter.js | 6 ++---- RNTester/RNTester/AppDelegate.h | 6 ++---- RNTester/RNTester/AppDelegate.m | 6 ++---- .../NativeExampleViews/FlexibleSizeExampleView.h | 6 ++---- .../NativeExampleViews/FlexibleSizeExampleView.m | 6 ++---- .../NativeExampleViews/UpdatePropertiesExampleView.h | 6 ++---- .../NativeExampleViews/UpdatePropertiesExampleView.m | 6 ++---- RNTester/RNTester/main.m | 6 ++---- RNTester/RNTesterIntegrationTests/RCTLoggingTests.m | 6 ++---- .../RCTRootViewIntegrationTests.m | 6 ++---- .../RNTesterIntegrationTests/RCTUIManagerScenarioTests.m | 6 ++---- .../RNTesterIntegrationTests/RNTesterIntegrationTests.m | 6 ++---- .../RNTesterIntegrationTests/RNTesterSnapshotTests.m | 6 ++---- RNTester/RNTesterIntegrationTests/RNTesterTestModule.m | 6 ++---- RNTester/RNTesterUnitTests/RCTAllocationTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTAnimationUtilsTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTBlobManagerTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTComponentPropsTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTConvert_YGValueTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTDevMenuTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTEventDispatcherTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTFontTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTGzipTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.h | 6 ++---- RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.m | 6 ++---- RNTester/RNTesterUnitTests/RCTImageLoaderTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTImageUtilTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTJSONTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTMethodArgumentTests.m | 6 ++---- .../RCTModuleInitNotificationRaceTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTModuleInitTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTModuleMethodTests.mm | 6 ++---- .../RNTesterUnitTests/RCTMultipartStreamReaderTests.m | 6 ++---- .../RCTNativeAnimatedNodesManagerTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTShadowViewTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTUIManagerTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTURLUtilsTests.m | 6 ++---- RNTester/RNTesterUnitTests/RCTUnicodeDecodeTests.m | 6 ++---- RNTester/RNTesterUnitTests/RNTesterUnitTestsBundle.js | 6 ++---- .../java/com/facebook/react/uiapp/RNTesterActivity.java | 6 ++---- .../com/facebook/react/uiapp/RNTesterApplication.java | 6 ++---- RNTester/js/ARTExample.js | 6 ++---- RNTester/js/AccessibilityAndroidExample.android.js | 6 ++---- RNTester/js/AccessibilityIOSExample.js | 6 ++---- RNTester/js/ActionSheetIOSExample.js | 6 ++---- RNTester/js/ActivityIndicatorExample.js | 6 ++---- RNTester/js/AlertExample.js | 6 ++---- RNTester/js/AlertIOSExample.js | 6 ++---- RNTester/js/AnimatedExample.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExApp.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExBobble.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExChained.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExScroll.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExSet.js | 6 ++---- RNTester/js/AnimatedGratuitousApp/AnExTilt.js | 6 ++---- RNTester/js/AppStateExample.js | 6 ++---- RNTester/js/AssetScaledImageExample.js | 6 ++---- RNTester/js/AsyncStorageExample.js | 6 ++---- RNTester/js/BorderExample.js | 6 ++---- RNTester/js/BoxShadowExample.js | 6 ++---- RNTester/js/ButtonExample.js | 6 ++---- RNTester/js/CameraRollExample.js | 6 ++---- RNTester/js/CameraRollView.js | 6 ++---- RNTester/js/CheckBoxExample.js | 6 ++---- RNTester/js/ClipboardExample.js | 6 ++---- RNTester/js/DatePickerAndroidExample.js | 6 ++---- RNTester/js/DatePickerIOSExample.js | 6 ++---- RNTester/js/DimensionsExample.js | 6 ++---- RNTester/js/ExampleTypes.js | 6 ++---- RNTester/js/FlatListExample.js | 6 ++---- RNTester/js/GeolocationExample.js | 6 ++---- RNTester/js/ImageCapInsetsExample.js | 6 ++---- RNTester/js/ImageEditingExample.js | 6 ++---- RNTester/js/ImageExample.js | 6 ++---- RNTester/js/KeyboardAvoidingViewExample.js | 6 ++---- RNTester/js/LayoutAnimationExample.js | 6 ++---- RNTester/js/LayoutEventsExample.js | 6 ++---- RNTester/js/LayoutExample.js | 6 ++---- RNTester/js/LinkingExample.js | 6 ++---- RNTester/js/ListExampleShared.js | 6 ++---- RNTester/js/ListViewExample.js | 6 ++---- RNTester/js/ListViewGridLayoutExample.js | 6 ++---- RNTester/js/ListViewPagingExample.js | 6 ++---- RNTester/js/MaskedViewExample.js | 6 ++---- RNTester/js/ModalExample.js | 6 ++---- RNTester/js/MultiColumnExample.js | 6 ++---- RNTester/js/NativeAnimationsExample.js | 6 ++---- RNTester/js/NavigatorIOSBarStyleExample.js | 6 ++---- RNTester/js/NavigatorIOSColorsExample.js | 6 ++---- RNTester/js/NavigatorIOSExample.js | 6 ++---- RNTester/js/NetInfoExample.js | 6 ++---- RNTester/js/OrientationChangeExample.js | 6 ++---- RNTester/js/PanResponderExample.js | 6 ++---- RNTester/js/PermissionsExampleAndroid.android.js | 6 ++---- RNTester/js/PickerExample.js | 6 ++---- RNTester/js/PickerIOSExample.js | 6 ++---- RNTester/js/PointerEventsExample.js | 6 ++---- RNTester/js/ProgressBarAndroidExample.android.js | 6 ++---- RNTester/js/ProgressViewIOSExample.js | 6 ++---- RNTester/js/PushNotificationIOSExample.js | 6 ++---- RNTester/js/RCTRootViewIOSExample.js | 6 ++---- RNTester/js/RNTesterActions.js | 6 ++---- RNTester/js/RNTesterApp.android.js | 6 ++---- RNTester/js/RNTesterApp.ios.js | 6 ++---- RNTester/js/RNTesterBlock.js | 6 ++---- RNTester/js/RNTesterButton.js | 6 ++---- RNTester/js/RNTesterExampleContainer.js | 6 ++---- RNTester/js/RNTesterExampleList.js | 6 ++---- RNTester/js/RNTesterList.android.js | 6 ++---- RNTester/js/RNTesterList.ios.js | 6 ++---- RNTester/js/RNTesterNavigationReducer.js | 6 ++---- RNTester/js/RNTesterPage.js | 6 ++---- RNTester/js/RNTesterSettingSwitchRow.js | 6 ++---- RNTester/js/RNTesterStatePersister.js | 6 ++---- RNTester/js/RNTesterTitle.js | 6 ++---- RNTester/js/RTLExample.js | 6 ++---- RNTester/js/RefreshControlExample.js | 6 ++---- RNTester/js/RootViewSizeFlexibilityExampleApp.js | 6 ++---- RNTester/js/SafeAreaViewExample.js | 6 ++---- RNTester/js/ScrollViewExample.js | 6 ++---- RNTester/js/ScrollViewSimpleExample.js | 6 ++---- RNTester/js/SectionListExample.js | 6 ++---- RNTester/js/SegmentedControlIOSExample.js | 6 ++---- RNTester/js/SetPropertiesExampleApp.js | 6 ++---- RNTester/js/ShareExample.js | 6 ++---- RNTester/js/SliderExample.js | 6 ++---- RNTester/js/SnapshotExample.js | 6 ++---- RNTester/js/StatusBarExample.js | 6 ++---- RNTester/js/SwipeableFlatListExample.js | 6 ++---- RNTester/js/SwipeableListViewExample.js | 6 ++---- RNTester/js/SwitchExample.js | 6 ++---- RNTester/js/TVEventHandlerExample.js | 6 ++---- RNTester/js/TabBarIOSBarStyleExample.js | 6 ++---- RNTester/js/TabBarIOSExample.js | 6 ++---- RNTester/js/TextExample.android.js | 6 ++---- RNTester/js/TextExample.ios.js | 6 ++---- RNTester/js/TextInputExample.android.js | 6 ++---- RNTester/js/TextInputExample.ios.js | 6 ++---- RNTester/js/TimePickerAndroidExample.js | 6 ++---- RNTester/js/TimerExample.js | 6 ++---- RNTester/js/ToastAndroidExample.android.js | 6 ++---- RNTester/js/ToolbarAndroidExample.android.js | 6 ++---- RNTester/js/TouchableExample.js | 6 ++---- RNTester/js/TransformExample.js | 6 ++---- RNTester/js/TransparentHitTestExample.js | 6 ++---- RNTester/js/URIActionMap.js | 6 ++---- RNTester/js/VibrationExample.js | 6 ++---- RNTester/js/VibrationIOSExample.js | 6 ++---- RNTester/js/ViewExample.js | 6 ++---- RNTester/js/ViewPagerAndroidExample.android.js | 6 ++---- RNTester/js/WebSocketExample.js | 6 ++---- RNTester/js/WebViewExample.js | 6 ++---- RNTester/js/XHRExample.js | 6 ++---- RNTester/js/XHRExampleBinaryUpload.js | 6 ++---- RNTester/js/XHRExampleCookies.js | 6 ++---- RNTester/js/XHRExampleDownload.js | 6 ++---- RNTester/js/XHRExampleFetch.js | 6 ++---- RNTester/js/XHRExampleFormData.js | 6 ++---- RNTester/js/XHRExampleHeaders.js | 6 ++---- RNTester/js/XHRExampleOnTimeOut.js | 6 ++---- RNTester/js/createExamplePage.js | 6 ++---- RNTester/js/http_test_server.js | 6 ++---- RNTester/js/websocket_test_server.js | 6 ++---- React/Base/RCTAssert.h | 6 ++---- React/Base/RCTAssert.m | 6 ++---- React/Base/RCTBridge+Private.h | 6 ++---- React/Base/RCTBridge.h | 6 ++---- React/Base/RCTBridge.m | 6 ++---- React/Base/RCTBridgeDelegate.h | 6 ++---- React/Base/RCTBridgeMethod.h | 6 ++---- React/Base/RCTBridgeModule.h | 6 ++---- React/Base/RCTBundleURLProvider.h | 6 ++---- React/Base/RCTBundleURLProvider.m | 6 ++---- React/Base/RCTConvert.h | 6 ++---- React/Base/RCTConvert.m | 6 ++---- React/Base/RCTCxxConvert.h | 6 ++---- React/Base/RCTCxxConvert.m | 6 ++---- React/Base/RCTDefines.h | 6 ++---- React/Base/RCTDisplayLink.h | 6 ++---- React/Base/RCTDisplayLink.m | 6 ++---- React/Base/RCTErrorCustomizer.h | 6 ++---- React/Base/RCTErrorInfo.h | 6 ++---- React/Base/RCTErrorInfo.m | 6 ++---- React/Base/RCTEventDispatcher.h | 6 ++---- React/Base/RCTEventDispatcher.m | 6 ++---- React/Base/RCTFrameUpdate.h | 6 ++---- React/Base/RCTFrameUpdate.m | 6 ++---- React/Base/RCTImageSource.h | 6 ++---- React/Base/RCTImageSource.m | 6 ++---- React/Base/RCTInvalidating.h | 6 ++---- React/Base/RCTJSCErrorHandling.h | 6 ++---- React/Base/RCTJSCErrorHandling.mm | 6 ++---- React/Base/RCTJSStackFrame.h | 6 ++---- React/Base/RCTJSStackFrame.m | 6 ++---- React/Base/RCTJavaScriptExecutor.h | 6 ++---- React/Base/RCTJavaScriptLoader.h | 6 ++---- React/Base/RCTJavaScriptLoader.mm | 6 ++---- React/Base/RCTKeyCommands.h | 6 ++---- React/Base/RCTKeyCommands.m | 6 ++---- React/Base/RCTLog.h | 6 ++---- React/Base/RCTLog.mm | 6 ++---- React/Base/RCTManagedPointer.h | 6 ++---- React/Base/RCTManagedPointer.mm | 6 ++---- React/Base/RCTModuleData.h | 6 ++---- React/Base/RCTModuleData.mm | 6 ++---- React/Base/RCTModuleMethod.h | 6 ++---- React/Base/RCTModuleMethod.mm | 6 ++---- React/Base/RCTMultipartDataTask.h | 6 ++---- React/Base/RCTMultipartDataTask.m | 6 ++---- React/Base/RCTMultipartStreamReader.h | 6 ++---- React/Base/RCTMultipartStreamReader.m | 6 ++---- React/Base/RCTNullability.h | 6 ++---- React/Base/RCTParserUtils.h | 6 ++---- React/Base/RCTParserUtils.m | 6 ++---- React/Base/RCTPerformanceLogger.h | 6 ++---- React/Base/RCTPerformanceLogger.m | 6 ++---- React/Base/RCTPlatform.h | 6 ++---- React/Base/RCTPlatform.m | 6 ++---- React/Base/RCTReloadCommand.h | 6 ++---- React/Base/RCTReloadCommand.m | 6 ++---- React/Base/RCTRootContentView.h | 6 ++---- React/Base/RCTRootContentView.m | 6 ++---- React/Base/RCTRootView.h | 6 ++---- React/Base/RCTRootView.m | 6 ++---- React/Base/RCTRootViewDelegate.h | 6 ++---- React/Base/RCTRootViewInternal.h | 6 ++---- React/Base/RCTTVRemoteHandler.h | 6 ++---- React/Base/RCTTVRemoteHandler.m | 6 ++---- React/Base/RCTTouchEvent.h | 6 ++---- React/Base/RCTTouchEvent.m | 6 ++---- React/Base/RCTTouchHandler.h | 6 ++---- React/Base/RCTTouchHandler.m | 6 ++---- React/Base/RCTURLRequestDelegate.h | 6 ++---- React/Base/RCTURLRequestHandler.h | 6 ++---- React/Base/RCTUtils.h | 6 ++---- React/Base/RCTUtils.m | 6 ++---- React/Base/RCTVersion.h | 6 ++---- React/Base/Surface/RCTSurface.h | 6 ++---- React/Base/Surface/RCTSurface.mm | 6 ++---- React/Base/Surface/RCTSurfaceDelegate.h | 6 ++---- React/Base/Surface/RCTSurfaceRootShadowView.h | 6 ++---- React/Base/Surface/RCTSurfaceRootShadowView.m | 6 ++---- React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h | 6 ++---- React/Base/Surface/RCTSurfaceRootView.h | 6 ++---- React/Base/Surface/RCTSurfaceRootView.mm | 6 ++---- React/Base/Surface/RCTSurfaceStage.h | 6 ++---- React/Base/Surface/RCTSurfaceStage.m | 6 ++---- React/Base/Surface/RCTSurfaceView+Internal.h | 6 ++---- React/Base/Surface/RCTSurfaceView.h | 6 ++---- React/Base/Surface/RCTSurfaceView.mm | 6 ++---- .../Surface/SurfaceHostingView/RCTSurfaceHostingView.h | 6 ++---- .../Surface/SurfaceHostingView/RCTSurfaceHostingView.mm | 6 ++---- .../SurfaceHostingView/RCTSurfaceSizeMeasureMode.h | 6 ++---- .../SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm | 6 ++---- React/CxxBridge/NSDataBigString.h | 6 ++---- React/CxxBridge/NSDataBigString.mm | 6 ++---- React/CxxBridge/RCTCxxBridge.mm | 6 ++---- React/CxxBridge/RCTCxxBridgeDelegate.h | 6 ++---- React/CxxBridge/RCTJSCHelpers.h | 6 ++---- React/CxxBridge/RCTJSCHelpers.mm | 6 ++---- React/CxxBridge/RCTMessageThread.h | 6 ++---- React/CxxBridge/RCTMessageThread.mm | 6 ++---- React/CxxBridge/RCTObjcExecutor.h | 6 ++---- React/CxxBridge/RCTObjcExecutor.mm | 6 ++---- React/CxxModule/DispatchMessageQueueThread.h | 6 ++---- React/CxxModule/RCTCxxMethod.h | 6 ++---- React/CxxModule/RCTCxxMethod.mm | 6 ++---- React/CxxModule/RCTCxxModule.h | 6 ++---- React/CxxModule/RCTCxxModule.mm | 6 ++---- React/CxxModule/RCTCxxUtils.h | 6 ++---- React/CxxModule/RCTCxxUtils.mm | 6 ++---- React/CxxModule/RCTNativeModule.h | 6 ++---- React/CxxModule/RCTNativeModule.mm | 6 ++---- React/CxxUtils/RCTFollyConvert.h | 6 ++---- React/CxxUtils/RCTFollyConvert.mm | 6 ++---- React/DevSupport/RCTDevLoadingView.h | 6 ++---- React/DevSupport/RCTDevLoadingView.m | 6 ++---- React/DevSupport/RCTDevMenu.h | 6 ++---- React/DevSupport/RCTDevMenu.m | 6 ++---- React/DevSupport/RCTPackagerClient.h | 6 ++---- React/DevSupport/RCTPackagerClient.m | 6 ++---- React/DevSupport/RCTPackagerConnection.h | 6 ++---- React/DevSupport/RCTPackagerConnection.mm | 6 ++---- React/Fabric/RCTFabricUIManager.h | 6 ++---- React/Fabric/RCTFabricUIManager.mm | 6 ++---- React/Modules/RCTAccessibilityManager.h | 6 ++---- React/Modules/RCTAccessibilityManager.m | 6 ++---- React/Modules/RCTAlertManager.h | 6 ++---- React/Modules/RCTAlertManager.m | 6 ++---- React/Modules/RCTAppState.h | 6 ++---- React/Modules/RCTAppState.m | 6 ++---- React/Modules/RCTAsyncLocalStorage.h | 6 ++---- React/Modules/RCTAsyncLocalStorage.m | 6 ++---- React/Modules/RCTClipboard.h | 6 ++---- React/Modules/RCTClipboard.m | 6 ++---- React/Modules/RCTDevSettings.h | 6 ++---- React/Modules/RCTDevSettings.mm | 6 ++---- React/Modules/RCTDeviceInfo.h | 6 ++---- React/Modules/RCTDeviceInfo.m | 6 ++---- React/Modules/RCTEventEmitter.h | 6 ++---- React/Modules/RCTEventEmitter.m | 6 ++---- React/Modules/RCTExceptionsManager.h | 6 ++---- React/Modules/RCTExceptionsManager.m | 6 ++---- React/Modules/RCTI18nManager.h | 6 ++---- React/Modules/RCTI18nManager.m | 6 ++---- React/Modules/RCTI18nUtil.h | 6 ++---- React/Modules/RCTI18nUtil.m | 6 ++---- React/Modules/RCTJSCSamplingProfiler.h | 6 ++---- React/Modules/RCTJSCSamplingProfiler.m | 6 ++---- React/Modules/RCTKeyboardObserver.h | 6 ++---- React/Modules/RCTKeyboardObserver.m | 6 ++---- React/Modules/RCTLayoutAnimation.h | 6 ++---- React/Modules/RCTLayoutAnimation.m | 6 ++---- React/Modules/RCTLayoutAnimationGroup.h | 6 ++---- React/Modules/RCTLayoutAnimationGroup.m | 6 ++---- React/Modules/RCTRedBox.h | 6 ++---- React/Modules/RCTRedBox.m | 6 ++---- React/Modules/RCTRedBoxExtraDataViewController.h | 6 ++---- React/Modules/RCTRedBoxExtraDataViewController.m | 6 ++---- React/Modules/RCTSourceCode.h | 6 ++---- React/Modules/RCTSourceCode.m | 6 ++---- React/Modules/RCTStatusBarManager.h | 6 ++---- React/Modules/RCTStatusBarManager.m | 6 ++---- React/Modules/RCTTVNavigationEventEmitter.h | 6 ++---- React/Modules/RCTTVNavigationEventEmitter.m | 6 ++---- React/Modules/RCTTiming.h | 6 ++---- React/Modules/RCTTiming.m | 6 ++---- React/Modules/RCTUIManager.h | 6 ++---- React/Modules/RCTUIManager.m | 6 ++---- React/Modules/RCTUIManagerObserverCoordinator.h | 6 ++---- React/Modules/RCTUIManagerObserverCoordinator.mm | 6 ++---- React/Modules/RCTUIManagerUtils.h | 6 ++---- React/Modules/RCTUIManagerUtils.m | 6 ++---- React/Profiler/RCTFPSGraph.h | 6 ++---- React/Profiler/RCTFPSGraph.m | 6 ++---- React/Profiler/RCTMacros.h | 6 ++---- React/Profiler/RCTPerfMonitor.m | 6 ++---- React/Profiler/RCTProfile.h | 6 ++---- React/Profiler/RCTProfile.m | 6 ++---- React/Profiler/RCTProfileTrampoline-arm.S | 6 ++---- React/Profiler/RCTProfileTrampoline-arm64.S | 6 ++---- React/Profiler/RCTProfileTrampoline-i386.S | 6 ++---- React/Profiler/RCTProfileTrampoline-x86_64.S | 6 ++---- React/UIUtils/RCTUIUtils.h | 6 ++---- React/UIUtils/RCTUIUtils.m | 6 ++---- React/Views/RCTActivityIndicatorView.h | 6 ++---- React/Views/RCTActivityIndicatorView.m | 6 ++---- React/Views/RCTActivityIndicatorViewManager.h | 6 ++---- React/Views/RCTActivityIndicatorViewManager.m | 6 ++---- React/Views/RCTAnimationType.h | 6 ++---- React/Views/RCTAutoInsetsProtocol.h | 6 ++---- React/Views/RCTBorderDrawing.h | 6 ++---- React/Views/RCTBorderDrawing.m | 6 ++---- React/Views/RCTBorderStyle.h | 6 ++---- React/Views/RCTComponent.h | 6 ++---- React/Views/RCTComponentData.h | 6 ++---- React/Views/RCTComponentData.m | 6 ++---- React/Views/RCTConvert+CoreLocation.h | 6 ++---- React/Views/RCTConvert+CoreLocation.m | 6 ++---- React/Views/RCTConvert+Transform.h | 6 ++---- React/Views/RCTConvert+Transform.m | 6 ++---- React/Views/RCTDatePicker.h | 6 ++---- React/Views/RCTDatePicker.m | 6 ++---- React/Views/RCTDatePickerManager.h | 6 ++---- React/Views/RCTDatePickerManager.m | 6 ++---- React/Views/RCTFont.h | 6 ++---- React/Views/RCTFont.mm | 6 ++---- React/Views/RCTLayout.h | 6 ++---- React/Views/RCTLayout.m | 6 ++---- React/Views/RCTMaskedView.h | 6 ++---- React/Views/RCTMaskedView.m | 6 ++---- React/Views/RCTMaskedViewManager.h | 6 ++---- React/Views/RCTMaskedViewManager.m | 6 ++---- React/Views/RCTModalHostView.h | 6 ++---- React/Views/RCTModalHostView.m | 6 ++---- React/Views/RCTModalHostViewController.h | 6 ++---- React/Views/RCTModalHostViewController.m | 6 ++---- React/Views/RCTModalHostViewManager.h | 6 ++---- React/Views/RCTModalHostViewManager.m | 6 ++---- React/Views/RCTModalManager.h | 6 ++---- React/Views/RCTModalManager.m | 6 ++---- React/Views/RCTNavItem.h | 6 ++---- React/Views/RCTNavItem.m | 6 ++---- React/Views/RCTNavItemManager.h | 6 ++---- React/Views/RCTNavItemManager.m | 6 ++---- React/Views/RCTNavigator.h | 6 ++---- React/Views/RCTNavigator.m | 6 ++---- React/Views/RCTNavigatorManager.h | 6 ++---- React/Views/RCTNavigatorManager.m | 6 ++---- React/Views/RCTPicker.h | 6 ++---- React/Views/RCTPicker.m | 6 ++---- React/Views/RCTPickerManager.h | 6 ++---- React/Views/RCTPickerManager.m | 6 ++---- React/Views/RCTPointerEvents.h | 6 ++---- React/Views/RCTProgressViewManager.h | 6 ++---- React/Views/RCTProgressViewManager.m | 6 ++---- React/Views/RCTRefreshControl.h | 6 ++---- React/Views/RCTRefreshControl.m | 6 ++---- React/Views/RCTRefreshControlManager.h | 6 ++---- React/Views/RCTRefreshControlManager.m | 6 ++---- React/Views/RCTRootShadowView.h | 6 ++---- React/Views/RCTRootShadowView.m | 6 ++---- React/Views/RCTSegmentedControl.h | 6 ++---- React/Views/RCTSegmentedControl.m | 6 ++---- React/Views/RCTSegmentedControlManager.h | 6 ++---- React/Views/RCTSegmentedControlManager.m | 6 ++---- React/Views/RCTShadowView+Internal.h | 6 ++---- React/Views/RCTShadowView+Internal.m | 6 ++---- React/Views/RCTShadowView+Layout.h | 6 ++---- React/Views/RCTShadowView+Layout.m | 6 ++---- React/Views/RCTShadowView.h | 6 ++---- React/Views/RCTShadowView.m | 6 ++---- React/Views/RCTSlider.h | 6 ++---- React/Views/RCTSlider.m | 6 ++---- React/Views/RCTSliderManager.h | 6 ++---- React/Views/RCTSliderManager.m | 6 ++---- React/Views/RCTSwitch.h | 6 ++---- React/Views/RCTSwitch.m | 6 ++---- React/Views/RCTSwitchManager.h | 6 ++---- React/Views/RCTSwitchManager.m | 6 ++---- React/Views/RCTTVView.h | 6 ++---- React/Views/RCTTVView.m | 6 ++---- React/Views/RCTTabBar.h | 6 ++---- React/Views/RCTTabBar.m | 6 ++---- React/Views/RCTTabBarItem.h | 6 ++---- React/Views/RCTTabBarItem.m | 6 ++---- React/Views/RCTTabBarItemManager.h | 6 ++---- React/Views/RCTTabBarItemManager.m | 6 ++---- React/Views/RCTTabBarManager.h | 6 ++---- React/Views/RCTTabBarManager.m | 6 ++---- React/Views/RCTTextDecorationLineType.h | 6 ++---- React/Views/RCTView.h | 6 ++---- React/Views/RCTView.m | 6 ++---- React/Views/RCTViewManager.h | 6 ++---- React/Views/RCTViewManager.m | 6 ++---- React/Views/RCTWebView.h | 6 ++---- React/Views/RCTWebView.m | 6 ++---- React/Views/RCTWebViewManager.h | 6 ++---- React/Views/RCTWebViewManager.m | 6 ++---- React/Views/RCTWrapperViewController.h | 6 ++---- React/Views/RCTWrapperViewController.m | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaShadowView.h | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaShadowView.m | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaView.h | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaView.m | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaViewManager.h | 6 ++---- React/Views/SafeAreaView/RCTSafeAreaViewManager.m | 6 ++---- React/Views/ScrollView/RCTScrollContentShadowView.h | 6 ++---- React/Views/ScrollView/RCTScrollContentShadowView.m | 6 ++---- React/Views/ScrollView/RCTScrollContentView.h | 6 ++---- React/Views/ScrollView/RCTScrollContentView.m | 6 ++---- React/Views/ScrollView/RCTScrollContentViewManager.h | 6 ++---- React/Views/ScrollView/RCTScrollContentViewManager.m | 6 ++---- React/Views/ScrollView/RCTScrollView.h | 6 ++---- React/Views/ScrollView/RCTScrollView.m | 6 ++---- React/Views/ScrollView/RCTScrollViewManager.h | 6 ++---- React/Views/ScrollView/RCTScrollViewManager.m | 6 ++---- React/Views/ScrollView/RCTScrollableProtocol.h | 6 ++---- React/Views/UIView+Private.h | 6 ++---- React/Views/UIView+React.h | 6 ++---- React/Views/UIView+React.m | 6 ++---- .../react/testing/AbstractScrollViewTestCase.java | 7 +++---- .../java/com/facebook/react/testing/AssertModule.java | 7 +++---- .../facebook/react/testing/FakeAsyncLocalStorage.java | 7 +++---- .../com/facebook/react/testing/FakeWebSocketModule.java | 7 +++---- .../react/testing/InstanceSpecForTestPackage.java | 7 +++---- .../com/facebook/react/testing/IntRecordingModule.java | 7 +++---- .../facebook/react/testing/JSIntegrationTestChecker.java | 7 +++---- .../facebook/react/testing/MultipleFailureException.java | 7 +++---- .../react/testing/ReactAppInstrumentationTestCase.java | 7 +++---- .../com/facebook/react/testing/ReactAppTestActivity.java | 7 +++---- .../facebook/react/testing/ReactInstanceSpecForTest.java | 7 +++---- .../facebook/react/testing/ReactIntegrationTestCase.java | 7 +++---- .../facebook/react/testing/ReactSettingsForTests.java | 7 +++---- .../com/facebook/react/testing/ReactTestAppShell.java | 7 +++---- .../facebook/react/testing/ReactTestApplicationImpl.java | 7 +++---- .../com/facebook/react/testing/ReactTestFactory.java | 7 +++---- .../java/com/facebook/react/testing/ReactTestHelper.java | 7 +++---- .../facebook/react/testing/ScreenshotingFrameLayout.java | 7 +++---- .../react/testing/SingleTouchGestureGenerator.java | 7 +++---- .../facebook/react/testing/StringRecordingModule.java | 7 +++---- .../facebook/react/testing/idledetection/IdleWaiter.java | 7 +++---- .../testing/idledetection/ReactBridgeIdleSignaler.java | 7 +++---- .../testing/idledetection/ReactIdleDetectionUtil.java | 7 +++---- .../testing/network/NetworkRecordingModuleMock.java | 7 +++---- .../facebook/react/tests/CatalystMeasureLayoutTest.java | 7 +++---- .../react/tests/CatalystMultitouchHandlingTestCase.java | 7 +++---- .../tests/CatalystNativeJSToJavaParametersTestCase.java | 7 +++---- .../tests/CatalystNativeJavaToJSArgumentsTestCase.java | 7 +++---- .../CatalystNativeJavaToJSReturnValuesTestCase.java | 7 +++---- .../react/tests/CatalystSubviewsClippingTestCase.java | 6 ++---- .../react/tests/CatalystTouchBubblingTestCase.java | 6 ++---- .../facebook/react/tests/CatalystUIManagerTestCase.java | 6 ++---- .../facebook/react/tests/DatePickerDialogTestCase.java | 7 +++---- .../com/facebook/react/tests/InitialPropsTestCase.java | 7 +++---- .../java/com/facebook/react/tests/JSLocaleTest.java | 7 +++---- .../com/facebook/react/tests/JSResponderTestCase.java | 7 +++---- .../com/facebook/react/tests/LayoutEventsTestCase.java | 7 +++---- .../java/com/facebook/react/tests/NativeIdTestCase.java | 7 +++---- .../com/facebook/react/tests/ProgressBarTestCase.java | 7 +++---- .../react/tests/ReactHorizontalScrollViewTestCase.java | 7 +++---- .../com/facebook/react/tests/ReactPickerTestCase.java | 7 +++---- .../com/facebook/react/tests/ReactRootViewTestCase.java | 7 +++---- .../facebook/react/tests/ReactScrollViewTestCase.java | 7 +++---- .../react/tests/ReactSwipeRefreshLayoutTestCase.java | 7 +++---- .../java/com/facebook/react/tests/ShareTestCase.java | 7 +++---- .../java/com/facebook/react/tests/TestIdTestCase.java | 7 +++---- .../java/com/facebook/react/tests/TextInputTestCase.java | 7 +++---- .../facebook/react/tests/TimePickerDialogTestCase.java | 7 +++---- .../com/facebook/react/tests/ViewRenderingTestCase.java | 7 +++---- ReactAndroid/src/androidTest/js/Asserts.js | 6 ++---- .../src/androidTest/js/CatalystRootViewTestModule.js | 6 ++---- .../src/androidTest/js/DatePickerDialogTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/InitialPropsTestApp.js | 6 ++---- ReactAndroid/src/androidTest/js/JSResponderTestApp.js | 6 ++---- ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js | 6 ++---- .../src/androidTest/js/MeasureLayoutTestModule.js | 6 ++---- .../androidTest/js/MultitouchHandlingTestAppModule.js | 6 ++---- ReactAndroid/src/androidTest/js/NativeIdTestModule.js | 6 ++---- .../src/androidTest/js/PickerAndroidTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/ProgressBarTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/ScrollViewTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/ShareTestModule.js | 6 ++---- .../src/androidTest/js/SubviewsClippingTestModule.js | 6 ++---- .../src/androidTest/js/SwipeRefreshLayoutTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/TestBundle.js | 6 ++---- ReactAndroid/src/androidTest/js/TestIdTestModule.js | 6 ++---- ReactAndroid/src/androidTest/js/TestJSLocaleModule.js | 6 ++---- .../src/androidTest/js/TestJSToJavaParametersModule.js | 6 ++---- .../src/androidTest/js/TestJavaToJSArgumentsModule.js | 6 ++---- .../src/androidTest/js/TestJavaToJSReturnValuesModule.js | 6 ++---- ReactAndroid/src/androidTest/js/TextInputTestModule.js | 6 ++---- .../src/androidTest/js/TimePickerDialogTestModule.js | 6 ++---- .../src/androidTest/js/TouchBubblingTestAppModule.js | 6 ++---- ReactAndroid/src/androidTest/js/UIManagerTestModule.js | 6 ++---- .../src/androidTest/js/ViewRenderingTestModule.js | 6 ++---- .../src/main/java/com/facebook/jni/IteratorHelper.java | 6 ++---- .../main/java/com/facebook/jni/MapIteratorHelper.java | 6 ++---- .../src/main/java/com/facebook/jni/NativeRunnable.java | 6 ++---- .../main/java/com/facebook/perftest/PerfTestConfig.java | 6 ++---- .../com/facebook/proguard/annotations/DoNotStrip.java | 6 ++---- .../proguard/annotations/KeepGettersAndSetters.java | 6 ++---- .../java/com/facebook/react/CompositeReactPackage.java | 6 ++---- .../main/java/com/facebook/react/CoreModulesPackage.java | 6 ++---- .../main/java/com/facebook/react/DebugCorePackage.java | 6 ++---- .../java/com/facebook/react/HeadlessJsTaskService.java | 6 ++---- .../main/java/com/facebook/react/LazyReactPackage.java | 6 ++---- .../src/main/java/com/facebook/react/ReactActivity.java | 6 ++---- .../main/java/com/facebook/react/ReactApplication.java | 6 ++---- .../java/com/facebook/react/ReactFragmentActivity.java | 6 ++---- .../java/com/facebook/react/ReactInstanceManager.java | 6 ++---- .../java/com/facebook/react/ReactInstancePackage.java | 6 ++---- .../main/java/com/facebook/react/ReactNativeHost.java | 6 ++---- .../src/main/java/com/facebook/react/ReactPackage.java | 6 ++---- .../src/main/java/com/facebook/react/ReactRootView.java | 6 ++---- .../facebook/react/ViewManagerOnDemandReactPackage.java | 6 ++---- .../facebook/react/animated/AdditionAnimatedNode.java | 6 ++---- .../java/com/facebook/react/animated/AnimatedNode.java | 6 ++---- .../react/animated/AnimatedNodeValueListener.java | 6 ++---- .../com/facebook/react/animated/AnimationDriver.java | 6 ++---- .../java/com/facebook/react/animated/DecayAnimation.java | 6 ++---- .../facebook/react/animated/DiffClampAnimatedNode.java | 6 ++---- .../facebook/react/animated/DivisionAnimatedNode.java | 6 ++---- .../facebook/react/animated/EventAnimationDriver.java | 6 ++---- .../react/animated/FrameBasedAnimationDriver.java | 6 ++---- .../react/animated/InterpolationAnimatedNode.java | 7 +++---- .../com/facebook/react/animated/ModulusAnimatedNode.java | 6 ++---- .../react/animated/MultiplicationAnimatedNode.java | 6 ++---- .../facebook/react/animated/NativeAnimatedModule.java | 6 ++---- .../react/animated/NativeAnimatedNodesManager.java | 6 ++---- .../com/facebook/react/animated/PropsAnimatedNode.java | 6 ++---- .../com/facebook/react/animated/StyleAnimatedNode.java | 6 ++---- .../facebook/react/animated/TransformAnimatedNode.java | 6 ++---- .../com/facebook/react/animated/ValueAnimatedNode.java | 6 ++---- .../animation/AbstractFloatPairPropertyUpdater.java | 6 ++---- .../animation/AbstractSingleFloatProperyUpdater.java | 6 ++---- .../java/com/facebook/react/animation/Animation.java | 6 ++---- .../com/facebook/react/animation/AnimationListener.java | 6 ++---- .../react/animation/AnimationPropertyUpdater.java | 6 ++---- .../com/facebook/react/animation/AnimationRegistry.java | 6 ++---- .../com/facebook/react/animation/ImmediateAnimation.java | 6 ++---- .../react/animation/NoopAnimationPropertyUpdater.java | 6 ++---- .../react/animation/OpacityAnimationPropertyUpdater.java | 6 ++---- .../animation/PositionAnimationPairPropertyUpdater.java | 6 ++---- .../animation/RotationAnimationPropertyUpdater.java | 6 ++---- .../react/animation/ScaleXAnimationPropertyUpdater.java | 6 ++---- .../animation/ScaleXYAnimationPairPropertyUpdater.java | 6 ++---- .../react/animation/ScaleYAnimationPropertyUpdater.java | 6 ++---- .../main/java/com/facebook/react/bridge/Arguments.java | 6 ++---- .../com/facebook/react/bridge/AssertionException.java | 6 ++---- .../java/com/facebook/react/bridge/BaseJavaModule.java | 6 ++---- .../main/java/com/facebook/react/bridge/Callback.java | 6 ++---- .../java/com/facebook/react/bridge/CallbackImpl.java | 6 ++---- .../java/com/facebook/react/bridge/CatalystInstance.java | 6 ++---- .../com/facebook/react/bridge/CatalystInstanceImpl.java | 6 ++---- .../com/facebook/react/bridge/ContextBaseJavaModule.java | 6 ++---- .../bridge/DefaultNativeModuleCallExceptionHandler.java | 6 ++---- .../src/main/java/com/facebook/react/bridge/Dynamic.java | 6 ++---- .../java/com/facebook/react/bridge/DynamicFromArray.java | 6 ++---- .../java/com/facebook/react/bridge/DynamicFromMap.java | 6 ++---- .../facebook/react/bridge/FallbackJSBundleLoader.java | 6 ++---- .../java/com/facebook/react/bridge/GuardedAsyncTask.java | 6 ++---- .../facebook/react/bridge/InvalidIteratorException.java | 6 ++---- .../react/bridge/JSApplicationCausedNativeException.java | 6 ++---- .../bridge/JSApplicationIllegalArgumentException.java | 6 ++---- .../java/com/facebook/react/bridge/JSBundleLoader.java | 6 ++---- .../com/facebook/react/bridge/JSCJavaScriptExecutor.java | 6 ++---- .../react/bridge/JSCJavaScriptExecutorFactory.java | 6 ++---- .../main/java/com/facebook/react/bridge/JSInstance.java | 6 ++---- .../java/com/facebook/react/bridge/JavaJSExecutor.java | 6 ++---- .../com/facebook/react/bridge/JavaMethodWrapper.java | 6 ++---- .../com/facebook/react/bridge/JavaModuleWrapper.java | 6 ++---- .../java/com/facebook/react/bridge/JavaOnlyArray.java | 6 ++---- .../main/java/com/facebook/react/bridge/JavaOnlyMap.java | 6 ++---- .../com/facebook/react/bridge/JavaScriptExecutor.java | 6 ++---- .../facebook/react/bridge/JavaScriptExecutorFactory.java | 6 ++---- .../java/com/facebook/react/bridge/JavaScriptModule.java | 6 ++---- .../facebook/react/bridge/JavaScriptModuleRegistry.java | 6 ++---- .../main/java/com/facebook/react/bridge/JsonWriter.java | 6 ++---- .../java/com/facebook/react/bridge/JsonWriterHelper.java | 6 ++---- .../facebook/react/bridge/LifecycleEventListener.java | 6 ++---- .../main/java/com/facebook/react/bridge/ModuleSpec.java | 6 ++---- .../react/bridge/NativeArgumentsParseException.java | 6 ++---- .../main/java/com/facebook/react/bridge/NativeArray.java | 6 ++---- .../main/java/com/facebook/react/bridge/NativeMap.java | 6 ++---- .../java/com/facebook/react/bridge/NativeModule.java | 6 ++---- .../react/bridge/NativeModuleCallExceptionHandler.java | 6 ++---- .../com/facebook/react/bridge/NativeModuleRegistry.java | 6 ++---- .../com/facebook/react/bridge/NoSuchKeyException.java | 6 ++---- .../bridge/NotThreadSafeBridgeIdleDebugListener.java | 6 ++---- .../react/bridge/ObjectAlreadyConsumedException.java | 6 ++---- .../facebook/react/bridge/OnBatchCompleteListener.java | 6 ++---- .../com/facebook/react/bridge/PerformanceCounter.java | 6 ++---- .../src/main/java/com/facebook/react/bridge/Promise.java | 6 ++---- .../main/java/com/facebook/react/bridge/PromiseImpl.java | 6 ++---- .../facebook/react/bridge/ProxyJavaScriptExecutor.java | 6 ++---- .../facebook/react/bridge/ReactApplicationContext.java | 6 ++---- .../main/java/com/facebook/react/bridge/ReactBridge.java | 6 ++---- .../java/com/facebook/react/bridge/ReactCallback.java | 6 ++---- .../java/com/facebook/react/bridge/ReactContext.java | 6 ++---- .../react/bridge/ReactContextBaseJavaModule.java | 6 ++---- .../main/java/com/facebook/react/bridge/ReactMethod.java | 6 ++---- .../com/facebook/react/bridge/ReactModuleWithSpec.java | 6 ++---- .../java/com/facebook/react/bridge/ReadableArray.java | 6 ++---- .../main/java/com/facebook/react/bridge/ReadableMap.java | 6 ++---- .../facebook/react/bridge/ReadableMapKeySetIterator.java | 6 ++---- .../com/facebook/react/bridge/ReadableNativeArray.java | 6 ++---- .../com/facebook/react/bridge/ReadableNativeMap.java | 6 ++---- .../java/com/facebook/react/bridge/ReadableType.java | 6 ++---- .../java/com/facebook/react/bridge/SoftAssertions.java | 6 ++---- .../java/com/facebook/react/bridge/UiThreadUtil.java | 6 ++---- .../react/bridge/UnexpectedNativeTypeException.java | 6 ++---- .../java/com/facebook/react/bridge/WritableArray.java | 6 ++---- .../main/java/com/facebook/react/bridge/WritableMap.java | 6 ++---- .../com/facebook/react/bridge/WritableNativeArray.java | 6 ++---- .../com/facebook/react/bridge/WritableNativeMap.java | 6 ++---- .../facebook/react/bridge/queue/MessageQueueThread.java | 6 ++---- .../react/bridge/queue/MessageQueueThreadHandler.java | 6 ++---- .../react/bridge/queue/MessageQueueThreadImpl.java | 6 ++---- .../react/bridge/queue/MessageQueueThreadSpec.java | 6 ++---- .../com/facebook/react/bridge/queue/NativeRunnable.java | 6 ++---- .../react/bridge/queue/NativeRunnableDeprecated.java | 6 ++---- .../react/bridge/queue/QueueThreadExceptionHandler.java | 6 ++---- .../react/bridge/queue/ReactQueueConfiguration.java | 6 ++---- .../react/bridge/queue/ReactQueueConfigurationImpl.java | 6 ++---- .../react/bridge/queue/ReactQueueConfigurationSpec.java | 6 ++---- .../com/facebook/react/common/DebugServerException.java | 6 ++---- .../com/facebook/react/common/JavascriptException.java | 6 ++---- .../java/com/facebook/react/common/LifecycleState.java | 6 ++---- .../main/java/com/facebook/react/common/LongArray.java | 6 ++---- .../main/java/com/facebook/react/common/MapBuilder.java | 6 ++---- .../java/com/facebook/react/common/ReactConstants.java | 6 ++---- .../java/com/facebook/react/common/ShakeDetector.java | 6 ++---- .../com/facebook/react/common/SingleThreadAsserter.java | 6 ++---- .../java/com/facebook/react/common/StandardCharsets.java | 6 ++---- .../main/java/com/facebook/react/common/SystemClock.java | 6 ++---- .../react/common/annotations/VisibleForTesting.java | 6 ++---- .../facebook/react/common/build/ReactBuildConfig.java | 6 ++---- .../react/common/futures/SimpleSettableFuture.java | 6 ++---- .../facebook/react/common/network/OkHttpCallUtil.java | 8 +++----- .../com/facebook/react/devsupport/BundleDownloader.java | 6 ++---- .../react/devsupport/DebugOverlayController.java | 6 ++---- .../facebook/react/devsupport/DevInternalSettings.java | 6 ++---- .../react/devsupport/DevLoadingViewController.java | 6 ++---- .../com/facebook/react/devsupport/DevServerHelper.java | 6 ++---- .../facebook/react/devsupport/DevSettingsActivity.java | 6 ++---- .../react/devsupport/DevSupportManagerFactory.java | 6 ++---- .../facebook/react/devsupport/DevSupportManagerImpl.java | 6 ++---- .../react/devsupport/DisabledDevSupportManager.java | 6 ++---- .../react/devsupport/DoubleTapReloadRecognizer.java | 6 ++---- .../main/java/com/facebook/react/devsupport/FpsView.java | 6 ++---- .../java/com/facebook/react/devsupport/HMRClient.java | 6 ++---- .../com/facebook/react/devsupport/JSCHeapCapture.java | 6 ++---- .../facebook/react/devsupport/JSCSamplingProfiler.java | 6 ++---- .../react/devsupport/JSDebuggerWebSocketClient.java | 6 ++---- .../java/com/facebook/react/devsupport/JSException.java | 6 ++---- .../facebook/react/devsupport/MultipartStreamReader.java | 6 ++---- .../react/devsupport/ReactInstanceManagerDevHelper.java | 6 ++---- .../java/com/facebook/react/devsupport/RedBoxDialog.java | 6 ++---- .../com/facebook/react/devsupport/RedBoxHandler.java | 6 ++---- .../com/facebook/react/devsupport/StackTraceHelper.java | 6 ++---- .../react/devsupport/WebsocketJavaScriptExecutor.java | 6 ++---- .../devsupport/interfaces/DevBundleDownloadListener.java | 6 ++---- .../react/devsupport/interfaces/DevOptionHandler.java | 6 ++---- .../react/devsupport/interfaces/DevSupportManager.java | 6 ++---- .../react/devsupport/interfaces/ErrorCustomizer.java | 7 +++---- .../devsupport/interfaces/PackagerStatusCallback.java | 6 ++---- .../facebook/react/devsupport/interfaces/StackFrame.java | 6 ++---- .../java/com/facebook/react/flat/AbstractDrawBorder.java | 6 ++---- .../com/facebook/react/flat/AbstractDrawCommand.java | 6 ++---- .../main/java/com/facebook/react/flat/AndroidView.java | 6 ++---- .../com/facebook/react/flat/AttachDetachListener.java | 6 ++---- .../com/facebook/react/flat/BitmapUpdateListener.java | 6 ++---- .../facebook/react/flat/ClippingDrawCommandManager.java | 6 ++---- .../com/facebook/react/flat/DrawBackgroundColor.java | 6 ++---- .../main/java/com/facebook/react/flat/DrawBorder.java | 6 ++---- .../main/java/com/facebook/react/flat/DrawCommand.java | 6 ++---- .../java/com/facebook/react/flat/DrawCommandManager.java | 6 ++---- .../src/main/java/com/facebook/react/flat/DrawImage.java | 6 ++---- .../com/facebook/react/flat/DrawImageWithDrawee.java | 6 ++---- .../java/com/facebook/react/flat/DrawTextLayout.java | 6 ++---- .../src/main/java/com/facebook/react/flat/DrawView.java | 6 ++---- .../com/facebook/react/flat/DraweeRequestHelper.java | 6 ++---- .../main/java/com/facebook/react/flat/ElementsList.java | 6 ++---- .../facebook/react/flat/FlatARTSurfaceViewManager.java | 6 ++---- .../react/flat/FlatARTSurfaceViewShadowNode.java | 6 ++---- .../com/facebook/react/flat/FlatMeasuredViewGroup.java | 6 ++---- .../react/flat/FlatNativeViewHierarchyManager.java | 6 ++---- .../facebook/react/flat/FlatReactModalShadowNode.java | 6 ++---- .../java/com/facebook/react/flat/FlatRootShadowNode.java | 6 ++---- .../com/facebook/react/flat/FlatRootViewManager.java | 6 ++---- .../java/com/facebook/react/flat/FlatShadowNode.java | 6 ++---- .../java/com/facebook/react/flat/FlatTextShadowNode.java | 6 ++---- .../com/facebook/react/flat/FlatUIImplementation.java | 6 ++---- .../facebook/react/flat/FlatUIViewOperationQueue.java | 6 ++---- .../main/java/com/facebook/react/flat/FlatViewGroup.java | 6 ++---- .../java/com/facebook/react/flat/FlatViewManager.java | 6 ++---- .../java/com/facebook/react/flat/FontStylingSpan.java | 6 ++---- .../java/com/facebook/react/flat/HitSlopNodeRegion.java | 6 ++---- .../react/flat/HorizontalDrawCommandManager.java | 6 ++---- .../facebook/react/flat/InlineImageSpanWithPipeline.java | 6 ++---- .../src/main/java/com/facebook/react/flat/MoveProxy.java | 6 ++---- .../java/com/facebook/react/flat/NativeViewWrapper.java | 6 ++---- .../main/java/com/facebook/react/flat/NodeRegion.java | 6 ++---- .../com/facebook/react/flat/PipelineRequestHelper.java | 6 ++---- .../main/java/com/facebook/react/flat/RCTImageView.java | 6 ++---- .../com/facebook/react/flat/RCTImageViewManager.java | 6 ++---- .../com/facebook/react/flat/RCTModalHostManager.java | 6 ++---- .../main/java/com/facebook/react/flat/RCTRawText.java | 6 ++---- .../java/com/facebook/react/flat/RCTRawTextManager.java | 6 ++---- .../src/main/java/com/facebook/react/flat/RCTText.java | 6 ++---- .../java/com/facebook/react/flat/RCTTextInlineImage.java | 6 ++---- .../facebook/react/flat/RCTTextInlineImageManager.java | 6 ++---- .../main/java/com/facebook/react/flat/RCTTextInput.java | 6 ++---- .../com/facebook/react/flat/RCTTextInputManager.java | 6 ++---- .../java/com/facebook/react/flat/RCTTextManager.java | 6 ++---- .../src/main/java/com/facebook/react/flat/RCTView.java | 6 ++---- .../java/com/facebook/react/flat/RCTViewManager.java | 6 ++---- .../com/facebook/react/flat/RCTViewPagerManager.java | 6 ++---- .../java/com/facebook/react/flat/RCTVirtualText.java | 6 ++---- .../com/facebook/react/flat/RCTVirtualTextManager.java | 6 ++---- .../java/com/facebook/react/flat/ShadowStyleSpan.java | 6 ++---- .../main/java/com/facebook/react/flat/StateBuilder.java | 6 ++---- .../java/com/facebook/react/flat/TextNodeRegion.java | 6 ++---- .../main/java/com/facebook/react/flat/TypefaceCache.java | 6 ++---- .../facebook/react/flat/VerticalDrawCommandManager.java | 6 ++---- .../main/java/com/facebook/react/flat/ViewResolver.java | 6 ++---- .../java/com/facebook/react/flat/VirtualViewManager.java | 6 ++---- .../react/jstasks/HeadlessJsTaskEventListener.java | 6 ++---- .../facebook/react/module/annotations/ReactModule.java | 6 ++---- .../facebook/react/modules/appregistry/AppRegistry.java | 6 ++---- .../facebook/react/modules/appstate/AppStateModule.java | 6 ++---- .../java/com/facebook/react/modules/blob/BlobModule.java | 7 +++---- .../com/facebook/react/modules/blob/BlobProvider.java | 7 +++---- .../facebook/react/modules/blob/FileReaderModule.java | 6 ++---- .../facebook/react/modules/camera/CameraRollManager.java | 6 ++---- .../react/modules/camera/ImageEditingManager.java | 6 ++---- .../facebook/react/modules/camera/ImageStoreManager.java | 6 ++---- .../react/modules/clipboard/ClipboardModule.java | 6 ++---- .../facebook/react/modules/common/ModuleDataCleaner.java | 6 ++---- .../facebook/react/modules/core/ChoreographerCompat.java | 8 +++----- .../modules/core/DefaultHardwareBackBtnHandler.java | 6 ++---- .../react/modules/core/DeviceEventManagerModule.java | 6 ++---- .../react/modules/core/ExceptionsManagerModule.java | 6 ++---- .../react/modules/core/HeadlessJsTaskSupportModule.java | 6 ++---- .../java/com/facebook/react/modules/core/JSTimers.java | 6 ++---- .../react/modules/core/PermissionAwareActivity.java | 6 ++---- .../facebook/react/modules/core/PermissionListener.java | 6 ++---- .../react/modules/core/RCTNativeAppEventEmitter.java | 6 ++---- .../facebook/react/modules/core/ReactChoreographer.java | 6 ++---- .../java/com/facebook/react/modules/core/Timing.java | 6 ++---- .../modules/datepicker/DatePickerDialogFragment.java | 6 ++---- .../react/modules/datepicker/DatePickerDialogModule.java | 6 ++---- .../react/modules/datepicker/DatePickerMode.java | 6 ++---- .../modules/datepicker/DismissableDatePickerDialog.java | 6 ++---- .../datepicker/SupportDatePickerDialogFragment.java | 6 ++---- .../react/modules/debug/AnimationsDebugModule.java | 6 ++---- .../modules/debug/DidJSUpdateUiDuringFrameDetector.java | 6 ++---- .../react/modules/debug/FpsDebugFrameCallback.java | 6 ++---- .../facebook/react/modules/debug/SourceCodeModule.java | 6 ++---- .../modules/debug/interfaces/DeveloperSettings.java | 6 ++---- .../react/modules/deviceinfo/DeviceInfoModule.java | 6 ++---- .../com/facebook/react/modules/dialog/AlertFragment.java | 6 ++---- .../com/facebook/react/modules/dialog/DialogModule.java | 6 ++---- .../react/modules/dialog/SupportAlertFragment.java | 6 ++---- .../com/facebook/react/modules/fresco/FrescoModule.java | 6 ++---- .../react/modules/fresco/ReactNetworkImageRequest.java | 8 +++----- .../react/modules/fresco/ReactOkHttpNetworkFetcher.java | 8 +++----- .../react/modules/i18nmanager/I18nManagerModule.java | 6 ++---- .../com/facebook/react/modules/i18nmanager/I18nUtil.java | 6 ++---- .../facebook/react/modules/image/ImageLoaderModule.java | 6 ++---- .../com/facebook/react/modules/intent/IntentModule.java | 6 ++---- .../facebook/react/modules/location/LocationModule.java | 6 ++---- .../facebook/react/modules/location/PositionError.java | 6 ++---- .../facebook/react/modules/netinfo/NetInfoModule.java | 6 ++---- .../react/modules/network/NetworkInterceptorCreator.java | 6 ++---- .../facebook/react/modules/network/NetworkingModule.java | 6 ++---- .../react/modules/network/OkHttpClientFactory.java | 6 ++---- .../react/modules/network/OkHttpClientProvider.java | 6 ++---- .../facebook/react/modules/network/ProgressListener.java | 6 ++---- .../react/modules/network/ProgressRequestBody.java | 6 ++---- .../react/modules/network/ProgressiveStringDecoder.java | 6 ++---- .../facebook/react/modules/network/RequestBodyUtil.java | 6 ++---- .../com/facebook/react/modules/network/ResponseUtil.java | 6 ++---- .../facebook/react/modules/network/TLSSocketFactory.java | 6 ++---- .../react/modules/permissions/PermissionsModule.java | 6 ++---- .../com/facebook/react/modules/share/ShareModule.java | 6 ++---- .../react/modules/statusbar/StatusBarModule.java | 8 +++----- .../react/modules/storage/AsyncLocalStorageUtil.java | 6 ++---- .../react/modules/storage/AsyncStorageErrorUtil.java | 6 ++---- .../react/modules/storage/AsyncStorageModule.java | 6 ++---- .../react/modules/storage/ReactDatabaseSupplier.java | 6 ++---- .../react/modules/systeminfo/AndroidInfoModule.java | 6 ++---- .../react/modules/systeminfo/ReactNativeVersion.java | 6 ++---- .../modules/timepicker/DismissableTimePickerDialog.java | 6 ++---- .../timepicker/SupportTimePickerDialogFragment.java | 6 ++---- .../modules/timepicker/TimePickerDialogFragment.java | 6 ++---- .../react/modules/timepicker/TimePickerDialogModule.java | 6 ++---- .../react/modules/timepicker/TimePickerMode.java | 6 ++---- .../com/facebook/react/modules/toast/ToastModule.java | 6 ++---- .../react/modules/vibration/VibrationModule.java | 6 ++---- .../react/modules/websocket/WebSocketModule.java | 6 ++---- .../facebook/react/packagerconnection/FileIoHandler.java | 6 ++---- .../react/packagerconnection/JSPackagerClient.java | 7 +++---- .../packagerconnection/NotificationOnlyHandler.java | 7 +++---- .../packagerconnection/PackagerConnectionSettings.java | 6 ++---- .../react/packagerconnection/ReconnectingWebSocket.java | 7 +++---- .../react/packagerconnection/RequestHandler.java | 7 +++---- .../react/packagerconnection/RequestOnlyHandler.java | 7 +++---- .../com/facebook/react/packagerconnection/Responder.java | 7 +++---- .../SamplingProfilerPackagerMethod.java | 6 ++---- .../java/com/facebook/react/shell/MainPackageConfig.java | 6 ++---- .../java/com/facebook/react/shell/MainReactPackage.java | 6 ++---- .../com/facebook/react/touch/JSResponderHandler.java | 6 ++---- .../react/touch/OnInterceptTouchEventListener.java | 6 ++---- .../java/com/facebook/react/touch/ReactHitSlopView.java | 6 ++---- .../facebook/react/touch/ReactInterceptingViewGroup.java | 6 ++---- .../facebook/react/uimanager/AccessibilityHelper.java | 6 ++---- .../facebook/react/uimanager/DisplayMetricsHolder.java | 6 ++---- .../java/com/facebook/react/uimanager/FloatUtil.java | 6 ++---- .../facebook/react/uimanager/GuardedFrameCallback.java | 6 ++---- .../react/uimanager/IllegalViewOperationException.java | 6 ++---- .../com/facebook/react/uimanager/JSTouchDispatcher.java | 6 ++---- .../facebook/react/uimanager/MeasureSpecAssertions.java | 6 ++---- .../react/uimanager/NativeViewHierarchyManager.java | 6 ++---- .../react/uimanager/NativeViewHierarchyOptimizer.java | 6 ++---- .../react/uimanager/NoSuchNativeViewException.java | 6 ++---- .../java/com/facebook/react/uimanager/OnLayoutEvent.java | 6 ++---- .../java/com/facebook/react/uimanager/PixelUtil.java | 6 ++---- .../java/com/facebook/react/uimanager/PointerEvents.java | 6 ++---- .../facebook/react/uimanager/ReactClippingViewGroup.java | 6 ++---- .../react/uimanager/ReactClippingViewGroupHelper.java | 6 ++---- .../com/facebook/react/uimanager/ReactCompoundView.java | 6 ++---- .../facebook/react/uimanager/ReactCompoundViewGroup.java | 6 ++---- .../react/uimanager/ReactInvalidPropertyException.java | 6 ++---- .../facebook/react/uimanager/ReactPointerEventsView.java | 6 ++---- .../com/facebook/react/uimanager/ReactShadowNode.java | 7 +++---- .../facebook/react/uimanager/ReactShadowNodeImpl.java | 7 +++---- .../com/facebook/react/uimanager/ReactStylesDiffMap.java | 6 ++---- .../main/java/com/facebook/react/uimanager/RootView.java | 6 ++---- .../com/facebook/react/uimanager/RootViewManager.java | 6 ++---- .../java/com/facebook/react/uimanager/RootViewUtil.java | 6 ++---- .../com/facebook/react/uimanager/ShadowNodeRegistry.java | 6 ++---- .../com/facebook/react/uimanager/SimpleViewManager.java | 6 ++---- .../react/uimanager/SizeMonitoringFrameLayout.java | 6 ++---- .../main/java/com/facebook/react/uimanager/Spacing.java | 6 ++---- .../com/facebook/react/uimanager/ThemedReactContext.java | 6 ++---- .../com/facebook/react/uimanager/TouchTargetHelper.java | 6 ++---- .../com/facebook/react/uimanager/UIImplementation.java | 6 ++---- .../react/uimanager/UIImplementationProvider.java | 6 ++---- .../com/facebook/react/uimanager/UIManagerModule.java | 6 ++---- .../react/uimanager/UIManagerModuleConstants.java | 6 ++---- .../react/uimanager/UIManagerModuleConstantsHelper.java | 6 ++---- .../react/uimanager/UIManagerModuleListener.java | 6 ++---- .../facebook/react/uimanager/UIViewOperationQueue.java | 6 ++---- .../java/com/facebook/react/uimanager/ViewAtIndex.java | 6 ++---- .../java/com/facebook/react/uimanager/ViewDefaults.java | 6 ++---- .../react/uimanager/ViewGroupDrawingOrderHelper.java | 6 ++---- .../com/facebook/react/uimanager/ViewGroupManager.java | 6 ++---- .../facebook/react/uimanager/ViewHierarchyDumper.java | 6 ++---- .../java/com/facebook/react/uimanager/ViewManager.java | 6 ++---- .../facebook/react/uimanager/ViewManagerRegistry.java | 6 ++---- .../java/com/facebook/react/uimanager/ViewProps.java | 6 ++---- .../NotThreadSafeViewHierarchyUpdateDebugListener.java | 6 ++---- .../java/com/facebook/react/uimanager/events/Event.java | 6 ++---- .../facebook/react/uimanager/events/EventDispatcher.java | 6 ++---- .../react/uimanager/events/NativeGestureUtil.java | 6 ++---- .../facebook/react/uimanager/events/RCTEventEmitter.java | 6 ++---- .../com/facebook/react/uimanager/events/TouchEvent.java | 6 ++---- .../uimanager/events/TouchEventCoalescingKeyHelper.java | 6 ++---- .../facebook/react/uimanager/events/TouchEventType.java | 6 ++---- .../facebook/react/uimanager/events/TouchesHelper.java | 6 ++---- .../main/java/com/facebook/react/util/JSStackTrace.java | 6 ++---- .../com/facebook/react/views/art/ARTGroupShadowNode.java | 6 ++---- .../react/views/art/ARTRenderableViewManager.java | 6 ++---- .../com/facebook/react/views/art/ARTShapeShadowNode.java | 6 ++---- .../com/facebook/react/views/art/ARTSurfaceView.java | 6 ++---- .../facebook/react/views/art/ARTSurfaceViewManager.java | 6 ++---- .../react/views/art/ARTSurfaceViewShadowNode.java | 6 ++---- .../com/facebook/react/views/art/ARTTextShadowNode.java | 6 ++---- .../com/facebook/react/views/art/ARTVirtualNode.java | 6 ++---- .../java/com/facebook/react/views/art/PropHelper.java | 6 ++---- .../com/facebook/react/views/checkbox/ReactCheckBox.java | 7 +++---- .../react/views/checkbox/ReactCheckBoxEvent.java | 7 +++---- .../react/views/checkbox/ReactCheckBoxManager.java | 7 +++---- .../facebook/react/views/drawer/ReactDrawerLayout.java | 6 ++---- .../react/views/drawer/ReactDrawerLayoutManager.java | 6 ++---- .../react/views/drawer/events/DrawerClosedEvent.java | 6 ++---- .../react/views/drawer/events/DrawerOpenedEvent.java | 6 ++---- .../react/views/drawer/events/DrawerSlideEvent.java | 6 ++---- .../views/drawer/events/DrawerStateChangedEvent.java | 6 ++---- .../com/facebook/react/views/image/ImageLoadEvent.java | 6 ++---- .../facebook/react/views/image/ImageResizeMethod.java | 6 ++---- .../com/facebook/react/views/image/ImageResizeMode.java | 6 ++---- .../facebook/react/views/image/ReactImageManager.java | 6 ++---- .../com/facebook/react/views/image/ReactImageView.java | 6 ++---- .../facebook/react/views/imagehelper/ImageSource.java | 6 ++---- .../react/views/imagehelper/MultiSourceHelper.java | 6 ++---- .../views/imagehelper/ResourceDrawableIdHelper.java | 6 ++---- .../facebook/react/views/modal/ModalHostShadowNode.java | 6 ++---- .../react/views/modal/ReactModalHostManager.java | 6 ++---- .../facebook/react/views/modal/ReactModalHostView.java | 6 ++---- .../facebook/react/views/modal/RequestCloseEvent.java | 6 ++---- .../java/com/facebook/react/views/modal/ShowEvent.java | 6 ++---- .../react/views/picker/ReactDialogPickerManager.java | 6 ++---- .../react/views/picker/ReactDropdownPickerManager.java | 6 ++---- .../com/facebook/react/views/picker/ReactPicker.java | 6 ++---- .../facebook/react/views/picker/ReactPickerManager.java | 6 ++---- .../react/views/picker/events/PickerItemSelectEvent.java | 6 ++---- .../react/views/progressbar/ProgressBarShadowNode.java | 6 ++---- .../views/progressbar/ReactProgressBarViewManager.java | 6 ++---- .../com/facebook/react/views/scroll/FpsListener.java | 6 ++---- .../react/views/scroll/OnScrollDispatchHelper.java | 6 ++---- .../react/views/scroll/ReactHorizontalScrollView.java | 6 ++---- .../views/scroll/ReactHorizontalScrollViewManager.java | 6 ++---- .../com/facebook/react/views/scroll/ReactScrollView.java | 6 ++---- .../react/views/scroll/ReactScrollViewCommandHelper.java | 6 ++---- .../react/views/scroll/ReactScrollViewHelper.java | 6 ++---- .../react/views/scroll/ReactScrollViewManager.java | 6 ++---- .../com/facebook/react/views/scroll/ScrollEvent.java | 6 ++---- .../com/facebook/react/views/scroll/ScrollEventType.java | 6 ++---- .../com/facebook/react/views/scroll/VelocityHelper.java | 6 ++---- .../com/facebook/react/views/slider/ReactSlider.java | 6 ++---- .../facebook/react/views/slider/ReactSliderEvent.java | 6 ++---- .../facebook/react/views/slider/ReactSliderManager.java | 6 ++---- .../react/views/slider/ReactSlidingCompleteEvent.java | 6 ++---- .../views/swiperefresh/ReactSwipeRefreshLayout.java | 6 ++---- .../facebook/react/views/swiperefresh/RefreshEvent.java | 6 ++---- .../views/swiperefresh/SwipeRefreshLayoutManager.java | 6 ++---- .../com/facebook/react/views/switchview/ReactSwitch.java | 6 ++---- .../react/views/switchview/ReactSwitchEvent.java | 6 ++---- .../react/views/switchview/ReactSwitchManager.java | 6 ++---- .../facebook/react/views/text/CustomLineHeightSpan.java | 6 ++---- .../com/facebook/react/views/text/CustomStyleSpan.java | 6 ++---- .../react/views/text/DefaultStyleValuesUtil.java | 6 ++---- .../react/views/text/ReactBaseTextShadowNode.java | 7 +++---- .../com/facebook/react/views/text/ReactFontManager.java | 9 ++++----- .../facebook/react/views/text/ReactRawTextManager.java | 6 ++---- .../react/views/text/ReactRawTextShadowNode.java | 7 +++---- .../java/com/facebook/react/views/text/ReactTagSpan.java | 6 ++---- .../react/views/text/ReactTextAnchorViewManager.java | 6 ++---- .../react/views/text/ReactTextInlineImageShadowNode.java | 6 ++---- .../facebook/react/views/text/ReactTextShadowNode.java | 6 ++---- .../com/facebook/react/views/text/ReactTextUpdate.java | 6 ++---- .../com/facebook/react/views/text/ReactTextView.java | 6 ++---- .../facebook/react/views/text/ReactTextViewManager.java | 6 ++---- .../react/views/text/ReactVirtualTextViewManager.java | 6 ++---- .../com/facebook/react/views/text/ShadowStyleSpan.java | 6 ++---- .../facebook/react/views/text/TextInlineImageSpan.java | 6 ++---- .../FrescoBasedReactTextInlineImageShadowNode.java | 6 ++---- .../FrescoBasedReactTextInlineImageSpan.java | 6 ++---- .../FrescoBasedReactTextInlineImageViewManager.java | 6 ++---- .../react/views/textinput/ContentSizeWatcher.java | 6 ++---- .../views/textinput/ReactContentSizeChangedEvent.java | 6 ++---- .../facebook/react/views/textinput/ReactEditText.java | 6 ++---- .../textinput/ReactEditTextInputConnectionWrapper.java | 6 ++---- .../react/views/textinput/ReactTextChangedEvent.java | 6 ++---- .../react/views/textinput/ReactTextInputBlurEvent.java | 6 ++---- .../views/textinput/ReactTextInputEndEditingEvent.java | 6 ++---- .../react/views/textinput/ReactTextInputEvent.java | 6 ++---- .../react/views/textinput/ReactTextInputFocusEvent.java | 6 ++---- .../views/textinput/ReactTextInputKeyPressEvent.java | 6 ++---- .../react/views/textinput/ReactTextInputLocalData.java | 6 ++---- .../react/views/textinput/ReactTextInputManager.java | 6 ++---- .../views/textinput/ReactTextInputSelectionEvent.java | 6 ++---- .../react/views/textinput/ReactTextInputShadowNode.java | 6 ++---- .../textinput/ReactTextInputSubmitEditingEvent.java | 6 ++---- .../facebook/react/views/textinput/ScrollWatcher.java | 6 ++---- .../facebook/react/views/textinput/SelectionWatcher.java | 6 ++---- .../react/views/toolbar/DrawableWithIntrinsicSize.java | 6 ++---- .../com/facebook/react/views/toolbar/ReactToolbar.java | 6 ++---- .../react/views/toolbar/ReactToolbarManager.java | 6 ++---- .../react/views/toolbar/events/ToolbarClickEvent.java | 6 ++---- .../java/com/facebook/react/views/view/ColorUtil.java | 6 ++---- .../facebook/react/views/view/ReactDrawableHelper.java | 6 ++---- .../react/views/view/ReactViewBackgroundDrawable.java | 6 ++---- .../com/facebook/react/views/view/ReactViewGroup.java | 6 ++---- .../com/facebook/react/views/view/ReactViewManager.java | 6 ++---- .../facebook/react/views/viewpager/PageScrollEvent.java | 6 ++---- .../views/viewpager/PageScrollStateChangedEvent.java | 6 ++---- .../react/views/viewpager/PageSelectedEvent.java | 6 ++---- .../facebook/react/views/viewpager/ReactViewPager.java | 6 ++---- .../react/views/viewpager/ReactViewPagerManager.java | 6 ++---- .../react/views/webview/ReactWebViewManager.java | 6 ++---- .../com/facebook/react/views/webview/WebViewConfig.java | 6 ++---- .../react/views/webview/events/TopLoadingErrorEvent.java | 6 ++---- .../views/webview/events/TopLoadingFinishEvent.java | 6 ++---- .../react/views/webview/events/TopLoadingStartEvent.java | 6 ++---- .../react/views/webview/events/TopMessageEvent.java | 6 ++---- .../src/main/java/com/facebook/systrace/Systrace.java | 6 ++---- .../main/java/com/facebook/systrace/SystraceMessage.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaAlign.java | 6 ++---- .../java/com/facebook/yoga/YogaBaselineFunction.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaConfig.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaConstants.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaDimension.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaDirection.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaDisplay.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaEdge.java | 6 ++---- .../java/com/facebook/yoga/YogaExperimentalFeature.java | 6 ++---- .../main/java/com/facebook/yoga/YogaFlexDirection.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaJustify.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaLogLevel.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaLogger.java | 6 ++---- .../main/java/com/facebook/yoga/YogaMeasureFunction.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaMeasureMode.java | 6 ++---- .../main/java/com/facebook/yoga/YogaMeasureOutput.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaNode.java | 6 ++---- .../java/com/facebook/yoga/YogaNodeClonedFunction.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaNodeType.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaOverflow.java | 6 ++---- .../main/java/com/facebook/yoga/YogaPositionType.java | 6 ++---- .../main/java/com/facebook/yoga/YogaPrintOptions.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaUnit.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaValue.java | 6 ++---- .../src/main/java/com/facebook/yoga/YogaWrap.java | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/assert.cpp | 6 ++---- .../src/main/jni/first-party/fb/include/fb/ALog.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/Countable.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/Environment.h | 6 ++---- .../main/jni/first-party/fb/include/fb/ProgramLocation.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/RefPtr.h | 6 ++---- .../jni/first-party/fb/include/fb/StaticInitialized.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/ThreadLocal.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/assert.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/fbjni.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/fbjni/Boxed.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/ByteBuffer.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/Common.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/Context.h | 6 ++---- .../first-party/fb/include/fb/fbjni/CoreClasses-inl.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/CoreClasses.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/Exceptions.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/fbjni/File.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/Hybrid.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/Iterator-inl.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/Iterator.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/JThread.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/Meta-forward.h | 6 ++---- .../main/jni/first-party/fb/include/fb/fbjni/Meta-inl.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/fbjni/Meta.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/NativeRunnable.h | 6 ++---- .../fb/include/fb/fbjni/ReferenceAllocators-inl.h | 6 ++---- .../fb/include/fb/fbjni/ReferenceAllocators.h | 6 ++---- .../first-party/fb/include/fb/fbjni/References-forward.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/References-inl.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/References.h | 6 ++---- .../first-party/fb/include/fb/fbjni/Registration-inl.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/Registration.h | 6 ++---- .../jni/first-party/fb/include/fb/fbjni/TypeTraits.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/noncopyable.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/nonmovable.h | 6 ++---- .../src/main/jni/first-party/fb/include/fb/visibility.h | 6 ++---- .../src/main/jni/first-party/fb/include/jni/Countable.h | 6 ++---- .../jni/first-party/fb/include/jni/GlobalReference.h | 6 ++---- .../jni/first-party/fb/include/jni/JniTerminateHandler.h | 6 ++---- .../main/jni/first-party/fb/include/jni/LocalReference.h | 6 ++---- .../main/jni/first-party/fb/include/jni/LocalString.h | 6 ++---- .../main/jni/first-party/fb/include/jni/Registration.h | 6 ++---- .../main/jni/first-party/fb/include/jni/WeakReference.h | 6 ++---- .../main/jni/first-party/fb/include/jni/jni_helpers.h | 6 ++---- .../src/main/jni/first-party/fb/jni/ByteBuffer.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/Countable.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/Environment.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/Exceptions.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/jni/Hybrid.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/LocalString.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/jni/OnLoad.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/References.cpp | 6 ++---- .../src/main/jni/first-party/fb/jni/WeakReference.cpp | 6 ++---- .../jni/first-party/fb/jni/android/ReferenceChecking.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp | 6 ++---- .../main/jni/first-party/fb/jni/java/CppException.java | 6 ++---- .../first-party/fb/jni/java/CppSystemErrorException.java | 6 ++---- .../jni/first-party/fb/jni/java/UnknownCppException.java | 6 ++---- .../src/main/jni/first-party/fb/jni/jni_helpers.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/log.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/fb/onload.cpp | 6 ++---- ReactAndroid/src/main/jni/first-party/jni-hack/BUCK | 6 ++---- ReactAndroid/src/main/jni/first-party/jni-hack/jni.h | 6 ++---- .../src/main/jni/first-party/yogajni/jni/YGJNI.cpp | 6 ++---- .../com/facebook/common/logging/FakeLoggingDelegate.java | 6 ++---- .../com/facebook/react/CompositeReactPackageTest.java | 6 ++---- .../src/test/java/com/facebook/react/RootViewTest.java | 6 ++---- .../react/animated/NativeAnimatedNodeTraversalTest.java | 6 ++---- .../com/facebook/react/bridge/BaseJavaModuleTest.java | 6 ++---- .../react/bridge/FallbackJSBundleLoaderTest.java | 6 ++---- .../com/facebook/react/bridge/JavaOnlyArrayTest.java | 6 ++---- .../java/com/facebook/react/bridge/JsonWriterTest.java | 6 ++---- .../java/com/facebook/react/bridge/ModuleSpecTest.java | 6 ++---- .../java/com/facebook/react/bridge/ReactTestHelper.java | 6 ++---- .../react/devsupport/JSDebuggerWebSocketClientTest.java | 6 ++---- .../react/devsupport/MultipartStreamReaderTest.java | 6 ++---- .../facebook/react/devsupport/StackTraceHelperTest.java | 6 ++---- .../com/facebook/react/modules/blob/BlobModuleTest.java | 6 ++---- .../react/modules/camera/ImageStoreManagerTest.java | 6 ++---- .../react/modules/clipboard/ClipboardModuleTest.java | 6 ++---- .../facebook/react/modules/dialog/DialogModuleTest.java | 6 ++---- .../react/modules/network/NetworkingModuleTest.java | 6 ++---- .../modules/network/ProgressiveStringDecoderTest.java | 6 ++---- .../facebook/react/modules/share/ShareModuleTest.java | 6 ++---- .../react/modules/storage/AsyncStorageModuleTest.java | 6 ++---- .../facebook/react/modules/timing/TimingModuleTest.java | 6 ++---- .../react/packagerconnection/JSPackagerClientTest.java | 6 ++---- .../react/uimanager/LayoutPropertyApplicatorTest.java | 6 ++---- .../uimanager/ReactPropAnnotationSetterSpecTest.java | 6 ++---- .../react/uimanager/ReactPropAnnotationSetterTest.java | 6 ++---- .../facebook/react/uimanager/ReactPropConstantsTest.java | 6 ++---- .../uimanager/ReactPropForShadowNodeSetterTest.java | 6 ++---- .../react/uimanager/ReactPropForShadowNodeSpecTest.java | 6 ++---- .../facebook/react/uimanager/SimpleViewPropertyTest.java | 6 ++---- .../react/uimanager/UIManagerModuleConstantsTest.java | 6 ++---- .../facebook/react/uimanager/UIManagerModuleTest.java | 6 ++---- .../facebook/react/views/image/ImageResizeModeTest.java | 6 ++---- .../react/views/image/ReactImagePropertyTest.java | 6 ++---- .../react/views/slider/ReactSliderPropertyTest.java | 6 ++---- .../com/facebook/react/views/text/ReactTextTest.java | 6 ++---- .../views/textinput/ReactTextInputPropertyTest.java | 6 ++---- .../facebook/react/views/textinput/TextInputTest.java | 6 ++---- .../com/facebook/react/views/view/ColorUtilTest.java | 6 ++---- .../org/mockito/configuration/MockitoConfiguration.java | 6 ++---- ReactCommon/jschelpers/JSCWrapper.cpp | 6 ++---- ReactCommon/jschelpers/JSCWrapper.h | 6 ++---- ReactCommon/jschelpers/JavaScriptCore.h | 6 ++---- ReactCommon/jschelpers/systemJSCWrapper.cpp | 6 ++---- ReactCommon/jsinspector/InspectorInterfaces.cpp | 6 ++---- ReactCommon/jsinspector/InspectorInterfaces.h | 6 ++---- ReactCommon/yoga/yoga/Utils.cpp | 6 ++---- ReactCommon/yoga/yoga/Utils.h | 6 ++---- ReactCommon/yoga/yoga/YGEnums.cpp | 6 ++---- ReactCommon/yoga/yoga/YGEnums.h | 6 ++---- ReactCommon/yoga/yoga/YGMacros.h | 6 ++---- ReactCommon/yoga/yoga/YGNode.cpp | 6 ++---- ReactCommon/yoga/yoga/YGNode.h | 6 ++---- ReactCommon/yoga/yoga/YGNodePrint.cpp | 6 ++---- ReactCommon/yoga/yoga/YGNodePrint.h | 6 ++---- ReactCommon/yoga/yoga/Yoga-internal.h | 6 ++---- ReactCommon/yoga/yoga/Yoga.cpp | 6 ++---- ReactCommon/yoga/yoga/Yoga.h | 6 ++---- babel-preset/configs/hmr.js | 6 ++---- babel-preset/configs/main.js | 6 ++---- babel-preset/index.js | 6 ++---- babel-preset/lib/resolvePlugins.js | 6 ++---- babel-preset/plugins.js | 6 ++---- bots/code-analysis-bot.js | 6 ++---- bots/dangerfile.js | 6 ++---- cli.js | 6 ++---- flow-github/metro.js | 6 ++---- flow/Map.js | 6 ++---- flow/Position.js | 6 ++---- flow/Promise.js | 6 ++---- flow/Set.js | 6 ++---- flow/console.js | 6 ++---- flow/create-react-class.js | 6 ++---- flow/fbjs.js | 6 ++---- flow/prop-types.js | 6 ++---- jest/assetFileTransformer.js | 6 ++---- jest/mockComponent.js | 6 ++---- jest/preprocessor.js | 6 ++---- jest/setup.js | 6 ++---- lib/InitializeJavaScriptAppEngine.js | 6 ++---- lib/RCTEventEmitter.js | 6 ++---- lib/TextInputState.js | 6 ++---- lib/UIManager.js | 6 ++---- lib/UIManagerStatTracker.js | 6 ++---- lib/View.js | 6 ++---- lib/deepDiffer.js | 6 ++---- lib/deepFreezeAndThrowOnMutationInDev.js | 6 ++---- lib/flattenStyle.js | 6 ++---- local-cli/__mocks__/beeper.js | 6 ++---- local-cli/__mocks__/fs.js | 6 ++---- local-cli/__tests__/fs-mock-test.js | 6 ++---- local-cli/bundle/__mocks__/sign.js | 6 ++---- .../bundle/__tests__/filterPlatformAssetScales-test.js | 6 ++---- .../bundle/__tests__/getAssetDestPathAndroid-test.js | 6 ++---- local-cli/bundle/__tests__/getAssetDestPathIOS-test.js | 6 ++---- local-cli/bundle/assetPathUtils.js | 6 ++---- local-cli/bundle/buildBundle.js | 6 ++---- local-cli/bundle/bundle.js | 6 ++---- local-cli/bundle/bundleCommandLineArgs.js | 6 ++---- local-cli/bundle/filterPlatformAssetScales.js | 6 ++---- local-cli/bundle/getAssetDestPathAndroid.js | 6 ++---- local-cli/bundle/getAssetDestPathIOS.js | 6 ++---- local-cli/bundle/saveAssets.js | 6 ++---- local-cli/bundle/types.flow.js | 6 ++---- local-cli/bundle/unbundle.js | 6 ++---- local-cli/cli.js | 6 ++---- local-cli/cliEntry.js | 6 ++---- local-cli/commands.js | 6 ++---- local-cli/core/Constants.js | 6 ++---- .../core/__tests__/android/findAndroidAppFolder.spec.js | 6 ++---- local-cli/core/__tests__/android/findManifest.spec.js | 6 ++---- .../core/__tests__/android/findPackageClassName.spec.js | 6 ++---- .../core/__tests__/android/getDependencyConfig.spec.js | 6 ++---- .../core/__tests__/android/getProjectConfig.spec.js | 6 ++---- local-cli/core/__tests__/android/readManifest.spec.js | 6 ++---- local-cli/core/__tests__/findAssets.spec.js | 6 ++---- local-cli/core/__tests__/findPlugins.spec.js | 6 ++---- local-cli/core/__tests__/ios/findPodfilePath.spec.js | 6 ++---- local-cli/core/__tests__/ios/findPodspecName.spec.js | 6 ++---- local-cli/core/__tests__/ios/findProject.spec.js | 6 ++---- local-cli/core/__tests__/ios/getProjectConfig.spec.js | 6 ++---- local-cli/core/__tests__/makeCommand.spec.js | 6 ++---- local-cli/core/android/findAndroidAppFolder.js | 6 ++---- local-cli/core/android/findManifest.js | 6 ++---- local-cli/core/android/findPackageClassName.js | 6 ++---- local-cli/core/android/index.js | 6 ++---- local-cli/core/android/readManifest.js | 6 ++---- local-cli/core/findAssets.js | 6 ++---- local-cli/core/findPlugins.js | 6 ++---- local-cli/core/index.js | 6 ++---- local-cli/core/ios/findProject.js | 6 ++---- local-cli/core/ios/index.js | 6 ++---- local-cli/core/makeCommand.js | 6 ++---- local-cli/core/wrapCommands.js | 6 ++---- local-cli/dependencies/dependencies.js | 6 ++---- local-cli/eject/eject.js | 6 ++---- local-cli/generator/copyProjectTemplateAndReplace.js | 6 ++---- local-cli/generator/printRunInstructions.js | 6 ++---- local-cli/generator/templates.js | 6 ++---- local-cli/info/info.js | 6 ++---- local-cli/init/init.js | 6 ++---- local-cli/install/install.js | 6 ++---- local-cli/install/uninstall.js | 6 ++---- local-cli/library/library.js | 6 ++---- local-cli/link/__tests__/android/applyPatch.spec.js | 6 ++---- local-cli/link/__tests__/android/isInstalled.spec.js | 6 ++---- local-cli/link/__tests__/android/makeBuildPatch.spec.js | 6 ++---- local-cli/link/__tests__/android/makeImportPatch.spec.js | 6 ++---- .../link/__tests__/android/makePackagePatch.spec.js | 6 ++---- .../link/__tests__/android/makeSettingsPatch.spec.js | 6 ++---- .../link/__tests__/android/makeStringsPatch.spec.js | 6 ++---- local-cli/link/__tests__/getDependencyConfig.spec.js | 6 ++---- local-cli/link/__tests__/getProjectDependencies.spec.js | 6 ++---- local-cli/link/__tests__/groupFilesByType.spec.js | 6 ++---- local-cli/link/__tests__/ios/addFileToProject.spec.js | 6 ++---- .../link/__tests__/ios/addProjectToLibraries.spec.js | 6 ++---- local-cli/link/__tests__/ios/addSharedLibraries.spec.js | 6 ++---- local-cli/link/__tests__/ios/createGroup.spec.js | 6 ++---- local-cli/link/__tests__/ios/getBuildProperty.spec.js | 6 ++---- local-cli/link/__tests__/ios/getGroup.spec.js | 6 ++---- local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js | 6 ++---- local-cli/link/__tests__/ios/getHeadersInFolder.spec.js | 6 ++---- local-cli/link/__tests__/ios/getPlist.spec.js | 6 ++---- local-cli/link/__tests__/ios/getPlistPath.spec.js | 6 ++---- local-cli/link/__tests__/ios/getProducts.spec.js | 6 ++---- local-cli/link/__tests__/ios/getTargets.spec.js | 6 ++---- local-cli/link/__tests__/ios/hasLibraryImported.spec.js | 6 ++---- local-cli/link/__tests__/ios/isInstalled.spec.js | 6 ++---- .../link/__tests__/ios/mapHeaderSearchPaths.spec.js | 6 ++---- .../link/__tests__/ios/removeProjectFromLibraries.js | 6 ++---- .../link/__tests__/ios/removeProjectFromProject.spec.js | 6 ++---- local-cli/link/__tests__/ios/removeSharedLibrary.spec.js | 6 ++---- local-cli/link/__tests__/ios/writePlist.spec.js | 6 ++---- local-cli/link/__tests__/link.spec.js | 6 ++---- local-cli/link/__tests__/pods/findLineToAddPod.spec.js | 6 ++---- .../link/__tests__/pods/findMarkedLinesInPodfile.spec.js | 6 ++---- local-cli/link/__tests__/pods/findPodTargetLine.spec.js | 6 ++---- local-cli/link/__tests__/pods/isInstalled.spec.js | 6 ++---- local-cli/link/__tests__/pods/removePodEntry.spec.js | 6 ++---- local-cli/link/__tests__/promiseWaterfall.spec.js | 6 ++---- local-cli/link/android/copyAssets.js | 6 ++---- local-cli/link/android/fs.js | 6 ++---- local-cli/link/android/isInstalled.js | 6 ++---- local-cli/link/android/patches/applyParams.js | 6 ++---- local-cli/link/android/patches/applyPatch.js | 6 ++---- local-cli/link/android/patches/makeBuildPatch.js | 6 ++---- local-cli/link/android/patches/makeImportPatch.js | 6 ++---- local-cli/link/android/patches/makePackagePatch.js | 6 ++---- local-cli/link/android/patches/makeSettingsPatch.js | 6 ++---- local-cli/link/android/patches/makeStringsPatch.js | 6 ++---- local-cli/link/android/patches/revokePatch.js | 6 ++---- local-cli/link/android/registerNativeModule.js | 6 ++---- local-cli/link/android/unlinkAssets.js | 6 ++---- local-cli/link/android/unregisterNativeModule.js | 6 ++---- local-cli/link/commandStub.js | 6 ++---- local-cli/link/getDependencyConfig.js | 6 ++---- local-cli/link/getProjectDependencies.js | 6 ++---- local-cli/link/groupFilesByType.js | 6 ++---- local-cli/link/ios/addFileToProject.js | 6 ++---- local-cli/link/ios/addProjectToLibraries.js | 6 ++---- local-cli/link/ios/addSharedLibraries.js | 6 ++---- local-cli/link/ios/addToHeaderSearchPaths.js | 6 ++---- local-cli/link/ios/copyAssets.js | 6 ++---- local-cli/link/ios/createGroup.js | 6 ++---- local-cli/link/ios/createGroupWithMessage.js | 6 ++---- local-cli/link/ios/getBuildProperty.js | 6 ++---- local-cli/link/ios/getGroup.js | 6 ++---- local-cli/link/ios/getHeaderSearchPath.js | 6 ++---- local-cli/link/ios/getHeadersInFolder.js | 6 ++---- local-cli/link/ios/getPlist.js | 6 ++---- local-cli/link/ios/getPlistPath.js | 6 ++---- local-cli/link/ios/getProducts.js | 6 ++---- local-cli/link/ios/getTargets.js | 6 ++---- local-cli/link/ios/hasLibraryImported.js | 6 ++---- local-cli/link/ios/isInstalled.js | 6 ++---- local-cli/link/ios/mapHeaderSearchPaths.js | 6 ++---- local-cli/link/ios/registerNativeModule.js | 6 ++---- local-cli/link/ios/removeFromHeaderSearchPaths.js | 6 ++---- .../link/ios/removeFromPbxItemContainerProxySection.js | 6 ++---- local-cli/link/ios/removeFromPbxReferenceProxySection.js | 6 ++---- local-cli/link/ios/removeFromProjectReferences.js | 6 ++---- local-cli/link/ios/removeFromStaticLibraries.js | 6 ++---- local-cli/link/ios/removeProductGroup.js | 6 ++---- local-cli/link/ios/removeProjectFromLibraries.js | 6 ++---- local-cli/link/ios/removeProjectFromProject.js | 6 ++---- local-cli/link/ios/removeSharedLibraries.js | 6 ++---- local-cli/link/ios/unlinkAssets.js | 6 ++---- local-cli/link/ios/unregisterNativeModule.js | 6 ++---- local-cli/link/ios/writePlist.js | 6 ++---- local-cli/link/link.js | 6 ++---- local-cli/link/pods/addPodEntry.js | 6 ++---- local-cli/link/pods/findLineToAddPod.js | 6 ++---- local-cli/link/pods/findMarkedLinesInPodfile.js | 6 ++---- local-cli/link/pods/findPodTargetLine.js | 6 ++---- local-cli/link/pods/isInstalled.js | 6 ++---- local-cli/link/pods/readPodfile.js | 6 ++---- local-cli/link/pods/registerNativeModule.js | 6 ++---- local-cli/link/pods/removePodEntry.js | 6 ++---- local-cli/link/pods/savePodFile.js | 6 ++---- local-cli/link/pods/unregisterNativeModule.js | 6 ++---- local-cli/link/pollParams.js | 6 ++---- local-cli/link/promiseWaterfall.js | 6 ++---- local-cli/link/promisify.js | 6 ++---- local-cli/link/unlink.js | 6 ++---- local-cli/logAndroid/logAndroid.js | 6 ++---- local-cli/logIOS/logIOS.js | 6 ++---- local-cli/runAndroid/adb.js | 6 ++---- local-cli/runAndroid/runAndroid.js | 6 ++---- local-cli/runIOS/__tests__/findMatchingSimulator-test.js | 6 ++---- local-cli/runIOS/__tests__/findXcodeProject-test.js | 6 ++---- local-cli/runIOS/__tests__/parseIOSDevicesList-test.js | 6 ++---- local-cli/runIOS/findXcodeProject.js | 6 ++---- local-cli/runIOS/parseIOSDevicesList.js | 6 ++---- local-cli/runIOS/runIOS.js | 6 ++---- local-cli/server/checkNodeVersion.js | 6 ++---- local-cli/server/middleware/copyToClipBoardMiddleware.js | 6 ++---- local-cli/server/middleware/getDevToolsMiddleware.js | 6 ++---- local-cli/server/middleware/indexPage.js | 6 ++---- local-cli/server/middleware/loadRawBodyMiddleware.js | 6 ++---- .../middleware/openStackFrameInEditorMiddleware.js | 6 ++---- local-cli/server/middleware/statusPageMiddleware.js | 6 ++---- local-cli/server/middleware/systraceProfileMiddleware.js | 6 ++---- local-cli/server/middleware/unless.js | 6 ++---- local-cli/server/runServer.js | 6 ++---- local-cli/server/server.js | 6 ++---- local-cli/server/util/attachWebsocketServer.js | 6 ++---- local-cli/server/util/copyToClipBoard.js | 6 ++---- local-cli/server/util/debugger-ui/DeltaPatcher.js | 6 ++---- local-cli/server/util/debugger-ui/debuggerWorker.js | 6 ++---- local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js | 6 ++---- local-cli/server/util/debugger-ui/index.html | 8 +++----- local-cli/server/util/jsPackagerClient.js | 6 ++---- local-cli/server/util/launchChrome.js | 6 ++---- local-cli/server/util/launchEditor.js | 6 ++---- local-cli/server/util/messageSocket.js | 6 ++---- local-cli/server/util/webSocketProxy.js | 6 ++---- local-cli/setup_env.bat | 6 ++---- local-cli/setup_env.sh | 6 ++---- .../HelloNavigation/components/KeyboardSpacer.js | 6 ++---- .../templates/HelloWorld/ios/HelloWorld/AppDelegate.h | 6 ++---- .../templates/HelloWorld/ios/HelloWorld/AppDelegate.m | 6 ++---- local-cli/templates/HelloWorld/ios/HelloWorld/main.m | 6 ++---- .../HelloWorld/ios/HelloWorldTests/HelloWorldTests.m | 6 ++---- local-cli/upgrade/upgrade.js | 6 ++---- local-cli/util/Config.js | 6 ++---- local-cli/util/PackageManager.js | 6 ++---- local-cli/util/__mocks__/log.js | 6 ++---- local-cli/util/__tests__/findSymlinkedModules-test.js | 6 ++---- local-cli/util/assertRequiredOptions.js | 6 ++---- local-cli/util/copyAndReplace.js | 6 ++---- local-cli/util/findReactNativeScripts.js | 6 ++---- local-cli/util/findSymlinkedModules.js | 6 ++---- local-cli/util/findSymlinksPaths.js | 6 ++---- local-cli/util/isPackagerRunning.js | 6 ++---- local-cli/util/isValidPackageName.js | 6 ++---- local-cli/util/log.js | 6 ++---- local-cli/util/parseCommandLine.js | 6 ++---- local-cli/util/walk.js | 6 ++---- local-cli/util/yarn.js | 6 ++---- local-cli/wrong-react-native.js | 6 ++---- react-native-cli/index.js | 6 ++---- react-native-git-upgrade/checks.js | 6 ++---- react-native-git-upgrade/cli.js | 6 ++---- react-native-git-upgrade/cliEntry.js | 6 ++---- react-native-git-upgrade/index.js | 6 ++---- react-native-git-upgrade/yarn.js | 6 ++---- rn-cli.config.js | 6 ++---- rn-get-polyfills.js | 6 ++---- scripts/android-e2e-test.js | 6 ++---- scripts/bump-oss-version.js | 6 ++---- scripts/launchPackager.bat | 6 ++---- scripts/launchPackager.command | 6 ++---- scripts/packager.sh | 6 ++---- scripts/publish-npm.js | 6 ++---- scripts/react-native-xcode.sh | 6 ++---- scripts/run-android-ci-instrumentation-tests.js | 6 ++---- scripts/run-ci-e2e-tests.js | 6 ++---- scripts/try-n-times.js | 6 ++---- scripts/versiontemplates/RCTVersion.h.template | 6 ++---- .../versiontemplates/ReactNativeVersion.java.template | 6 ++---- scripts/versiontemplates/ReactNativeVersion.js.template | 6 ++---- setupBabel.js | 6 ++---- 2086 files changed, 4252 insertions(+), 8360 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 34a94428f2542b..96152932684a48 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -141,11 +141,9 @@ Copy and paste this to the top of your new file(s): ```JS /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ ``` diff --git a/ContainerShip/scripts/run-android-ci-instrumentation-tests.js b/ContainerShip/scripts/run-android-ci-instrumentation-tests.js index 34ee3336a168d2..706159c4902bc4 100644 --- a/ContainerShip/scripts/run-android-ci-instrumentation-tests.js +++ b/ContainerShip/scripts/run-android-ci-instrumentation-tests.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/IntegrationTests/AccessibilityManagerTest.js b/IntegrationTests/AccessibilityManagerTest.js index dfa9e9a19f289d..74dbe9ba19edab 100644 --- a/IntegrationTests/AccessibilityManagerTest.js +++ b/IntegrationTests/AccessibilityManagerTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AccessibilityManagerTest diff --git a/IntegrationTests/AppEventsTest.js b/IntegrationTests/AppEventsTest.js index 62299ec337858d..ae061e167b86d8 100644 --- a/IntegrationTests/AppEventsTest.js +++ b/IntegrationTests/AppEventsTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AppEventsTest * @flow diff --git a/IntegrationTests/AsyncStorageTest.js b/IntegrationTests/AsyncStorageTest.js index ef7df1f1f365e5..3ce0265dd8ceb0 100644 --- a/IntegrationTests/AsyncStorageTest.js +++ b/IntegrationTests/AsyncStorageTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AsyncStorageTest diff --git a/IntegrationTests/ImageCachePolicyTest.js b/IntegrationTests/ImageCachePolicyTest.js index 29b5e68d1d2117..d6fa4f544a1bf9 100644 --- a/IntegrationTests/ImageCachePolicyTest.js +++ b/IntegrationTests/ImageCachePolicyTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ImageCachePolicyTest diff --git a/IntegrationTests/ImageSnapshotTest.js b/IntegrationTests/ImageSnapshotTest.js index ccb232796927ca..8ba7734286d673 100644 --- a/IntegrationTests/ImageSnapshotTest.js +++ b/IntegrationTests/ImageSnapshotTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ImageSnapshotTest diff --git a/IntegrationTests/IntegrationTestHarnessTest.js b/IntegrationTests/IntegrationTestHarnessTest.js index 7c9f2527cabbd0..6291c915d68643 100644 --- a/IntegrationTests/IntegrationTestHarnessTest.js +++ b/IntegrationTests/IntegrationTestHarnessTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule IntegrationTestHarnessTest diff --git a/IntegrationTests/IntegrationTestsApp.js b/IntegrationTests/IntegrationTestsApp.js index 0594e289b7b145..6b255c2befe54a 100644 --- a/IntegrationTests/IntegrationTestsApp.js +++ b/IntegrationTests/IntegrationTestsApp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule IntegrationTestsApp diff --git a/IntegrationTests/LayoutEventsTest.js b/IntegrationTests/LayoutEventsTest.js index ab7bc6040d113d..769ff98f6be8b5 100644 --- a/IntegrationTests/LayoutEventsTest.js +++ b/IntegrationTests/LayoutEventsTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LayoutEventsTest * @flow diff --git a/IntegrationTests/LoggingTestModule.js b/IntegrationTests/LoggingTestModule.js index ec07f3271bf700..25b409353ce1d4 100644 --- a/IntegrationTests/LoggingTestModule.js +++ b/IntegrationTests/LoggingTestModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LoggingTestModule */ diff --git a/IntegrationTests/PromiseTest.js b/IntegrationTests/PromiseTest.js index 9cf8651e3a3511..f6a81e3d6d5d16 100644 --- a/IntegrationTests/PromiseTest.js +++ b/IntegrationTests/PromiseTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule PromiseTest diff --git a/IntegrationTests/PropertiesUpdateTest.js b/IntegrationTests/PropertiesUpdateTest.js index a279c5aed0af08..623dc82c8ee94b 100644 --- a/IntegrationTests/PropertiesUpdateTest.js +++ b/IntegrationTests/PropertiesUpdateTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * @providesModule PropertiesUpdateTest */ 'use strict'; diff --git a/IntegrationTests/RCTRootViewIntegrationTestApp.js b/IntegrationTests/RCTRootViewIntegrationTestApp.js index 3793938d7e5adf..a97873d2c3224e 100644 --- a/IntegrationTests/RCTRootViewIntegrationTestApp.js +++ b/IntegrationTests/RCTRootViewIntegrationTestApp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTRootViewIntegrationTestApp */ diff --git a/IntegrationTests/ReactContentSizeUpdateTest.js b/IntegrationTests/ReactContentSizeUpdateTest.js index 3524ef92ed385e..c5f5ae80c246b0 100644 --- a/IntegrationTests/ReactContentSizeUpdateTest.js +++ b/IntegrationTests/ReactContentSizeUpdateTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * @providesModule ReactContentSizeUpdateTest */ 'use strict'; diff --git a/IntegrationTests/SimpleSnapshotTest.js b/IntegrationTests/SimpleSnapshotTest.js index 3998118dda8f6e..1c0be2a431d469 100644 --- a/IntegrationTests/SimpleSnapshotTest.js +++ b/IntegrationTests/SimpleSnapshotTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SimpleSnapshotTest diff --git a/IntegrationTests/SizeFlexibilityUpdateTest.js b/IntegrationTests/SizeFlexibilityUpdateTest.js index 77895f40006498..679694a0d631ce 100644 --- a/IntegrationTests/SizeFlexibilityUpdateTest.js +++ b/IntegrationTests/SizeFlexibilityUpdateTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * @providesModule SizeFlexibilityUpdateTest */ 'use strict'; diff --git a/IntegrationTests/SyncMethodTest.js b/IntegrationTests/SyncMethodTest.js index 76bb70a81f41d7..6318eaa4f14282 100644 --- a/IntegrationTests/SyncMethodTest.js +++ b/IntegrationTests/SyncMethodTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SyncMethodTest diff --git a/IntegrationTests/TimersTest.js b/IntegrationTests/TimersTest.js index ddd052081cffd4..23da99dc6edbdc 100644 --- a/IntegrationTests/TimersTest.js +++ b/IntegrationTests/TimersTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TimersTest diff --git a/IntegrationTests/WebSocketTest.js b/IntegrationTests/WebSocketTest.js index 78d00701b53683..6e459f913babc3 100644 --- a/IntegrationTests/WebSocketTest.js +++ b/IntegrationTests/WebSocketTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule WebSocketTest diff --git a/IntegrationTests/WebViewTest.js b/IntegrationTests/WebViewTest.js index c0381c639a8256..a41e244b58be3a 100644 --- a/IntegrationTests/WebViewTest.js +++ b/IntegrationTests/WebViewTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebViewTest */ diff --git a/IntegrationTests/launchWebSocketServer.command b/IntegrationTests/launchWebSocketServer.command index ebb305dc150326..a6531c5f8d78b2 100755 --- a/IntegrationTests/launchWebSocketServer.command +++ b/IntegrationTests/launchWebSocketServer.command @@ -1,11 +1,9 @@ #!/usr/bin/env bash # 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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. # Set terminal title echo -en "\033]0;Web Socket Test Server\a" diff --git a/IntegrationTests/websocket_integration_test_server.js b/IntegrationTests/websocket_integration_test_server.js index b7887f1c5e3753..e338d85ae3b89d 100755 --- a/IntegrationTests/websocket_integration_test_server.js +++ b/IntegrationTests/websocket_integration_test_server.js @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule websocket_integration_test_server diff --git a/Libraries/ART/ARTCGFloatArray.h b/Libraries/ART/ARTCGFloatArray.h index 9d748549973d30..72286a50527e84 100644 --- a/Libraries/ART/ARTCGFloatArray.h +++ b/Libraries/ART/ARTCGFloatArray.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ // A little helper to make sure we have the right memory allocation ready for use. diff --git a/Libraries/ART/ARTContainer.h b/Libraries/ART/ARTContainer.h index d83f7ae1a559f8..532145825bd74b 100644 --- a/Libraries/ART/ARTContainer.h +++ b/Libraries/ART/ARTContainer.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTGroup.h b/Libraries/ART/ARTGroup.h index 4d94a9acded24b..d9dcb48c87b180 100644 --- a/Libraries/ART/ARTGroup.h +++ b/Libraries/ART/ARTGroup.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTGroup.m b/Libraries/ART/ARTGroup.m index 672c3b6ebeb9f8..1bc70725c030e8 100644 --- a/Libraries/ART/ARTGroup.m +++ b/Libraries/ART/ARTGroup.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTGroup.h" diff --git a/Libraries/ART/ARTNode.h b/Libraries/ART/ARTNode.h index 0ade1f21b57a6c..8b66c205ef2440 100644 --- a/Libraries/ART/ARTNode.h +++ b/Libraries/ART/ARTNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTNode.m b/Libraries/ART/ARTNode.m index 38b01a0c56c449..b27b014b9e7d0e 100644 --- a/Libraries/ART/ARTNode.m +++ b/Libraries/ART/ARTNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTNode.h" diff --git a/Libraries/ART/ARTRenderable.h b/Libraries/ART/ARTRenderable.h index 8eae9c25ae4a70..e5735a1fbd81ef 100644 --- a/Libraries/ART/ARTRenderable.h +++ b/Libraries/ART/ARTRenderable.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTRenderable.m b/Libraries/ART/ARTRenderable.m index 7ba9a9a6073915..d7a3115586f3dd 100644 --- a/Libraries/ART/ARTRenderable.m +++ b/Libraries/ART/ARTRenderable.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTRenderable.h" diff --git a/Libraries/ART/ARTSerializablePath.js b/Libraries/ART/ARTSerializablePath.js index 4e8b3c2271a6c7..7f52bc6540eda2 100644 --- a/Libraries/ART/ARTSerializablePath.js +++ b/Libraries/ART/ARTSerializablePath.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ARTSerializablePath */ diff --git a/Libraries/ART/ARTShape.h b/Libraries/ART/ARTShape.h index 7d13c268f6e802..ce685c564b06be 100644 --- a/Libraries/ART/ARTShape.h +++ b/Libraries/ART/ARTShape.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTShape.m b/Libraries/ART/ARTShape.m index c07d68e62aa4a3..935c8894994a2b 100644 --- a/Libraries/ART/ARTShape.m +++ b/Libraries/ART/ARTShape.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTShape.h" diff --git a/Libraries/ART/ARTSurfaceView.h b/Libraries/ART/ARTSurfaceView.h index 8be8d95040c146..cb42928cedbe12 100644 --- a/Libraries/ART/ARTSurfaceView.h +++ b/Libraries/ART/ARTSurfaceView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTSurfaceView.m b/Libraries/ART/ARTSurfaceView.m index 16e2029083de59..c8f46069038603 100644 --- a/Libraries/ART/ARTSurfaceView.m +++ b/Libraries/ART/ARTSurfaceView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTSurfaceView.h" diff --git a/Libraries/ART/ARTText.h b/Libraries/ART/ARTText.h index ee976e329a46e8..cdf8393a137629 100644 --- a/Libraries/ART/ARTText.h +++ b/Libraries/ART/ARTText.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ARTText.m b/Libraries/ART/ARTText.m index dfffde26546656..0953c850dc293e 100644 --- a/Libraries/ART/ARTText.m +++ b/Libraries/ART/ARTText.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTText.h" diff --git a/Libraries/ART/ARTTextFrame.h b/Libraries/ART/ARTTextFrame.h index 1f6b557bfc77af..8ad06e0a01baed 100644 --- a/Libraries/ART/ARTTextFrame.h +++ b/Libraries/ART/ARTTextFrame.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/Brushes/ARTBrush.h b/Libraries/ART/Brushes/ARTBrush.h index 05020dd7bafa26..95709e65f19bc9 100644 --- a/Libraries/ART/Brushes/ARTBrush.h +++ b/Libraries/ART/Brushes/ARTBrush.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/Brushes/ARTBrush.m b/Libraries/ART/Brushes/ARTBrush.m index 1cc762b650f04a..4ade2c221143f7 100644 --- a/Libraries/ART/Brushes/ARTBrush.m +++ b/Libraries/ART/Brushes/ARTBrush.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTBrush.h" diff --git a/Libraries/ART/Brushes/ARTLinearGradient.h b/Libraries/ART/Brushes/ARTLinearGradient.h index d7ff2e5684458f..8e6abbc5fbbfde 100644 --- a/Libraries/ART/Brushes/ARTLinearGradient.h +++ b/Libraries/ART/Brushes/ARTLinearGradient.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTBrush.h" diff --git a/Libraries/ART/Brushes/ARTLinearGradient.m b/Libraries/ART/Brushes/ARTLinearGradient.m index f8412163b319c0..1415a6ffcbc80f 100644 --- a/Libraries/ART/Brushes/ARTLinearGradient.m +++ b/Libraries/ART/Brushes/ARTLinearGradient.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTLinearGradient.h" diff --git a/Libraries/ART/Brushes/ARTPattern.h b/Libraries/ART/Brushes/ARTPattern.h index 5f513ec60e2ae6..ce1767cc9b0bc8 100644 --- a/Libraries/ART/Brushes/ARTPattern.h +++ b/Libraries/ART/Brushes/ARTPattern.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTBrush.h" diff --git a/Libraries/ART/Brushes/ARTPattern.m b/Libraries/ART/Brushes/ARTPattern.m index 0d720613b80182..5c43586452d198 100644 --- a/Libraries/ART/Brushes/ARTPattern.m +++ b/Libraries/ART/Brushes/ARTPattern.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTPattern.h" diff --git a/Libraries/ART/Brushes/ARTRadialGradient.h b/Libraries/ART/Brushes/ARTRadialGradient.h index 7f86d93058ce80..d7895f8b74d084 100644 --- a/Libraries/ART/Brushes/ARTRadialGradient.h +++ b/Libraries/ART/Brushes/ARTRadialGradient.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTBrush.h" diff --git a/Libraries/ART/Brushes/ARTRadialGradient.m b/Libraries/ART/Brushes/ARTRadialGradient.m index 1dd449595316e7..19db9cb97b567a 100644 --- a/Libraries/ART/Brushes/ARTRadialGradient.m +++ b/Libraries/ART/Brushes/ARTRadialGradient.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTRadialGradient.h" diff --git a/Libraries/ART/Brushes/ARTSolidColor.h b/Libraries/ART/Brushes/ARTSolidColor.h index f212c735680f60..a16c2b915c72f8 100644 --- a/Libraries/ART/Brushes/ARTSolidColor.h +++ b/Libraries/ART/Brushes/ARTSolidColor.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTBrush.h" diff --git a/Libraries/ART/Brushes/ARTSolidColor.m b/Libraries/ART/Brushes/ARTSolidColor.m index 900621cfb4ea3c..096c4e043ed429 100644 --- a/Libraries/ART/Brushes/ARTSolidColor.m +++ b/Libraries/ART/Brushes/ARTSolidColor.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTSolidColor.h" diff --git a/Libraries/ART/RCTConvert+ART.h b/Libraries/ART/RCTConvert+ART.h index ef46e4e9341e3c..1deb3c600176ab 100644 --- a/Libraries/ART/RCTConvert+ART.h +++ b/Libraries/ART/RCTConvert+ART.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/RCTConvert+ART.m b/Libraries/ART/RCTConvert+ART.m index 6135dc4f4fd250..ea22d5426f18f9 100644 --- a/Libraries/ART/RCTConvert+ART.m +++ b/Libraries/ART/RCTConvert+ART.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert+ART.h" diff --git a/Libraries/ART/ReactNativeART.js b/Libraries/ART/ReactNativeART.js index 4a56d0275822ee..7d9f1b59063459 100644 --- a/Libraries/ART/ReactNativeART.js +++ b/Libraries/ART/ReactNativeART.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactNativeART */ diff --git a/Libraries/ART/ViewManagers/ARTGroupManager.h b/Libraries/ART/ViewManagers/ARTGroupManager.h index 0a90eb3d6c18c9..a35e09481be639 100644 --- a/Libraries/ART/ViewManagers/ARTGroupManager.h +++ b/Libraries/ART/ViewManagers/ARTGroupManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTNodeManager.h" diff --git a/Libraries/ART/ViewManagers/ARTGroupManager.m b/Libraries/ART/ViewManagers/ARTGroupManager.m index 8b277641588803..2de0d0e5688739 100644 --- a/Libraries/ART/ViewManagers/ARTGroupManager.m +++ b/Libraries/ART/ViewManagers/ARTGroupManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTGroupManager.h" diff --git a/Libraries/ART/ViewManagers/ARTNodeManager.h b/Libraries/ART/ViewManagers/ARTNodeManager.h index 22f2ef166b24cf..3a8f99e7abdc7a 100644 --- a/Libraries/ART/ViewManagers/ARTNodeManager.h +++ b/Libraries/ART/ViewManagers/ARTNodeManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ViewManagers/ARTNodeManager.m b/Libraries/ART/ViewManagers/ARTNodeManager.m index 3c697c129783aa..8e568ce6d8efd4 100644 --- a/Libraries/ART/ViewManagers/ARTNodeManager.m +++ b/Libraries/ART/ViewManagers/ARTNodeManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTNodeManager.h" diff --git a/Libraries/ART/ViewManagers/ARTRenderableManager.h b/Libraries/ART/ViewManagers/ARTRenderableManager.h index 376fcf518b3293..1e4b554f0f79f7 100644 --- a/Libraries/ART/ViewManagers/ARTRenderableManager.h +++ b/Libraries/ART/ViewManagers/ARTRenderableManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTNodeManager.h" diff --git a/Libraries/ART/ViewManagers/ARTRenderableManager.m b/Libraries/ART/ViewManagers/ARTRenderableManager.m index aaed2e31d11179..a30841b50c1046 100644 --- a/Libraries/ART/ViewManagers/ARTRenderableManager.m +++ b/Libraries/ART/ViewManagers/ARTRenderableManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTRenderableManager.h" diff --git a/Libraries/ART/ViewManagers/ARTShapeManager.h b/Libraries/ART/ViewManagers/ARTShapeManager.h index d6bc76baa09fdb..2f31b23a0eab10 100644 --- a/Libraries/ART/ViewManagers/ARTShapeManager.h +++ b/Libraries/ART/ViewManagers/ARTShapeManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTRenderableManager.h" diff --git a/Libraries/ART/ViewManagers/ARTShapeManager.m b/Libraries/ART/ViewManagers/ARTShapeManager.m index 3997586d18e4d1..57b603ca1a16b6 100644 --- a/Libraries/ART/ViewManagers/ARTShapeManager.m +++ b/Libraries/ART/ViewManagers/ARTShapeManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTShapeManager.h" diff --git a/Libraries/ART/ViewManagers/ARTSurfaceViewManager.h b/Libraries/ART/ViewManagers/ARTSurfaceViewManager.h index fc36435edb7707..5915536bd6f917 100644 --- a/Libraries/ART/ViewManagers/ARTSurfaceViewManager.h +++ b/Libraries/ART/ViewManagers/ARTSurfaceViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ART/ViewManagers/ARTSurfaceViewManager.m b/Libraries/ART/ViewManagers/ARTSurfaceViewManager.m index 10772b72c7f23d..54052a331d4585 100644 --- a/Libraries/ART/ViewManagers/ARTSurfaceViewManager.m +++ b/Libraries/ART/ViewManagers/ARTSurfaceViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTSurfaceViewManager.h" diff --git a/Libraries/ART/ViewManagers/ARTTextManager.h b/Libraries/ART/ViewManagers/ARTTextManager.h index 48da9c891f4757..c7d5304da3a3eb 100644 --- a/Libraries/ART/ViewManagers/ARTTextManager.h +++ b/Libraries/ART/ViewManagers/ARTTextManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTRenderableManager.h" diff --git a/Libraries/ART/ViewManagers/ARTTextManager.m b/Libraries/ART/ViewManagers/ARTTextManager.m index 430f26db537ab1..ac6688c3d925b9 100644 --- a/Libraries/ART/ViewManagers/ARTTextManager.m +++ b/Libraries/ART/ViewManagers/ARTTextManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "ARTTextManager.h" diff --git a/Libraries/ActionSheetIOS/ActionSheetIOS.js b/Libraries/ActionSheetIOS/ActionSheetIOS.js index 9797b47b36e51c..23db7680ab34e1 100644 --- a/Libraries/ActionSheetIOS/ActionSheetIOS.js +++ b/Libraries/ActionSheetIOS/ActionSheetIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ActionSheetIOS * @flow diff --git a/Libraries/ActionSheetIOS/RCTActionSheetManager.h b/Libraries/ActionSheetIOS/RCTActionSheetManager.h index 313939149fd1a6..b9a5b2df7329a1 100644 --- a/Libraries/ActionSheetIOS/RCTActionSheetManager.h +++ b/Libraries/ActionSheetIOS/RCTActionSheetManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/ActionSheetIOS/RCTActionSheetManager.m b/Libraries/ActionSheetIOS/RCTActionSheetManager.m index 9f550f77af32a4..91f047323769c7 100644 --- a/Libraries/ActionSheetIOS/RCTActionSheetManager.m +++ b/Libraries/ActionSheetIOS/RCTActionSheetManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTActionSheetManager.h" diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 3f2e2379eeb44a..7c775fddf7ece5 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Alert * @flow diff --git a/Libraries/Alert/AlertIOS.js b/Libraries/Alert/AlertIOS.js index 8f4170a5a616fb..25dff6f34d4d81 100644 --- a/Libraries/Alert/AlertIOS.js +++ b/Libraries/Alert/AlertIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AlertIOS * @flow diff --git a/Libraries/Alert/RCTAlertManager.android.js b/Libraries/Alert/RCTAlertManager.android.js index f8ad604e16da60..f819b55e1b3d1f 100644 --- a/Libraries/Alert/RCTAlertManager.android.js +++ b/Libraries/Alert/RCTAlertManager.android.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTAlertManager */ diff --git a/Libraries/Alert/RCTAlertManager.ios.js b/Libraries/Alert/RCTAlertManager.ios.js index 409ecf5caf0430..3aef740abed4d5 100644 --- a/Libraries/Alert/RCTAlertManager.ios.js +++ b/Libraries/Alert/RCTAlertManager.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTAlertManager * @flow diff --git a/Libraries/Animated/release/gulpfile.js b/Libraries/Animated/release/gulpfile.js index 3d2a52c4a40405..5787276888a516 100644 --- a/Libraries/Animated/release/gulpfile.js +++ b/Libraries/Animated/release/gulpfile.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * @providesModule gulpfile */ diff --git a/Libraries/Animated/src/Animated.js b/Libraries/Animated/src/Animated.js index 1eacd03c48c66e..cfe2be06876811 100644 --- a/Libraries/Animated/src/Animated.js +++ b/Libraries/Animated/src/Animated.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Animated * @flow diff --git a/Libraries/Animated/src/AnimatedEvent.js b/Libraries/Animated/src/AnimatedEvent.js index 206516f5d96a95..f9300feb4e79ea 100644 --- a/Libraries/Animated/src/AnimatedEvent.js +++ b/Libraries/Animated/src/AnimatedEvent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedEvent * @flow diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index 08d69c3bd80eca..b23a44db0e4fc7 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/Libraries/Animated/src/AnimatedImplementation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedImplementation * @flow diff --git a/Libraries/Animated/src/AnimatedWeb.js b/Libraries/Animated/src/AnimatedWeb.js index b88acb940bd65b..f3af397b740931 100644 --- a/Libraries/Animated/src/AnimatedWeb.js +++ b/Libraries/Animated/src/AnimatedWeb.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AnimatedWeb diff --git a/Libraries/Animated/src/Easing.js b/Libraries/Animated/src/Easing.js index 6cad73c334ccbe..f5c00fd813f7dc 100644 --- a/Libraries/Animated/src/Easing.js +++ b/Libraries/Animated/src/Easing.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Easing * @flow diff --git a/Libraries/Animated/src/NativeAnimatedHelper.js b/Libraries/Animated/src/NativeAnimatedHelper.js index 6bebbe427cb50e..5765dcfc63b829 100644 --- a/Libraries/Animated/src/NativeAnimatedHelper.js +++ b/Libraries/Animated/src/NativeAnimatedHelper.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NativeAnimatedHelper * @flow diff --git a/Libraries/Animated/src/SpringConfig.js b/Libraries/Animated/src/SpringConfig.js index e74d167efecedc..5b476f6723469e 100644 --- a/Libraries/Animated/src/SpringConfig.js +++ b/Libraries/Animated/src/SpringConfig.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SpringConfig * @flow diff --git a/Libraries/Animated/src/__tests__/Animated-test.js b/Libraries/Animated/src/__tests__/Animated-test.js index c8f2b94223df26..d6409d7f8a9224 100644 --- a/Libraries/Animated/src/__tests__/Animated-test.js +++ b/Libraries/Animated/src/__tests__/Animated-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Animated/src/__tests__/AnimatedNative-test.js b/Libraries/Animated/src/__tests__/AnimatedNative-test.js index 62c40c8388d79b..77306dd8fffd05 100644 --- a/Libraries/Animated/src/__tests__/AnimatedNative-test.js +++ b/Libraries/Animated/src/__tests__/AnimatedNative-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Animated/src/__tests__/Easing-test.js b/Libraries/Animated/src/__tests__/Easing-test.js index 048fdb711d3a49..14f18aacd628e0 100644 --- a/Libraries/Animated/src/__tests__/Easing-test.js +++ b/Libraries/Animated/src/__tests__/Easing-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Animated/src/__tests__/Interpolation-test.js b/Libraries/Animated/src/__tests__/Interpolation-test.js index e95365423cb09b..27f4438ab1568d 100644 --- a/Libraries/Animated/src/__tests__/Interpolation-test.js +++ b/Libraries/Animated/src/__tests__/Interpolation-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Animated/src/animations/Animation.js b/Libraries/Animated/src/animations/Animation.js index 90ea28196ed014..000e44d77f9bc8 100644 --- a/Libraries/Animated/src/animations/Animation.js +++ b/Libraries/Animated/src/animations/Animation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Animation * @flow diff --git a/Libraries/Animated/src/animations/DecayAnimation.js b/Libraries/Animated/src/animations/DecayAnimation.js index 652bd9c9d3b708..7df0e104b72f48 100644 --- a/Libraries/Animated/src/animations/DecayAnimation.js +++ b/Libraries/Animated/src/animations/DecayAnimation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DecayAnimation * @flow diff --git a/Libraries/Animated/src/animations/SpringAnimation.js b/Libraries/Animated/src/animations/SpringAnimation.js index 67dee081b81b6a..8b6f96fe67bdb6 100644 --- a/Libraries/Animated/src/animations/SpringAnimation.js +++ b/Libraries/Animated/src/animations/SpringAnimation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SpringAnimation * @flow diff --git a/Libraries/Animated/src/animations/TimingAnimation.js b/Libraries/Animated/src/animations/TimingAnimation.js index a3db014fe1190c..1b6a4ae94cd9b0 100644 --- a/Libraries/Animated/src/animations/TimingAnimation.js +++ b/Libraries/Animated/src/animations/TimingAnimation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TimingAnimation * @flow diff --git a/Libraries/Animated/src/createAnimatedComponent.js b/Libraries/Animated/src/createAnimatedComponent.js index 42110be681988c..357ee0bd59bcd1 100644 --- a/Libraries/Animated/src/createAnimatedComponent.js +++ b/Libraries/Animated/src/createAnimatedComponent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule createAnimatedComponent * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedAddition.js b/Libraries/Animated/src/nodes/AnimatedAddition.js index 53d338836ecf8b..2e3453965565f0 100644 --- a/Libraries/Animated/src/nodes/AnimatedAddition.js +++ b/Libraries/Animated/src/nodes/AnimatedAddition.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedAddition * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedDiffClamp.js b/Libraries/Animated/src/nodes/AnimatedDiffClamp.js index eac26a10271b53..0f64e75c723c06 100644 --- a/Libraries/Animated/src/nodes/AnimatedDiffClamp.js +++ b/Libraries/Animated/src/nodes/AnimatedDiffClamp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedDiffClamp * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedDivision.js b/Libraries/Animated/src/nodes/AnimatedDivision.js index 8d658f458a5463..606e63937b9a86 100644 --- a/Libraries/Animated/src/nodes/AnimatedDivision.js +++ b/Libraries/Animated/src/nodes/AnimatedDivision.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedDivision * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedInterpolation.js b/Libraries/Animated/src/nodes/AnimatedInterpolation.js index 141929e5be1020..eb4cc5d6995d77 100644 --- a/Libraries/Animated/src/nodes/AnimatedInterpolation.js +++ b/Libraries/Animated/src/nodes/AnimatedInterpolation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedInterpolation * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedModulo.js b/Libraries/Animated/src/nodes/AnimatedModulo.js index 3ff75e737216da..24cd3f0b077c12 100644 --- a/Libraries/Animated/src/nodes/AnimatedModulo.js +++ b/Libraries/Animated/src/nodes/AnimatedModulo.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedModulo * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedMultiplication.js b/Libraries/Animated/src/nodes/AnimatedMultiplication.js index d30ce2594a1675..dc01f7f17127f1 100644 --- a/Libraries/Animated/src/nodes/AnimatedMultiplication.js +++ b/Libraries/Animated/src/nodes/AnimatedMultiplication.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedMultiplication * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedNode.js b/Libraries/Animated/src/nodes/AnimatedNode.js index c29f4b7f1a80b0..e75cfaf0e5c8fb 100644 --- a/Libraries/Animated/src/nodes/AnimatedNode.js +++ b/Libraries/Animated/src/nodes/AnimatedNode.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedNode * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedProps.js b/Libraries/Animated/src/nodes/AnimatedProps.js index 0b9f6508d1526d..78cd11189edfa7 100644 --- a/Libraries/Animated/src/nodes/AnimatedProps.js +++ b/Libraries/Animated/src/nodes/AnimatedProps.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedProps * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedStyle.js b/Libraries/Animated/src/nodes/AnimatedStyle.js index f2cdf31dfdea0a..c7bb24e3b42b14 100644 --- a/Libraries/Animated/src/nodes/AnimatedStyle.js +++ b/Libraries/Animated/src/nodes/AnimatedStyle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedStyle * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedTracking.js b/Libraries/Animated/src/nodes/AnimatedTracking.js index 0ec517d12bd560..cf20d6e8bbf3fc 100644 --- a/Libraries/Animated/src/nodes/AnimatedTracking.js +++ b/Libraries/Animated/src/nodes/AnimatedTracking.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedTracking * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedTransform.js b/Libraries/Animated/src/nodes/AnimatedTransform.js index c95aa16f699d2b..fd5049e9b8d8af 100644 --- a/Libraries/Animated/src/nodes/AnimatedTransform.js +++ b/Libraries/Animated/src/nodes/AnimatedTransform.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedTransform * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedValue.js b/Libraries/Animated/src/nodes/AnimatedValue.js index d5a5de9a9e48c7..862d25f8e53a28 100644 --- a/Libraries/Animated/src/nodes/AnimatedValue.js +++ b/Libraries/Animated/src/nodes/AnimatedValue.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedValue * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedValueXY.js b/Libraries/Animated/src/nodes/AnimatedValueXY.js index 13aee1e50d1cde..52c207c0f42ffe 100644 --- a/Libraries/Animated/src/nodes/AnimatedValueXY.js +++ b/Libraries/Animated/src/nodes/AnimatedValueXY.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedValueXY * @flow diff --git a/Libraries/Animated/src/nodes/AnimatedWithChildren.js b/Libraries/Animated/src/nodes/AnimatedWithChildren.js index 4676437a9eae47..1f58cd834e165e 100644 --- a/Libraries/Animated/src/nodes/AnimatedWithChildren.js +++ b/Libraries/Animated/src/nodes/AnimatedWithChildren.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnimatedWithChildren * @flow diff --git a/Libraries/Animated/src/polyfills/InteractionManager.js b/Libraries/Animated/src/polyfills/InteractionManager.js index db45ede6426fd0..c063e9234b3df1 100644 --- a/Libraries/Animated/src/polyfills/InteractionManager.js +++ b/Libraries/Animated/src/polyfills/InteractionManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/Libraries/Animated/src/polyfills/Set.js b/Libraries/Animated/src/polyfills/Set.js index 988f0b3f13ff21..fd071410d42395 100644 --- a/Libraries/Animated/src/polyfills/Set.js +++ b/Libraries/Animated/src/polyfills/Set.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/Libraries/Animated/src/polyfills/flattenStyle.js b/Libraries/Animated/src/polyfills/flattenStyle.js index 42a68020c6539c..2e4c8a1d36b476 100644 --- a/Libraries/Animated/src/polyfills/flattenStyle.js +++ b/Libraries/Animated/src/polyfills/flattenStyle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = function(style) { diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index ebdb6d54913bb4..3fc13c5888d33e 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AppState * @flow diff --git a/Libraries/BatchedBridge/BatchedBridge.js b/Libraries/BatchedBridge/BatchedBridge.js index 46e8b5f41052a8..bfc6862cb83551 100644 --- a/Libraries/BatchedBridge/BatchedBridge.js +++ b/Libraries/BatchedBridge/BatchedBridge.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BatchedBridge * @flow diff --git a/Libraries/BatchedBridge/MessageQueue.js b/Libraries/BatchedBridge/MessageQueue.js index 4309de35519cf6..428d388173989e 100644 --- a/Libraries/BatchedBridge/MessageQueue.js +++ b/Libraries/BatchedBridge/MessageQueue.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MessageQueue * @flow diff --git a/Libraries/BatchedBridge/NativeModules.js b/Libraries/BatchedBridge/NativeModules.js index 2bf0f26c875119..324c4f6e995bdd 100644 --- a/Libraries/BatchedBridge/NativeModules.js +++ b/Libraries/BatchedBridge/NativeModules.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NativeModules * @flow diff --git a/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js b/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js index 09ec56663b5c46..40ad81f5f5cb5f 100644 --- a/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +++ b/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * These don't actually exist anywhere in the code. */ diff --git a/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js b/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js index 380bacf65e2c66..8c4f7d3c03063f 100644 --- a/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +++ b/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ 'use strict'; diff --git a/Libraries/BatchedBridge/__tests__/MessageQueue-test.js b/Libraries/BatchedBridge/__tests__/MessageQueue-test.js index 106821dd2fcffe..ecf60bcd0455cc 100644 --- a/Libraries/BatchedBridge/__tests__/MessageQueue-test.js +++ b/Libraries/BatchedBridge/__tests__/MessageQueue-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native * @format diff --git a/Libraries/BatchedBridge/__tests__/NativeModules-test.js b/Libraries/BatchedBridge/__tests__/NativeModules-test.js index 88435513e72966..b9cc2411d29512 100644 --- a/Libraries/BatchedBridge/__tests__/NativeModules-test.js +++ b/Libraries/BatchedBridge/__tests__/NativeModules-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Blob/Blob.js b/Libraries/Blob/Blob.js index 3f077a05d71fc1..eca13a6a309e8f 100644 --- a/Libraries/Blob/Blob.js +++ b/Libraries/Blob/Blob.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Blob * @flow diff --git a/Libraries/Blob/BlobManager.js b/Libraries/Blob/BlobManager.js index a1cf9b489e6007..dd7cc00eabc652 100644 --- a/Libraries/Blob/BlobManager.js +++ b/Libraries/Blob/BlobManager.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BlobManager * @flow diff --git a/Libraries/Blob/BlobRegistry.js b/Libraries/Blob/BlobRegistry.js index 925e78f3a78453..330c1659ae4235 100644 --- a/Libraries/Blob/BlobRegistry.js +++ b/Libraries/Blob/BlobRegistry.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BlobRegistry * @flow diff --git a/Libraries/Blob/BlobTypes.js b/Libraries/Blob/BlobTypes.js index c053c08cfc8deb..8e895d9006108f 100644 --- a/Libraries/Blob/BlobTypes.js +++ b/Libraries/Blob/BlobTypes.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BlobTypes * @flow diff --git a/Libraries/Blob/File.js b/Libraries/Blob/File.js index 8e999b20f41dd0..f5b03d85f7f178 100644 --- a/Libraries/Blob/File.js +++ b/Libraries/Blob/File.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule File * @flow diff --git a/Libraries/Blob/FileReader.js b/Libraries/Blob/FileReader.js index 121f7ef76caa21..b3ed89dc9318e6 100644 --- a/Libraries/Blob/FileReader.js +++ b/Libraries/Blob/FileReader.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FileReader * @flow diff --git a/Libraries/Blob/RCTBlobManager.h b/Libraries/Blob/RCTBlobManager.h index 8e8d355f60b7ac..24b589ef987ae5 100755 --- a/Libraries/Blob/RCTBlobManager.h +++ b/Libraries/Blob/RCTBlobManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Blob/RCTBlobManager.mm b/Libraries/Blob/RCTBlobManager.mm index aa45072553dcbe..56235ee04b6dfe 100755 --- a/Libraries/Blob/RCTBlobManager.mm +++ b/Libraries/Blob/RCTBlobManager.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBlobManager.h" diff --git a/Libraries/Blob/RCTFileReaderModule.h b/Libraries/Blob/RCTFileReaderModule.h index 8728c7c3dc0b67..72d224b0d968cb 100644 --- a/Libraries/Blob/RCTFileReaderModule.h +++ b/Libraries/Blob/RCTFileReaderModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Blob/RCTFileReaderModule.m b/Libraries/Blob/RCTFileReaderModule.m index debbae8cbd771b..5059e0b84180ee 100644 --- a/Libraries/Blob/RCTFileReaderModule.m +++ b/Libraries/Blob/RCTFileReaderModule.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ diff --git a/Libraries/Blob/URL.js b/Libraries/Blob/URL.js index 8b761ca708ce0b..7349f7752f268c 100644 --- a/Libraries/Blob/URL.js +++ b/Libraries/Blob/URL.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule URL * @format diff --git a/Libraries/Blob/__mocks__/BlobModule.js b/Libraries/Blob/__mocks__/BlobModule.js index 1cbda950883312..2542c3a9339adc 100644 --- a/Libraries/Blob/__mocks__/BlobModule.js +++ b/Libraries/Blob/__mocks__/BlobModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/Libraries/Blob/__mocks__/FileReaderModule.js b/Libraries/Blob/__mocks__/FileReaderModule.js index d4b35e00c24cc2..f5ccc39d36e200 100644 --- a/Libraries/Blob/__mocks__/FileReaderModule.js +++ b/Libraries/Blob/__mocks__/FileReaderModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/Libraries/Blob/__tests__/Blob-test.js b/Libraries/Blob/__tests__/Blob-test.js index 85532c819494f9..8d37915720c9b3 100644 --- a/Libraries/Blob/__tests__/Blob-test.js +++ b/Libraries/Blob/__tests__/Blob-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native diff --git a/Libraries/Blob/__tests__/BlobManager-test.js b/Libraries/Blob/__tests__/BlobManager-test.js index 6422861b0d2780..2ed118b446be1c 100644 --- a/Libraries/Blob/__tests__/BlobManager-test.js +++ b/Libraries/Blob/__tests__/BlobManager-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native diff --git a/Libraries/Blob/__tests__/File-test.js b/Libraries/Blob/__tests__/File-test.js index 99957873242ff6..d466d61b8b3502 100644 --- a/Libraries/Blob/__tests__/File-test.js +++ b/Libraries/Blob/__tests__/File-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native diff --git a/Libraries/Blob/__tests__/FileReader-test.js b/Libraries/Blob/__tests__/FileReader-test.js index 58a0e92f6218f7..a278a4918a9d10 100644 --- a/Libraries/Blob/__tests__/FileReader-test.js +++ b/Libraries/Blob/__tests__/FileReader-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native diff --git a/Libraries/BugReporting/BugReporting.js b/Libraries/BugReporting/BugReporting.js index bf795899139a69..11a59e6d5222ca 100644 --- a/Libraries/BugReporting/BugReporting.js +++ b/Libraries/BugReporting/BugReporting.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BugReporting * @flow diff --git a/Libraries/BugReporting/dumpReactTree.js b/Libraries/BugReporting/dumpReactTree.js index 88a5b7f8ffbe2e..f8a137ceff7f2c 100644 --- a/Libraries/BugReporting/dumpReactTree.js +++ b/Libraries/BugReporting/dumpReactTree.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule dumpReactTree * @flow diff --git a/Libraries/BugReporting/getReactData.js b/Libraries/BugReporting/getReactData.js index 18f4b0888f846a..53c8fb6ccfc110 100644 --- a/Libraries/BugReporting/getReactData.js +++ b/Libraries/BugReporting/getReactData.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getReactData * @flow diff --git a/Libraries/CameraRoll/CameraRoll.js b/Libraries/CameraRoll/CameraRoll.js index 91fba6d8fe893c..0c91dc7fd0233b 100644 --- a/Libraries/CameraRoll/CameraRoll.js +++ b/Libraries/CameraRoll/CameraRoll.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CameraRoll * @flow diff --git a/Libraries/CameraRoll/ImagePickerIOS.js b/Libraries/CameraRoll/ImagePickerIOS.js index a67884dc843571..24d1309d2e1b91 100644 --- a/Libraries/CameraRoll/ImagePickerIOS.js +++ b/Libraries/CameraRoll/ImagePickerIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImagePickerIOS * @flow diff --git a/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.h b/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.h index 405ba289aeda1d..8189bb56e4ea8c 100644 --- a/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.h +++ b/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.m b/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.m index 30a3baf6515a09..e9637d7c4c16b5 100644 --- a/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.m +++ b/Libraries/CameraRoll/RCTAssetsLibraryRequestHandler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAssetsLibraryRequestHandler.h" diff --git a/Libraries/CameraRoll/RCTCameraRollManager.h b/Libraries/CameraRoll/RCTCameraRollManager.h index f2bf18cb27cf69..b8b2c7d2ad63c7 100644 --- a/Libraries/CameraRoll/RCTCameraRollManager.h +++ b/Libraries/CameraRoll/RCTCameraRollManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/CameraRoll/RCTCameraRollManager.m b/Libraries/CameraRoll/RCTCameraRollManager.m index 72e128d6ecad33..b5d9a85dadb44b 100644 --- a/Libraries/CameraRoll/RCTCameraRollManager.m +++ b/Libraries/CameraRoll/RCTCameraRollManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTCameraRollManager.h" diff --git a/Libraries/CameraRoll/RCTImagePickerManager.h b/Libraries/CameraRoll/RCTImagePickerManager.h index e3053f6a128cec..825e7721a46c01 100644 --- a/Libraries/CameraRoll/RCTImagePickerManager.h +++ b/Libraries/CameraRoll/RCTImagePickerManager.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/CameraRoll/RCTImagePickerManager.m b/Libraries/CameraRoll/RCTImagePickerManager.m index e851b5fca4d3c6..1ee31752f2a992 100644 --- a/Libraries/CameraRoll/RCTImagePickerManager.m +++ b/Libraries/CameraRoll/RCTImagePickerManager.m @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.h b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.h index 67e5cfe5271ba8..0a45f184dab73c 100644 --- a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.h +++ b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m index 0c2adb7f5206df..ac27231adc9e9a 100644 --- a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m +++ b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPhotoLibraryImageLoader.h" diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js index 2fb4517714a588..f7d326f01b5305 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AccessibilityInfo * @flow diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js index fb3ce8095c0e61..6472c359cfb4b4 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AccessibilityInfo * @flow diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicator.js b/Libraries/Components/ActivityIndicator/ActivityIndicator.js index 6ea90069cdb125..df941368da1736 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicator.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ActivityIndicator * @flow diff --git a/Libraries/Components/AppleTV/TVEventHandler.android.js b/Libraries/Components/AppleTV/TVEventHandler.android.js index dc5a1d6b94e931..718fa84a8de515 100644 --- a/Libraries/Components/AppleTV/TVEventHandler.android.js +++ b/Libraries/Components/AppleTV/TVEventHandler.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TVEventHandler * @flow diff --git a/Libraries/Components/AppleTV/TVEventHandler.ios.js b/Libraries/Components/AppleTV/TVEventHandler.ios.js index c01f2b065a76fd..94e67c23cf3532 100644 --- a/Libraries/Components/AppleTV/TVEventHandler.ios.js +++ b/Libraries/Components/AppleTV/TVEventHandler.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TVEventHandler * @flow diff --git a/Libraries/Components/AppleTV/TVViewPropTypes.js b/Libraries/Components/AppleTV/TVViewPropTypes.js index b2c426d86241e3..cf5f5b03b7679e 100644 --- a/Libraries/Components/AppleTV/TVViewPropTypes.js +++ b/Libraries/Components/AppleTV/TVViewPropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TVViewPropTypes * @flow diff --git a/Libraries/Components/Button.js b/Libraries/Components/Button.js index fc3f2ef5aab3ad..dc5071f83193c9 100644 --- a/Libraries/Components/Button.js +++ b/Libraries/Components/Button.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Button * @flow diff --git a/Libraries/Components/CheckBox/CheckBox.android.js b/Libraries/Components/CheckBox/CheckBox.android.js index ef1a84730b4655..e4a14c6f73dafb 100644 --- a/Libraries/Components/CheckBox/CheckBox.android.js +++ b/Libraries/Components/CheckBox/CheckBox.android.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CheckBox * @flow diff --git a/Libraries/Components/CheckBox/CheckBox.ios.js b/Libraries/Components/CheckBox/CheckBox.ios.js index 02124a885a6477..386255541d47ec 100644 --- a/Libraries/Components/CheckBox/CheckBox.ios.js +++ b/Libraries/Components/CheckBox/CheckBox.ios.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CheckBox * @flow diff --git a/Libraries/Components/Clipboard/Clipboard.js b/Libraries/Components/Clipboard/Clipboard.js index ac8641c834701a..80d067cce257c0 100644 --- a/Libraries/Components/Clipboard/Clipboard.js +++ b/Libraries/Components/Clipboard/Clipboard.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Clipboard * @flow diff --git a/Libraries/Components/DatePicker/DatePickerIOS.android.js b/Libraries/Components/DatePicker/DatePickerIOS.android.js index 9a2b2669711b4b..8a1db045e01763 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.android.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerIOS */ diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index 88ae7d5c876d0e..9d3e1e30e5d5ce 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerIOS * @flow diff --git a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js index 11910ead0ad33c..750ed921f0684b 100644 --- a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +++ b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerAndroid * @flow diff --git a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js index afc8a19c2e8d7d..a23602128078f8 100644 --- a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +++ b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerAndroid * @flow diff --git a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js index e75e40534ab697..3a39a7d02f6b9e 100644 --- a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +++ b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DrawerLayoutAndroid */ diff --git a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js index 6c0b34e3b59108..d5b950c5b41ef0 100644 --- a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +++ b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DrawerLayoutAndroid */ diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index d85801c9d871f4..55d9891902ea7a 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/Libraries/Components/Keyboard/Keyboard.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Keyboard * @flow diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index 0ee09ea9c3086a..ffb6c58fe6379f 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule KeyboardAvoidingView * @flow diff --git a/Libraries/Components/LazyRenderer.js b/Libraries/Components/LazyRenderer.js index 3f026273556e07..826c0eb559faf6 100644 --- a/Libraries/Components/LazyRenderer.js +++ b/Libraries/Components/LazyRenderer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LazyRenderer */ diff --git a/Libraries/Components/MaskedView/MaskedViewIOS.android.js b/Libraries/Components/MaskedView/MaskedViewIOS.android.js index 57b4be358ff63c..ad37017e1c201b 100644 --- a/Libraries/Components/MaskedView/MaskedViewIOS.android.js +++ b/Libraries/Components/MaskedView/MaskedViewIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MaskedViewIOS * @flow diff --git a/Libraries/Components/MaskedView/MaskedViewIOS.ios.js b/Libraries/Components/MaskedView/MaskedViewIOS.ios.js index 85b28cb4a8b8ae..0d61728c4b29b1 100644 --- a/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +++ b/Libraries/Components/MaskedView/MaskedViewIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MaskedViewIOS * @flow diff --git a/Libraries/Components/Navigation/NavigatorIOS.android.js b/Libraries/Components/Navigation/NavigatorIOS.android.js index 12699e09c6a9a6..271f7ea0143fc5 100644 --- a/Libraries/Components/Navigation/NavigatorIOS.android.js +++ b/Libraries/Components/Navigation/NavigatorIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NavigatorIOS */ diff --git a/Libraries/Components/Navigation/NavigatorIOS.ios.js b/Libraries/Components/Navigation/NavigatorIOS.ios.js index 9a5596fe383bda..66aa906f61a4fd 100644 --- a/Libraries/Components/Navigation/NavigatorIOS.ios.js +++ b/Libraries/Components/Navigation/NavigatorIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NavigatorIOS * @flow diff --git a/Libraries/Components/Picker/Picker.js b/Libraries/Components/Picker/Picker.js index 443622221b624d..d4b225c8abe7a3 100644 --- a/Libraries/Components/Picker/Picker.js +++ b/Libraries/Components/Picker/Picker.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Picker * @flow diff --git a/Libraries/Components/Picker/PickerAndroid.android.js b/Libraries/Components/Picker/PickerAndroid.android.js index 35aea2b33581b0..c164db953731ed 100644 --- a/Libraries/Components/Picker/PickerAndroid.android.js +++ b/Libraries/Components/Picker/PickerAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PickerAndroid * @flow diff --git a/Libraries/Components/Picker/PickerAndroid.ios.js b/Libraries/Components/Picker/PickerAndroid.ios.js index fc589882864a71..b84e15bad67af0 100644 --- a/Libraries/Components/Picker/PickerAndroid.ios.js +++ b/Libraries/Components/Picker/PickerAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PickerAndroid */ diff --git a/Libraries/Components/Picker/PickerIOS.android.js b/Libraries/Components/Picker/PickerIOS.android.js index 7c5b39112a9ecf..ce50c2ad4e4157 100644 --- a/Libraries/Components/Picker/PickerIOS.android.js +++ b/Libraries/Components/Picker/PickerIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PickerIOS * diff --git a/Libraries/Components/Picker/PickerIOS.ios.js b/Libraries/Components/Picker/PickerIOS.ios.js index 5d58c00cfc939a..3963a9485f259a 100644 --- a/Libraries/Components/Picker/PickerIOS.ios.js +++ b/Libraries/Components/Picker/PickerIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PickerIOS * diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js index 6f076e53dc3f0b..f5dcb10cfb9508 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ProgressBarAndroid */ diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js index 99f01c81f36c20..92bae8066abe69 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ProgressBarAndroid */ diff --git a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js index d4a7da54aa98ec..46591f62802974 100644 --- a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +++ b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js @@ -1,11 +1,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ProgressViewIOS */ diff --git a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js index e6a5485f85b30c..310f02507c9421 100644 --- a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +++ b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ProgressViewIOS * @flow diff --git a/Libraries/Components/RefreshControl/RefreshControl.js b/Libraries/Components/RefreshControl/RefreshControl.js index 825b8c3f2886e3..14f383dc08c274 100644 --- a/Libraries/Components/RefreshControl/RefreshControl.js +++ b/Libraries/Components/RefreshControl/RefreshControl.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RefreshControl * @flow diff --git a/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js b/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js index cb02f672b17947..04312d5d4c5dbe 100644 --- a/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +++ b/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/Libraries/Components/SafeAreaView/SafeAreaView.android.js b/Libraries/Components/SafeAreaView/SafeAreaView.android.js index 46265995522ded..62a81a8a284352 100644 --- a/Libraries/Components/SafeAreaView/SafeAreaView.android.js +++ b/Libraries/Components/SafeAreaView/SafeAreaView.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SafeAreaView * @flow diff --git a/Libraries/Components/SafeAreaView/SafeAreaView.ios.js b/Libraries/Components/SafeAreaView/SafeAreaView.ios.js index 73336990a7a6f6..344cbe5f301ef1 100644 --- a/Libraries/Components/SafeAreaView/SafeAreaView.ios.js +++ b/Libraries/Components/SafeAreaView/SafeAreaView.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SafeAreaView * @flow diff --git a/Libraries/Components/ScrollResponder.js b/Libraries/Components/ScrollResponder.js index e44f21f4fc005d..9d60c462ef1dc7 100644 --- a/Libraries/Components/ScrollResponder.js +++ b/Libraries/Components/ScrollResponder.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ScrollResponder * @flow diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 43e89b5ab74672..354fd952b8191e 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ScrollView * @flow diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index 54956acf3fee7c..597bbbb432b217 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ScrollViewStickyHeader * @flow diff --git a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js index 6aa19b2f0eda40..eaa8bb7385e367 100644 --- a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js +++ b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/Libraries/Components/ScrollView/processDecelerationRate.js b/Libraries/Components/ScrollView/processDecelerationRate.js index 71955a025bcfef..9cb5a52a557715 100644 --- a/Libraries/Components/ScrollView/processDecelerationRate.js +++ b/Libraries/Components/ScrollView/processDecelerationRate.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule processDecelerationRate */ diff --git a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js index 15ac90078588dd..16be1c8f2b1458 100644 --- a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +++ b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js @@ -1,11 +1,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SegmentedControlIOS */ diff --git a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js index e5297d8f28b845..f7748fcc8dbf45 100644 --- a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +++ b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SegmentedControlIOS * @flow diff --git a/Libraries/Components/Slider/Slider.js b/Libraries/Components/Slider/Slider.js index 91b780f7aa73a1..683789520e5685 100644 --- a/Libraries/Components/Slider/Slider.js +++ b/Libraries/Components/Slider/Slider.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Slider * @flow diff --git a/Libraries/Components/StaticContainer.react.js b/Libraries/Components/StaticContainer.react.js index ee19d7d4b84431..81e06ace1fdb5f 100644 --- a/Libraries/Components/StaticContainer.react.js +++ b/Libraries/Components/StaticContainer.react.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StaticContainer.react * @flow diff --git a/Libraries/Components/StaticRenderer.js b/Libraries/Components/StaticRenderer.js index 380a556f937b67..d5474e943bccad 100644 --- a/Libraries/Components/StaticRenderer.js +++ b/Libraries/Components/StaticRenderer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StaticRenderer * @flow diff --git a/Libraries/Components/StatusBar/StatusBar.js b/Libraries/Components/StatusBar/StatusBar.js index c545b381050767..0562a315493853 100644 --- a/Libraries/Components/StatusBar/StatusBar.js +++ b/Libraries/Components/StatusBar/StatusBar.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StatusBar * @flow diff --git a/Libraries/Components/StatusBar/StatusBarIOS.android.js b/Libraries/Components/StatusBar/StatusBarIOS.android.js index 2be8f34eaf5fb5..5c69c15339addf 100644 --- a/Libraries/Components/StatusBar/StatusBarIOS.android.js +++ b/Libraries/Components/StatusBar/StatusBarIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StatusBarIOS * @flow diff --git a/Libraries/Components/StatusBar/StatusBarIOS.ios.js b/Libraries/Components/StatusBar/StatusBarIOS.ios.js index a3aceaac7e0988..f132f005696def 100644 --- a/Libraries/Components/StatusBar/StatusBarIOS.ios.js +++ b/Libraries/Components/StatusBar/StatusBarIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StatusBarIOS * @flow diff --git a/Libraries/Components/Subscribable.js b/Libraries/Components/Subscribable.js index 0244ad673c2404..3dfe6a4bb1732b 100644 --- a/Libraries/Components/Subscribable.js +++ b/Libraries/Components/Subscribable.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Subscribable * @flow diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 8ee3225f3a0ee7..545b29b271f02f 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Switch * @flow diff --git a/Libraries/Components/TabBarIOS/TabBarIOS.android.js b/Libraries/Components/TabBarIOS/TabBarIOS.android.js index 0c6465bb38af25..c52d947ebd325e 100644 --- a/Libraries/Components/TabBarIOS/TabBarIOS.android.js +++ b/Libraries/Components/TabBarIOS/TabBarIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TabBarIOS * @flow diff --git a/Libraries/Components/TabBarIOS/TabBarIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarIOS.ios.js index c373bc57ac27e8..2e838b097df387 100644 --- a/Libraries/Components/TabBarIOS/TabBarIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TabBarIOS * @flow diff --git a/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js b/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js index 43cf6d429e0bfa..ffd46d9c59d8e9 100644 --- a/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js +++ b/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TabBarItemIOS */ diff --git a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js index d4e2687c198ff4..eb5c6b2326269f 100644 --- a/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js +++ b/Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TabBarItemIOS * @noflow diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 47e6bc4fc08045..ab685dc75060c4 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextInput * @flow diff --git a/Libraries/Components/TextInput/TextInputState.js b/Libraries/Components/TextInput/TextInputState.js index 7d17fe639352d6..46524070fe2147 100644 --- a/Libraries/Components/TextInput/TextInputState.js +++ b/Libraries/Components/TextInput/TextInputState.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextInputState * @flow diff --git a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js index e837075ded13b4..be7f4c4f9286c6 100644 --- a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js +++ b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TimePickerAndroid * @flow diff --git a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js index 1214d231ca6754..a6b630d7c394a4 100644 --- a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js +++ b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TimePickerAndroid * @flow diff --git a/Libraries/Components/ToastAndroid/ToastAndroid.android.js b/Libraries/Components/ToastAndroid/ToastAndroid.android.js index 2555b83b4daa4e..5434126660f317 100644 --- a/Libraries/Components/ToastAndroid/ToastAndroid.android.js +++ b/Libraries/Components/ToastAndroid/ToastAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ToastAndroid * @flow diff --git a/Libraries/Components/ToastAndroid/ToastAndroid.ios.js b/Libraries/Components/ToastAndroid/ToastAndroid.ios.js index 4fc912777abb2f..b44f812ecff0f5 100644 --- a/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +++ b/Libraries/Components/ToastAndroid/ToastAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ToastAndroid * @noflow diff --git a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js index 85435eaea6bfa4..941d1432855a70 100644 --- a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js +++ b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ToolbarAndroid */ diff --git a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js index 28a8901ff890fd..68ef4ef8300aba 100644 --- a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js +++ b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ToolbarAndroid */ diff --git a/Libraries/Components/Touchable/BoundingDimensions.js b/Libraries/Components/Touchable/BoundingDimensions.js index a5877717b6b651..73e700ca313bb9 100644 --- a/Libraries/Components/Touchable/BoundingDimensions.js +++ b/Libraries/Components/Touchable/BoundingDimensions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BoundingDimensions */ diff --git a/Libraries/Components/Touchable/Position.js b/Libraries/Components/Touchable/Position.js index 77dd3ad11b81e9..229e791fb92794 100644 --- a/Libraries/Components/Touchable/Position.js +++ b/Libraries/Components/Touchable/Position.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Position */ diff --git a/Libraries/Components/Touchable/Touchable.js b/Libraries/Components/Touchable/Touchable.js index e8f925e90d5b11..ff63195b089ada 100644 --- a/Libraries/Components/Touchable/Touchable.js +++ b/Libraries/Components/Touchable/Touchable.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Touchable */ diff --git a/Libraries/Components/Touchable/TouchableBounce.js b/Libraries/Components/Touchable/TouchableBounce.js index f034e582f4941b..2f0949b6ff22f2 100644 --- a/Libraries/Components/Touchable/TouchableBounce.js +++ b/Libraries/Components/Touchable/TouchableBounce.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableBounce * @flow diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index 04af3d17fff631..823bd63edaf65f 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableHighlight * @flow diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.android.js b/Libraries/Components/Touchable/TouchableNativeFeedback.android.js index f5e43340e04389..effad37642759a 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.android.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableNativeFeedback */ diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js index 99abaa3a07055a..9b7ff5e7e82d41 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableNativeFeedback */ diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index a27907ecef88be..e8d6ca171abc6e 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableOpacity * @noflow diff --git a/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 2a285dfa8013c6..642c8593cbe023 100755 --- a/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableWithoutFeedback * @flow diff --git a/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js b/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js index e537f2be044863..8f036c71e8cddf 100644 --- a/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js +++ b/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/Libraries/Components/Touchable/__tests__/TouchableHighlight-test.js b/Libraries/Components/Touchable/__tests__/TouchableHighlight-test.js index 99a94fca6af72f..396b7387b218cc 100644 --- a/Libraries/Components/Touchable/__tests__/TouchableHighlight-test.js +++ b/Libraries/Components/Touchable/__tests__/TouchableHighlight-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Components/Touchable/ensureComponentIsNative.js b/Libraries/Components/Touchable/ensureComponentIsNative.js index c66735b508b16c..de01d017716ba2 100644 --- a/Libraries/Components/Touchable/ensureComponentIsNative.js +++ b/Libraries/Components/Touchable/ensureComponentIsNative.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ensureComponentIsNative * @flow diff --git a/Libraries/Components/Touchable/ensurePositiveDelayProps.js b/Libraries/Components/Touchable/ensurePositiveDelayProps.js index d2f6a09e8c89ed..85f60091f6049f 100644 --- a/Libraries/Components/Touchable/ensurePositiveDelayProps.js +++ b/Libraries/Components/Touchable/ensurePositiveDelayProps.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ensurePositiveDelayProps * @flow diff --git a/Libraries/Components/UnimplementedViews/UnimplementedView.js b/Libraries/Components/UnimplementedViews/UnimplementedView.js index 15568f4b7d08e1..5da72d04f35430 100644 --- a/Libraries/Components/UnimplementedViews/UnimplementedView.js +++ b/Libraries/Components/UnimplementedViews/UnimplementedView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnimplementedView * @flow diff --git a/Libraries/Components/View/PlatformViewPropTypes.android.js b/Libraries/Components/View/PlatformViewPropTypes.android.js index 7d4734bdaa5f84..64425f94110961 100644 --- a/Libraries/Components/View/PlatformViewPropTypes.android.js +++ b/Libraries/Components/View/PlatformViewPropTypes.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PlatformViewPropTypes * @flow diff --git a/Libraries/Components/View/PlatformViewPropTypes.ios.js b/Libraries/Components/View/PlatformViewPropTypes.ios.js index 7957c7b4a90ecf..2394a51746d199 100644 --- a/Libraries/Components/View/PlatformViewPropTypes.ios.js +++ b/Libraries/Components/View/PlatformViewPropTypes.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PlatformViewPropTypes * @flow diff --git a/Libraries/Components/View/ReactNativeStyleAttributes.js b/Libraries/Components/View/ReactNativeStyleAttributes.js index 821c5fa9167e77..462e9b7caeb6bb 100644 --- a/Libraries/Components/View/ReactNativeStyleAttributes.js +++ b/Libraries/Components/View/ReactNativeStyleAttributes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactNativeStyleAttributes * @flow diff --git a/Libraries/Components/View/ReactNativeViewAttributes.js b/Libraries/Components/View/ReactNativeViewAttributes.js index ab12b9fdc4d860..64f81c7196691c 100644 --- a/Libraries/Components/View/ReactNativeViewAttributes.js +++ b/Libraries/Components/View/ReactNativeViewAttributes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactNativeViewAttributes * @flow diff --git a/Libraries/Components/View/ShadowPropTypesIOS.js b/Libraries/Components/View/ShadowPropTypesIOS.js index 8bf7acbfe99f13..f4f2f0ab4c481a 100644 --- a/Libraries/Components/View/ShadowPropTypesIOS.js +++ b/Libraries/Components/View/ShadowPropTypesIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ShadowPropTypesIOS * @flow diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 2393f43526b709..04c7bebb15eed4 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule View * @flow diff --git a/Libraries/Components/View/View.js.flow b/Libraries/Components/View/View.js.flow index fb62d61037f498..88dffece3c06f0 100644 --- a/Libraries/Components/View/View.js.flow +++ b/Libraries/Components/View/View.js.flow @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule View * @flow diff --git a/Libraries/Components/View/ViewAccessibility.js b/Libraries/Components/View/ViewAccessibility.js index c5f6c42e3221aa..b45366fd079755 100644 --- a/Libraries/Components/View/ViewAccessibility.js +++ b/Libraries/Components/View/ViewAccessibility.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewAccessibility * @flow diff --git a/Libraries/Components/View/ViewContext.js b/Libraries/Components/View/ViewContext.js index ed73187b0bb8d6..563d2b253b93e0 100644 --- a/Libraries/Components/View/ViewContext.js +++ b/Libraries/Components/View/ViewContext.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewContext * @flow diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index 20efa0c46765f4..7731c7e4a8cef2 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewPropTypes * @flow diff --git a/Libraries/Components/View/ViewStylePropTypes.js b/Libraries/Components/View/ViewStylePropTypes.js index 3c6886249a74ce..6e9c92163b3181 100644 --- a/Libraries/Components/View/ViewStylePropTypes.js +++ b/Libraries/Components/View/ViewStylePropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewStylePropTypes * @flow diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js index a44cd15b755c72..bcc1d8609a5f3a 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewPagerAndroid * @flow diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js b/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js index 35d4196b489037..ee0022ae5453fa 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewPagerAndroid */ diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 07fb34309bf344..851378755da463 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebView */ diff --git a/Libraries/Components/WebView/WebView.ios.js b/Libraries/Components/WebView/WebView.ios.js index b68aecd1864f74..e11f8e3851b622 100644 --- a/Libraries/Components/WebView/WebView.ios.js +++ b/Libraries/Components/WebView/WebView.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebView * @noflow diff --git a/Libraries/Core/Devtools/__tests__/parseErrorStack-test.js b/Libraries/Core/Devtools/__tests__/parseErrorStack-test.js index 347bdf79ba1e27..beaa629d765d77 100644 --- a/Libraries/Core/Devtools/__tests__/parseErrorStack-test.js +++ b/Libraries/Core/Devtools/__tests__/parseErrorStack-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Core/Devtools/getDevServer.js b/Libraries/Core/Devtools/getDevServer.js index ff34314cadd839..e413709da1cece 100644 --- a/Libraries/Core/Devtools/getDevServer.js +++ b/Libraries/Core/Devtools/getDevServer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getDevServer * @flow diff --git a/Libraries/Core/Devtools/openFileInEditor.js b/Libraries/Core/Devtools/openFileInEditor.js index 650cb568340c4f..a5f9da59e6b1ab 100644 --- a/Libraries/Core/Devtools/openFileInEditor.js +++ b/Libraries/Core/Devtools/openFileInEditor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule openFileInEditor * @flow diff --git a/Libraries/Core/Devtools/parseErrorStack.js b/Libraries/Core/Devtools/parseErrorStack.js index 11466533f5585f..e1ae27294fee68 100644 --- a/Libraries/Core/Devtools/parseErrorStack.js +++ b/Libraries/Core/Devtools/parseErrorStack.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule parseErrorStack * @flow diff --git a/Libraries/Core/Devtools/setupDevtools.js b/Libraries/Core/Devtools/setupDevtools.js index b1c32960abf5a9..cbfb8df3983b59 100644 --- a/Libraries/Core/Devtools/setupDevtools.js +++ b/Libraries/Core/Devtools/setupDevtools.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule setupDevtools * @flow diff --git a/Libraries/Core/Devtools/symbolicateStackTrace.js b/Libraries/Core/Devtools/symbolicateStackTrace.js index 283e4b78cc94aa..5ac25fe03e98fb 100644 --- a/Libraries/Core/Devtools/symbolicateStackTrace.js +++ b/Libraries/Core/Devtools/symbolicateStackTrace.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule symbolicateStackTrace * @flow diff --git a/Libraries/Core/ExceptionsManager.js b/Libraries/Core/ExceptionsManager.js index 56ced328d2114a..8a63ec3bff4bcc 100644 --- a/Libraries/Core/ExceptionsManager.js +++ b/Libraries/Core/ExceptionsManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ExceptionsManager * @flow diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 761846f862ad4a..3e09e566078cca 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InitializeCore * @flow diff --git a/Libraries/Core/ReactNativeVersion.js b/Libraries/Core/ReactNativeVersion.js index 2f78126ef691a6..52b8f9c47b8f26 100644 --- a/Libraries/Core/ReactNativeVersion.js +++ b/Libraries/Core/ReactNativeVersion.js @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ReactNativeVersion diff --git a/Libraries/Core/ReactNativeVersionCheck.js b/Libraries/Core/ReactNativeVersionCheck.js index 39c416118d896e..acbac3337baffd 100644 --- a/Libraries/Core/ReactNativeVersionCheck.js +++ b/Libraries/Core/ReactNativeVersionCheck.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactNativeVersionCheck * @flow diff --git a/Libraries/Core/Timers/JSTimers.js b/Libraries/Core/Timers/JSTimers.js index 6d8da69e866af8..5fae3408aa5158 100644 --- a/Libraries/Core/Timers/JSTimers.js +++ b/Libraries/Core/Timers/JSTimers.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule JSTimers * @format diff --git a/Libraries/Core/__mocks__/ErrorUtils.js b/Libraries/Core/__mocks__/ErrorUtils.js index 2c9a98f5645247..2ab128040cffca 100644 --- a/Libraries/Core/__mocks__/ErrorUtils.js +++ b/Libraries/Core/__mocks__/ErrorUtils.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ // This mock only provides short-circuited methods of applyWithGuard and guard. diff --git a/Libraries/Core/__tests__/ReactNativeVersionCheck-test.js b/Libraries/Core/__tests__/ReactNativeVersionCheck-test.js index 4cbe744fe08498..e5c8cefddf15bb 100644 --- a/Libraries/Core/__tests__/ReactNativeVersionCheck-test.js +++ b/Libraries/Core/__tests__/ReactNativeVersionCheck-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native diff --git a/Libraries/EventEmitter/MissingNativeEventEmitterShim.js b/Libraries/EventEmitter/MissingNativeEventEmitterShim.js index 04362de06ac789..d4abfc228a4ba1 100644 --- a/Libraries/EventEmitter/MissingNativeEventEmitterShim.js +++ b/Libraries/EventEmitter/MissingNativeEventEmitterShim.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MissingNativeEventEmitterShim * @flow diff --git a/Libraries/EventEmitter/NativeEventEmitter.js b/Libraries/EventEmitter/NativeEventEmitter.js index 5c979600295b54..f453cbc5184e42 100644 --- a/Libraries/EventEmitter/NativeEventEmitter.js +++ b/Libraries/EventEmitter/NativeEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NativeEventEmitter * @flow diff --git a/Libraries/EventEmitter/RCTDeviceEventEmitter.js b/Libraries/EventEmitter/RCTDeviceEventEmitter.js index 01e2e0ac5d7741..57ce4fa08990c8 100644 --- a/Libraries/EventEmitter/RCTDeviceEventEmitter.js +++ b/Libraries/EventEmitter/RCTDeviceEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTDeviceEventEmitter * @flow diff --git a/Libraries/EventEmitter/RCTEventEmitter.js b/Libraries/EventEmitter/RCTEventEmitter.js index 76200db890f062..581515482f1c9b 100644 --- a/Libraries/EventEmitter/RCTEventEmitter.js +++ b/Libraries/EventEmitter/RCTEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTEventEmitter * @flow diff --git a/Libraries/EventEmitter/RCTNativeAppEventEmitter.js b/Libraries/EventEmitter/RCTNativeAppEventEmitter.js index a940a6ec25bfc8..9fe0a1573fe18f 100644 --- a/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +++ b/Libraries/EventEmitter/RCTNativeAppEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTNativeAppEventEmitter * @flow diff --git a/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js b/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js index e2aa9526571b63..d65243424b4a50 100644 --- a/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +++ b/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/Libraries/Experimental/Incremental.js b/Libraries/Experimental/Incremental.js index c0d486eb021c31..45c0a7dce5a071 100644 --- a/Libraries/Experimental/Incremental.js +++ b/Libraries/Experimental/Incremental.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Incremental * @flow diff --git a/Libraries/Experimental/IncrementalExample.js b/Libraries/Experimental/IncrementalExample.js index 13272627fb5838..280d36f198cfa0 100644 --- a/Libraries/Experimental/IncrementalExample.js +++ b/Libraries/Experimental/IncrementalExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule IncrementalExample * @flow diff --git a/Libraries/Experimental/IncrementalGroup.js b/Libraries/Experimental/IncrementalGroup.js index 81714929afe351..e2aefae6836f2d 100644 --- a/Libraries/Experimental/IncrementalGroup.js +++ b/Libraries/Experimental/IncrementalGroup.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule IncrementalGroup * @flow diff --git a/Libraries/Experimental/IncrementalPresenter.js b/Libraries/Experimental/IncrementalPresenter.js index 8f273974c20acf..03c69d1fcdcf71 100644 --- a/Libraries/Experimental/IncrementalPresenter.js +++ b/Libraries/Experimental/IncrementalPresenter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule IncrementalPresenter * @flow diff --git a/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js b/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js index 6aa7c253ae6ee6..f7f78b40103acf 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableFlatList * @flow diff --git a/Libraries/Experimental/SwipeableRow/SwipeableListView.js b/Libraries/Experimental/SwipeableRow/SwipeableListView.js index 1daf0a1e483c3e..569f3581d04770 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableListView.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableListView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableListView * @flow diff --git a/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js b/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js index 4fc44549688e2b..bda3bd3b530651 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableListViewDataSource */ diff --git a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js index 59cccbe3d85869..315b8a2f64c389 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableQuickActionButton * @flow diff --git a/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js b/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js index c5e53d55e80db4..96fe1d23daab47 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableQuickActions * @flow diff --git a/Libraries/Experimental/SwipeableRow/SwipeableRow.js b/Libraries/Experimental/SwipeableRow/SwipeableRow.js index 18c5bbd0eff93c..e03970c637fa8b 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableRow.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableRow.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableRow * @flow diff --git a/Libraries/Experimental/WindowedListView.js b/Libraries/Experimental/WindowedListView.js index a457bea4ed3d2d..2a102b23f3c47c 100644 --- a/Libraries/Experimental/WindowedListView.js +++ b/Libraries/Experimental/WindowedListView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WindowedListView * @flow diff --git a/Libraries/Geolocation/Geolocation.js b/Libraries/Geolocation/Geolocation.js index d387b83e47076f..d5d8fcd30a96bf 100644 --- a/Libraries/Geolocation/Geolocation.js +++ b/Libraries/Geolocation/Geolocation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Geolocation * @flow diff --git a/Libraries/Geolocation/RCTLocationObserver.h b/Libraries/Geolocation/RCTLocationObserver.h index 631bdf1cc80bdd..5de0ea289d881d 100644 --- a/Libraries/Geolocation/RCTLocationObserver.h +++ b/Libraries/Geolocation/RCTLocationObserver.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Geolocation/RCTLocationObserver.m b/Libraries/Geolocation/RCTLocationObserver.m index 11b344a6f46cf1..9e15facfa7ef68 100644 --- a/Libraries/Geolocation/RCTLocationObserver.m +++ b/Libraries/Geolocation/RCTLocationObserver.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLocationObserver.h" diff --git a/Libraries/Image/AssetRegistry.js b/Libraries/Image/AssetRegistry.js index 4871fe370f70fd..7dabcfb9b53561 100644 --- a/Libraries/Image/AssetRegistry.js +++ b/Libraries/Image/AssetRegistry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AssetRegistry * @flow diff --git a/Libraries/Image/AssetSourceResolver.js b/Libraries/Image/AssetSourceResolver.js index f8166c07d41ac8..819353e03846ea 100644 --- a/Libraries/Image/AssetSourceResolver.js +++ b/Libraries/Image/AssetSourceResolver.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AssetSourceResolver * @flow diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index d3dec7a8adfb76..bdb29ab8fe8965 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Image * @flow diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index 45b17d37229e04..173d78704f6610 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Image * @flow diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index 13f4e2e9f85e1a..95d2b688a35006 100644 --- a/Libraries/Image/ImageBackground.js +++ b/Libraries/Image/ImageBackground.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageBackground * @flow diff --git a/Libraries/Image/ImageEditor.js b/Libraries/Image/ImageEditor.js index 90868c7736623e..ddd7fd381285c5 100644 --- a/Libraries/Image/ImageEditor.js +++ b/Libraries/Image/ImageEditor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageEditor * @flow diff --git a/Libraries/Image/ImageResizeMode.js b/Libraries/Image/ImageResizeMode.js index 26c0029e247fa3..25d937d60efe5f 100644 --- a/Libraries/Image/ImageResizeMode.js +++ b/Libraries/Image/ImageResizeMode.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageResizeMode * @flow diff --git a/Libraries/Image/ImageSource.js b/Libraries/Image/ImageSource.js index 59fa2c0174729a..533eb513219ca2 100644 --- a/Libraries/Image/ImageSource.js +++ b/Libraries/Image/ImageSource.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageSource * @flow diff --git a/Libraries/Image/ImageSourcePropType.js b/Libraries/Image/ImageSourcePropType.js index 3ace885f6e15ad..af9dac3c479477 100644 --- a/Libraries/Image/ImageSourcePropType.js +++ b/Libraries/Image/ImageSourcePropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageSourcePropType * @no-flow diff --git a/Libraries/Image/ImageStore.js b/Libraries/Image/ImageStore.js index 6eb06418eebd91..215bdec246cb1e 100644 --- a/Libraries/Image/ImageStore.js +++ b/Libraries/Image/ImageStore.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageStore * @flow diff --git a/Libraries/Image/ImageStylePropTypes.js b/Libraries/Image/ImageStylePropTypes.js index 2953b81ab7156f..9a688ac7f9d425 100644 --- a/Libraries/Image/ImageStylePropTypes.js +++ b/Libraries/Image/ImageStylePropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageStylePropTypes * @flow diff --git a/Libraries/Image/RCTGIFImageDecoder.h b/Libraries/Image/RCTGIFImageDecoder.h index 01128297c39cb5..1f942aef4c8ce6 100644 --- a/Libraries/Image/RCTGIFImageDecoder.h +++ b/Libraries/Image/RCTGIFImageDecoder.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTGIFImageDecoder.m b/Libraries/Image/RCTGIFImageDecoder.m index e9777bec16a5e6..48ca8aefcf74b4 100644 --- a/Libraries/Image/RCTGIFImageDecoder.m +++ b/Libraries/Image/RCTGIFImageDecoder.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTGIFImageDecoder.h" diff --git a/Libraries/Image/RCTImageBlurUtils.h b/Libraries/Image/RCTImageBlurUtils.h index db8c90943789fa..44df37441af92a 100644 --- a/Libraries/Image/RCTImageBlurUtils.h +++ b/Libraries/Image/RCTImageBlurUtils.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/Image/RCTImageBlurUtils.m b/Libraries/Image/RCTImageBlurUtils.m index 193c042770a12e..84c90019bfbcc9 100644 --- a/Libraries/Image/RCTImageBlurUtils.m +++ b/Libraries/Image/RCTImageBlurUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageBlurUtils.h" diff --git a/Libraries/Image/RCTImageCache.h b/Libraries/Image/RCTImageCache.h index b0cf1b69257703..c0d24ad25a2d41 100644 --- a/Libraries/Image/RCTImageCache.h +++ b/Libraries/Image/RCTImageCache.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageCache.m b/Libraries/Image/RCTImageCache.m index ed825f00c13997..8caedae7cf8186 100644 --- a/Libraries/Image/RCTImageCache.m +++ b/Libraries/Image/RCTImageCache.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageCache.h" diff --git a/Libraries/Image/RCTImageEditingManager.h b/Libraries/Image/RCTImageEditingManager.h index e2d87600dba37c..dda409af33fc22 100644 --- a/Libraries/Image/RCTImageEditingManager.h +++ b/Libraries/Image/RCTImageEditingManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageEditingManager.m b/Libraries/Image/RCTImageEditingManager.m index 89341f652646c4..2c8330ee9a302b 100644 --- a/Libraries/Image/RCTImageEditingManager.m +++ b/Libraries/Image/RCTImageEditingManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageEditingManager.h" diff --git a/Libraries/Image/RCTImageLoader.h b/Libraries/Image/RCTImageLoader.h index 5326845ee69ac4..a0c6e798a8a960 100644 --- a/Libraries/Image/RCTImageLoader.h +++ b/Libraries/Image/RCTImageLoader.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageLoader.m b/Libraries/Image/RCTImageLoader.m index 8b5b96c7bc70d3..bc50fb03a0eaca 100644 --- a/Libraries/Image/RCTImageLoader.m +++ b/Libraries/Image/RCTImageLoader.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageShadowView.h b/Libraries/Image/RCTImageShadowView.h index 292a790748ec28..168f0f4c1de86d 100644 --- a/Libraries/Image/RCTImageShadowView.h +++ b/Libraries/Image/RCTImageShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageShadowView.m b/Libraries/Image/RCTImageShadowView.m index 3dc16c4f0d0f5e..c9ba82e32188cc 100644 --- a/Libraries/Image/RCTImageShadowView.m +++ b/Libraries/Image/RCTImageShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageShadowView.h" diff --git a/Libraries/Image/RCTImageStoreManager.m b/Libraries/Image/RCTImageStoreManager.m index 87fe71387eac14..443885becfff2e 100644 --- a/Libraries/Image/RCTImageStoreManager.m +++ b/Libraries/Image/RCTImageStoreManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageStoreManager.h" diff --git a/Libraries/Image/RCTImageUtils.h b/Libraries/Image/RCTImageUtils.h index 371770cb1b92cd..d6090ac67ffb48 100644 --- a/Libraries/Image/RCTImageUtils.h +++ b/Libraries/Image/RCTImageUtils.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/Image/RCTImageUtils.m b/Libraries/Image/RCTImageUtils.m index f64f1f7b686887..52fe3893307307 100644 --- a/Libraries/Image/RCTImageUtils.m +++ b/Libraries/Image/RCTImageUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageUtils.h" diff --git a/Libraries/Image/RCTImageView.h b/Libraries/Image/RCTImageView.h index 7c632b3bfa66a1..70357c359b142e 100644 --- a/Libraries/Image/RCTImageView.h +++ b/Libraries/Image/RCTImageView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageView.m b/Libraries/Image/RCTImageView.m index 144fff6cbff33c..a754bb1078dc3b 100644 --- a/Libraries/Image/RCTImageView.m +++ b/Libraries/Image/RCTImageView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageView.h" diff --git a/Libraries/Image/RCTImageViewManager.h b/Libraries/Image/RCTImageViewManager.h index 60ba85df174fa2..f718a70246ef41 100644 --- a/Libraries/Image/RCTImageViewManager.h +++ b/Libraries/Image/RCTImageViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTImageViewManager.m b/Libraries/Image/RCTImageViewManager.m index b313e016fd3094..bd382e4bf191d0 100644 --- a/Libraries/Image/RCTImageViewManager.m +++ b/Libraries/Image/RCTImageViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageViewManager.h" diff --git a/Libraries/Image/RCTLocalAssetImageLoader.h b/Libraries/Image/RCTLocalAssetImageLoader.h index 011484f2d800aa..4cd79bd403c5a2 100644 --- a/Libraries/Image/RCTLocalAssetImageLoader.h +++ b/Libraries/Image/RCTLocalAssetImageLoader.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTLocalAssetImageLoader.m b/Libraries/Image/RCTLocalAssetImageLoader.m index 7186f9aa59bf51..091cd70e0eafef 100644 --- a/Libraries/Image/RCTLocalAssetImageLoader.m +++ b/Libraries/Image/RCTLocalAssetImageLoader.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLocalAssetImageLoader.h" diff --git a/Libraries/Image/RCTResizeMode.h b/Libraries/Image/RCTResizeMode.h index 52f888073894d6..ce0fba5e31afad 100644 --- a/Libraries/Image/RCTResizeMode.h +++ b/Libraries/Image/RCTResizeMode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Image/RCTResizeMode.m b/Libraries/Image/RCTResizeMode.m index 6142fc6ab1fb73..1094b7ff96e8c9 100644 --- a/Libraries/Image/RCTResizeMode.m +++ b/Libraries/Image/RCTResizeMode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTResizeMode.h" diff --git a/Libraries/Image/RelativeImageStub.js b/Libraries/Image/RelativeImageStub.js index 37984d7ff217d8..4adf66b806b4f2 100644 --- a/Libraries/Image/RelativeImageStub.js +++ b/Libraries/Image/RelativeImageStub.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RelativeImageStub * @flow diff --git a/Libraries/Image/__tests__/assetRelativePathInSnapshot.js b/Libraries/Image/__tests__/assetRelativePathInSnapshot.js index c0c0b96c89525e..262e636b4710ff 100644 --- a/Libraries/Image/__tests__/assetRelativePathInSnapshot.js +++ b/Libraries/Image/__tests__/assetRelativePathInSnapshot.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Image/__tests__/resolveAssetSource-test.js b/Libraries/Image/__tests__/resolveAssetSource-test.js index bf0507d752bb92..50a666a5b54897 100644 --- a/Libraries/Image/__tests__/resolveAssetSource-test.js +++ b/Libraries/Image/__tests__/resolveAssetSource-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Image/nativeImageSource.js b/Libraries/Image/nativeImageSource.js index 66af917254bf7c..26b194ace776be 100644 --- a/Libraries/Image/nativeImageSource.js +++ b/Libraries/Image/nativeImageSource.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule nativeImageSource * @flow diff --git a/Libraries/Image/resolveAssetSource.js b/Libraries/Image/resolveAssetSource.js index cabed0a0a69621..a5b6229d35d738 100644 --- a/Libraries/Image/resolveAssetSource.js +++ b/Libraries/Image/resolveAssetSource.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule resolveAssetSource * @flow diff --git a/Libraries/Inspector/BorderBox.js b/Libraries/Inspector/BorderBox.js index 782c7c2e02bf6c..c121de5ea1dabb 100644 --- a/Libraries/Inspector/BorderBox.js +++ b/Libraries/Inspector/BorderBox.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BorderBox * @flow diff --git a/Libraries/Inspector/BoxInspector.js b/Libraries/Inspector/BoxInspector.js index 2b4c2786cc870e..31bedeecdaa0c8 100644 --- a/Libraries/Inspector/BoxInspector.js +++ b/Libraries/Inspector/BoxInspector.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BoxInspector * @flow diff --git a/Libraries/Inspector/ElementBox.js b/Libraries/Inspector/ElementBox.js index db4f7b8f0da818..b9caef093cc340 100644 --- a/Libraries/Inspector/ElementBox.js +++ b/Libraries/Inspector/ElementBox.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ElementBox * @flow diff --git a/Libraries/Inspector/ElementProperties.js b/Libraries/Inspector/ElementProperties.js index 880dcb84d173b8..f7937c5f7edb2a 100644 --- a/Libraries/Inspector/ElementProperties.js +++ b/Libraries/Inspector/ElementProperties.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ElementProperties * @flow diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js index 3eb6682f2bd97c..90e30b346a9461 100644 --- a/Libraries/Inspector/Inspector.js +++ b/Libraries/Inspector/Inspector.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Inspector * @flow diff --git a/Libraries/Inspector/InspectorOverlay.js b/Libraries/Inspector/InspectorOverlay.js index 716c0e1a7d62b2..d441ba59884ea9 100644 --- a/Libraries/Inspector/InspectorOverlay.js +++ b/Libraries/Inspector/InspectorOverlay.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InspectorOverlay * @flow diff --git a/Libraries/Inspector/InspectorPanel.js b/Libraries/Inspector/InspectorPanel.js index a37b37f8ef2885..c4031a355d5c45 100644 --- a/Libraries/Inspector/InspectorPanel.js +++ b/Libraries/Inspector/InspectorPanel.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InspectorPanel * @flow diff --git a/Libraries/Inspector/NetworkOverlay.js b/Libraries/Inspector/NetworkOverlay.js index db0216a0059e82..789ac6de824c65 100644 --- a/Libraries/Inspector/NetworkOverlay.js +++ b/Libraries/Inspector/NetworkOverlay.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NetworkOverlay * @flow diff --git a/Libraries/Inspector/PerformanceOverlay.js b/Libraries/Inspector/PerformanceOverlay.js index c6c6f1c023e1eb..8240a43244ac6b 100644 --- a/Libraries/Inspector/PerformanceOverlay.js +++ b/Libraries/Inspector/PerformanceOverlay.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PerformanceOverlay * @flow diff --git a/Libraries/Inspector/StyleInspector.js b/Libraries/Inspector/StyleInspector.js index 192d7b93fc4e77..7bd137bdea7de6 100644 --- a/Libraries/Inspector/StyleInspector.js +++ b/Libraries/Inspector/StyleInspector.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StyleInspector * @flow diff --git a/Libraries/Inspector/resolveBoxStyle.js b/Libraries/Inspector/resolveBoxStyle.js index 0c2857bd0e658b..28f4af50525b33 100644 --- a/Libraries/Inspector/resolveBoxStyle.js +++ b/Libraries/Inspector/resolveBoxStyle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule resolveBoxStyle * @flow diff --git a/Libraries/Interaction/Batchinator.js b/Libraries/Interaction/Batchinator.js index e807e5515e7f81..3f3b4e069a019e 100644 --- a/Libraries/Interaction/Batchinator.js +++ b/Libraries/Interaction/Batchinator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Batchinator * @flow diff --git a/Libraries/Interaction/BridgeSpyStallHandler.js b/Libraries/Interaction/BridgeSpyStallHandler.js index 78d61c0321baae..f47f0751d8ad67 100644 --- a/Libraries/Interaction/BridgeSpyStallHandler.js +++ b/Libraries/Interaction/BridgeSpyStallHandler.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BridgeSpyStallHandler * @flow diff --git a/Libraries/Interaction/FrameRateLogger.js b/Libraries/Interaction/FrameRateLogger.js index 3f1265b4140b03..072adeb930f8d8 100644 --- a/Libraries/Interaction/FrameRateLogger.js +++ b/Libraries/Interaction/FrameRateLogger.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FrameRateLogger * @flow diff --git a/Libraries/Interaction/InteractionManager.js b/Libraries/Interaction/InteractionManager.js index 489c5de9148f5f..227e1b05bd3a73 100644 --- a/Libraries/Interaction/InteractionManager.js +++ b/Libraries/Interaction/InteractionManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InteractionManager * @flow diff --git a/Libraries/Interaction/InteractionMixin.js b/Libraries/Interaction/InteractionMixin.js index b0e3104407ea36..9e81a4fddaec1e 100644 --- a/Libraries/Interaction/InteractionMixin.js +++ b/Libraries/Interaction/InteractionMixin.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InteractionMixin * @flow diff --git a/Libraries/Interaction/InteractionStallDebugger.js b/Libraries/Interaction/InteractionStallDebugger.js index 782abbf7edaeaf..8d2bcc82e5f9ba 100644 --- a/Libraries/Interaction/InteractionStallDebugger.js +++ b/Libraries/Interaction/InteractionStallDebugger.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InteractionStallDebugger * @flow diff --git a/Libraries/Interaction/JSEventLoopWatchdog.js b/Libraries/Interaction/JSEventLoopWatchdog.js index 702f18d6c1d70b..2d1866a0c77f2f 100644 --- a/Libraries/Interaction/JSEventLoopWatchdog.js +++ b/Libraries/Interaction/JSEventLoopWatchdog.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule JSEventLoopWatchdog * @flow diff --git a/Libraries/Interaction/PanResponder.js b/Libraries/Interaction/PanResponder.js index bc6774e985eb66..db7d85c87e2714 100644 --- a/Libraries/Interaction/PanResponder.js +++ b/Libraries/Interaction/PanResponder.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PanResponder */ diff --git a/Libraries/Interaction/ReactPerfStallHandler.js b/Libraries/Interaction/ReactPerfStallHandler.js index 0644ace6af5eeb..394bc7533ca1c7 100644 --- a/Libraries/Interaction/ReactPerfStallHandler.js +++ b/Libraries/Interaction/ReactPerfStallHandler.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactPerfStallHandler * @flow diff --git a/Libraries/Interaction/TaskQueue.js b/Libraries/Interaction/TaskQueue.js index 660241fb35bc5a..0ee5e4500af9f0 100644 --- a/Libraries/Interaction/TaskQueue.js +++ b/Libraries/Interaction/TaskQueue.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TaskQueue * @flow diff --git a/Libraries/Interaction/__tests__/Batchinator-test.js b/Libraries/Interaction/__tests__/Batchinator-test.js index 3d28fa0cff5c5e..a0afacd4e0d0cd 100644 --- a/Libraries/Interaction/__tests__/Batchinator-test.js +++ b/Libraries/Interaction/__tests__/Batchinator-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Interaction/__tests__/InteractionManager-test.js b/Libraries/Interaction/__tests__/InteractionManager-test.js index 3c5a7c8814ebb6..0a74b7cc766485 100644 --- a/Libraries/Interaction/__tests__/InteractionManager-test.js +++ b/Libraries/Interaction/__tests__/InteractionManager-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Interaction/__tests__/InteractionMixin-test.js b/Libraries/Interaction/__tests__/InteractionMixin-test.js index 44f63fbb9c828f..08f33d759f5016 100644 --- a/Libraries/Interaction/__tests__/InteractionMixin-test.js +++ b/Libraries/Interaction/__tests__/InteractionMixin-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Interaction/__tests__/TaskQueue-test.js b/Libraries/Interaction/__tests__/TaskQueue-test.js index cd4f7aeed412cc..407e8fa435cd0b 100644 --- a/Libraries/Interaction/__tests__/TaskQueue-test.js +++ b/Libraries/Interaction/__tests__/TaskQueue-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/JSInspector/InspectorAgent.js b/Libraries/JSInspector/InspectorAgent.js index c0d9314a3baec0..a5b6cca0da3da3 100644 --- a/Libraries/JSInspector/InspectorAgent.js +++ b/Libraries/JSInspector/InspectorAgent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InspectorAgent * @flow diff --git a/Libraries/JSInspector/JSInspector.js b/Libraries/JSInspector/JSInspector.js index 859188420c8642..9a6b13ffb7c690 100644 --- a/Libraries/JSInspector/JSInspector.js +++ b/Libraries/JSInspector/JSInspector.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule JSInspector * @flow diff --git a/Libraries/JSInspector/NetworkAgent.js b/Libraries/JSInspector/NetworkAgent.js index 4314411b8e0076..56f6f2a37fdccf 100644 --- a/Libraries/JSInspector/NetworkAgent.js +++ b/Libraries/JSInspector/NetworkAgent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NetworkAgent * @flow diff --git a/Libraries/LayoutAnimation/LayoutAnimation.js b/Libraries/LayoutAnimation/LayoutAnimation.js index dc0720ba09b2da..fe4a2cc2b84328 100644 --- a/Libraries/LayoutAnimation/LayoutAnimation.js +++ b/Libraries/LayoutAnimation/LayoutAnimation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LayoutAnimation * @flow diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 06dc75c3b9eef8..799ad055cbe850 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Linking * @flow diff --git a/Libraries/LinkingIOS/RCTLinkingManager.h b/Libraries/LinkingIOS/RCTLinkingManager.h index 8f5f8b89aa7b27..55187727ac95d2 100644 --- a/Libraries/LinkingIOS/RCTLinkingManager.h +++ b/Libraries/LinkingIOS/RCTLinkingManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/LinkingIOS/RCTLinkingManager.m b/Libraries/LinkingIOS/RCTLinkingManager.m index 51a2896cfe4943..50982fa976d669 100644 --- a/Libraries/LinkingIOS/RCTLinkingManager.m +++ b/Libraries/LinkingIOS/RCTLinkingManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLinkingManager.h" diff --git a/Libraries/Lists/FillRateHelper.js b/Libraries/Lists/FillRateHelper.js index 8d52111e1cdbab..f060897356b73a 100644 --- a/Libraries/Lists/FillRateHelper.js +++ b/Libraries/Lists/FillRateHelper.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FillRateHelper * @flow diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index faf93d859c47d3..dc0f5db8b5f8d3 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FlatList * @flow diff --git a/Libraries/Lists/ListView/ListView.js b/Libraries/Lists/ListView/ListView.js index 37c3f34cc21fc5..9aefd2ea9222b3 100644 --- a/Libraries/Lists/ListView/ListView.js +++ b/Libraries/Lists/ListView/ListView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ListView * @flow diff --git a/Libraries/Lists/ListView/ListViewDataSource.js b/Libraries/Lists/ListView/ListViewDataSource.js index 3f7a4c10d64cb2..ec63c94d0f46dd 100644 --- a/Libraries/Lists/ListView/ListViewDataSource.js +++ b/Libraries/Lists/ListView/ListViewDataSource.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ListViewDataSource * @flow diff --git a/Libraries/Lists/ListView/__mocks__/ListViewMock.js b/Libraries/Lists/ListView/__mocks__/ListViewMock.js index 732dc5e1caf208..a691136be39a4f 100644 --- a/Libraries/Lists/ListView/__mocks__/ListViewMock.js +++ b/Libraries/Lists/ListView/__mocks__/ListViewMock.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/Libraries/Lists/MetroListView.js b/Libraries/Lists/MetroListView.js index c839dc020ed346..906164fa9e88f6 100644 --- a/Libraries/Lists/MetroListView.js +++ b/Libraries/Lists/MetroListView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MetroListView * @flow diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 354d6c6a426707..3dfc99bd3a17dd 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SectionList * @flow diff --git a/Libraries/Lists/ViewabilityHelper.js b/Libraries/Lists/ViewabilityHelper.js index 04bbef2f06e5fe..0c0a8356019075 100644 --- a/Libraries/Lists/ViewabilityHelper.js +++ b/Libraries/Lists/ViewabilityHelper.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewabilityHelper * @flow diff --git a/Libraries/Lists/VirtualizeUtils.js b/Libraries/Lists/VirtualizeUtils.js index 8845ed83566f16..663b36b8cc6e76 100644 --- a/Libraries/Lists/VirtualizeUtils.js +++ b/Libraries/Lists/VirtualizeUtils.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule VirtualizeUtils * @flow diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 22fffa79cc2adf..7ca090e88e1809 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule VirtualizedList * @flow diff --git a/Libraries/Lists/VirtualizedSectionList.js b/Libraries/Lists/VirtualizedSectionList.js index fbc83e2d153551..2bb196814abf13 100644 --- a/Libraries/Lists/VirtualizedSectionList.js +++ b/Libraries/Lists/VirtualizedSectionList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule VirtualizedSectionList * @flow diff --git a/Libraries/Lists/__flowtests__/FlatList-flowtest.js b/Libraries/Lists/__flowtests__/FlatList-flowtest.js index 3fe757b63d8439..d8cbd75a153db4 100644 --- a/Libraries/Lists/__flowtests__/FlatList-flowtest.js +++ b/Libraries/Lists/__flowtests__/FlatList-flowtest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/Libraries/Lists/__flowtests__/SectionList-flowtest.js b/Libraries/Lists/__flowtests__/SectionList-flowtest.js index 035e9e6f0f010c..93fa77c4631682 100644 --- a/Libraries/Lists/__flowtests__/SectionList-flowtest.js +++ b/Libraries/Lists/__flowtests__/SectionList-flowtest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/Libraries/Lists/__tests__/FillRateHelper-test.js b/Libraries/Lists/__tests__/FillRateHelper-test.js index 22e09f5a0a5816..612d02c5bf9ab0 100644 --- a/Libraries/Lists/__tests__/FillRateHelper-test.js +++ b/Libraries/Lists/__tests__/FillRateHelper-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Lists/__tests__/FlatList-test.js b/Libraries/Lists/__tests__/FlatList-test.js index a6d1ca5054163f..28dd377bd13862 100644 --- a/Libraries/Lists/__tests__/FlatList-test.js +++ b/Libraries/Lists/__tests__/FlatList-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Lists/__tests__/SectionList-test.js b/Libraries/Lists/__tests__/SectionList-test.js index 338cf5273c67cf..f669879df839d9 100644 --- a/Libraries/Lists/__tests__/SectionList-test.js +++ b/Libraries/Lists/__tests__/SectionList-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Lists/__tests__/ViewabilityHelper-test.js b/Libraries/Lists/__tests__/ViewabilityHelper-test.js index 1494b5b2f33542..ed94f7f7e253d2 100644 --- a/Libraries/Lists/__tests__/ViewabilityHelper-test.js +++ b/Libraries/Lists/__tests__/ViewabilityHelper-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Lists/__tests__/VirtualizeUtils-test.js b/Libraries/Lists/__tests__/VirtualizeUtils-test.js index 3e8b2c9433f592..2361a86aaeff62 100644 --- a/Libraries/Lists/__tests__/VirtualizeUtils-test.js +++ b/Libraries/Lists/__tests__/VirtualizeUtils-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Lists/__tests__/VirtualizedList-test.js b/Libraries/Lists/__tests__/VirtualizedList-test.js index d9c4e09a52ea45..14aec9140f1195 100644 --- a/Libraries/Lists/__tests__/VirtualizedList-test.js +++ b/Libraries/Lists/__tests__/VirtualizedList-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @format diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 6d3c16a20a9738..50a73dd1919720 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Modal * @flow diff --git a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h index 3364f174ae3734..40763fd5b3a281 100644 --- a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h +++ b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h index 8d6cdd3e566971..d6ae6701e6ef99 100644 --- a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h +++ b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimationDriver.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m index 027ca81524f25f..b1e84d675db765 100644 --- a/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDecayAnimation.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h b/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h index 9fef45c83ec350..c6b6f7979b28bc 100644 --- a/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h +++ b/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m b/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m index dd7dfc9cf327d0..9c35b13fc237fa 100644 --- a/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTEventAnimation.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h index 403ce7796a42d4..979c45a8c32dfe 100644 --- a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h +++ b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimationDriver.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m index 53846b2d0a2204..ddcc056acfe975 100644 --- a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTFrameAnimation.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h index acf1ae6063bedf..fe721f61d09d1a 100644 --- a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h +++ b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimationDriver.h" diff --git a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m index 932433a16dae08..7356738f22c5c1 100644 --- a/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSpringAnimation.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.h index 83641afead8442..0e2853df2cc151 100644 --- a/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m index 54175b6b419e76..0bfb4d576be9b6 100644 --- a/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAdditionAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h index a8cad4e939c82e..e9d000910ffe3b 100644 --- a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m index 0b8bd7ab02f16e..71397403a09e72 100644 --- a/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h index 3d6f1db192a228..5d89091eafcebc 100644 --- a/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m index 811382a3bf1888..f2e7d8cd0574a5 100644 --- a/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDiffClampAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.h index 83fac043b5437d..0702012dbab1ec 100644 --- a/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m index 0ae3712ef1e364..a66807c3d3f878 100644 --- a/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDivisionAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.h index 2257e49646dc20..e083525d688da2 100644 --- a/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m index be804eda0492f4..b7fa8b50974d23 100644 --- a/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTInterpolationAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h index 5a50bf34d0533e..08de0e1aee2f27 100644 --- a/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.m index adf252cdfceac3..c2802741d23789 100644 --- a/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTModuloAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModuloAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.h index 43a1ff9b957ca9..481c3d5aa5b310 100644 --- a/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m index c75c00e825e48e..29c151aed3f9a1 100644 --- a/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMultiplicationAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.h index ac220f43f4e0ae..24919120a951b4 100644 --- a/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m index e25b8cf42d3771..24fb1e82da888c 100644 --- a/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPropsAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h index 285ebf9deea6a0..637b120c48a42a 100644 --- a/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m index 774cdbf526668c..a62d0309306620 100644 --- a/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTStyleAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.h index 18d9eba0b8aa76..59d6951def67ad 100644 --- a/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m index b2daa88b2c9c09..fd8ca221f93c72 100644 --- a/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTransformAnimatedNode.h" diff --git a/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h b/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h index 5b66520b8210b5..8360dc659fb810 100644 --- a/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h +++ b/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m b/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m index 82eff7b62daed3..c433bba3414c81 100644 --- a/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m +++ b/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTValueAnimatedNode.h" diff --git a/Libraries/NativeAnimation/RCTAnimationUtils.h b/Libraries/NativeAnimation/RCTAnimationUtils.h index 5327c36676405a..d1dba830ee96aa 100644 --- a/Libraries/NativeAnimation/RCTAnimationUtils.h +++ b/Libraries/NativeAnimation/RCTAnimationUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/RCTAnimationUtils.m b/Libraries/NativeAnimation/RCTAnimationUtils.m index d159c05b80416d..8f8d4cfb817a72 100644 --- a/Libraries/NativeAnimation/RCTAnimationUtils.m +++ b/Libraries/NativeAnimation/RCTAnimationUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAnimationUtils.h" diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedModule.h b/Libraries/NativeAnimation/RCTNativeAnimatedModule.h index e4ffa3aa95cb27..5ca4e95bd82562 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedModule.h +++ b/Libraries/NativeAnimation/RCTNativeAnimatedModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedModule.m b/Libraries/NativeAnimation/RCTNativeAnimatedModule.m index 1125513ae08b06..2032f3a01a03c8 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedModule.m +++ b/Libraries/NativeAnimation/RCTNativeAnimatedModule.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNativeAnimatedModule.h" diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h index 1a0b684c10a271..ae2176684007d6 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +++ b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m index ee82a8008c7cf6..e05286decf9eb2 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +++ b/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNativeAnimatedNodesManager.h" diff --git a/Libraries/Network/FormData.js b/Libraries/Network/FormData.js index 63e1cb6320df1b..669bf0f2a30cf7 100644 --- a/Libraries/Network/FormData.js +++ b/Libraries/Network/FormData.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FormData * @flow diff --git a/Libraries/Network/NetInfo.js b/Libraries/Network/NetInfo.js index 70466719cb809e..64a8386d07b77a 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NetInfo * @flow diff --git a/Libraries/Network/RCTDataRequestHandler.h b/Libraries/Network/RCTDataRequestHandler.h index 11f84592ec7d30..b0ded9161f283a 100644 --- a/Libraries/Network/RCTDataRequestHandler.h +++ b/Libraries/Network/RCTDataRequestHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTDataRequestHandler.m b/Libraries/Network/RCTDataRequestHandler.m index c71ce79a8ef258..f0e36dfb472654 100644 --- a/Libraries/Network/RCTDataRequestHandler.m +++ b/Libraries/Network/RCTDataRequestHandler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDataRequestHandler.h" diff --git a/Libraries/Network/RCTFileRequestHandler.h b/Libraries/Network/RCTFileRequestHandler.h index 261e7a0fbf1b90..7ee7952c5259d9 100644 --- a/Libraries/Network/RCTFileRequestHandler.h +++ b/Libraries/Network/RCTFileRequestHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTFileRequestHandler.m b/Libraries/Network/RCTFileRequestHandler.m index bc2e14171a3908..7c4585a509d0f9 100644 --- a/Libraries/Network/RCTFileRequestHandler.m +++ b/Libraries/Network/RCTFileRequestHandler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTFileRequestHandler.h" diff --git a/Libraries/Network/RCTHTTPRequestHandler.h b/Libraries/Network/RCTHTTPRequestHandler.h index b2395ce4d514f6..5148e6a510cc42 100644 --- a/Libraries/Network/RCTHTTPRequestHandler.h +++ b/Libraries/Network/RCTHTTPRequestHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTHTTPRequestHandler.mm b/Libraries/Network/RCTHTTPRequestHandler.mm index 1a6858820a20c1..6376ad31c812b2 100644 --- a/Libraries/Network/RCTHTTPRequestHandler.mm +++ b/Libraries/Network/RCTHTTPRequestHandler.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTHTTPRequestHandler.h" diff --git a/Libraries/Network/RCTNetInfo.h b/Libraries/Network/RCTNetInfo.h index fabc291e0fbbf6..e38162d2dcbb7b 100644 --- a/Libraries/Network/RCTNetInfo.h +++ b/Libraries/Network/RCTNetInfo.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTNetInfo.m b/Libraries/Network/RCTNetInfo.m index be04f411881ecc..e41079b89699cd 100644 --- a/Libraries/Network/RCTNetInfo.m +++ b/Libraries/Network/RCTNetInfo.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNetInfo.h" diff --git a/Libraries/Network/RCTNetworkTask.h b/Libraries/Network/RCTNetworkTask.h index f39e32a50c8867..5d54adaf4ffdfd 100644 --- a/Libraries/Network/RCTNetworkTask.h +++ b/Libraries/Network/RCTNetworkTask.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTNetworkTask.m b/Libraries/Network/RCTNetworkTask.m index 409da0e719fc9a..e13b3f6328b0e6 100644 --- a/Libraries/Network/RCTNetworkTask.m +++ b/Libraries/Network/RCTNetworkTask.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTNetworking.android.js b/Libraries/Network/RCTNetworking.android.js index e6292ccfefa6ea..9ec01dccecb838 100644 --- a/Libraries/Network/RCTNetworking.android.js +++ b/Libraries/Network/RCTNetworking.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTNetworking * @flow diff --git a/Libraries/Network/RCTNetworking.h b/Libraries/Network/RCTNetworking.h index 2aba529bf4eac1..463dc8f988a107 100644 --- a/Libraries/Network/RCTNetworking.h +++ b/Libraries/Network/RCTNetworking.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Network/RCTNetworking.ios.js b/Libraries/Network/RCTNetworking.ios.js index 4e2bfd1bef765f..004322a080f1bc 100644 --- a/Libraries/Network/RCTNetworking.ios.js +++ b/Libraries/Network/RCTNetworking.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTNetworking * @flow diff --git a/Libraries/Network/RCTNetworking.mm b/Libraries/Network/RCTNetworking.mm index 9e10791efc0edf..fe86d31e67e0ff 100644 --- a/Libraries/Network/RCTNetworking.mm +++ b/Libraries/Network/RCTNetworking.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ diff --git a/Libraries/Network/XHRInterceptor.js b/Libraries/Network/XHRInterceptor.js index 0c037c8e0359a7..09cc3b22038a56 100644 --- a/Libraries/Network/XHRInterceptor.js +++ b/Libraries/Network/XHRInterceptor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule XHRInterceptor */ diff --git a/Libraries/Network/XMLHttpRequest.js b/Libraries/Network/XMLHttpRequest.js index 082aaa8932fe23..d17001d3743f34 100644 --- a/Libraries/Network/XMLHttpRequest.js +++ b/Libraries/Network/XMLHttpRequest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule XMLHttpRequest * @flow diff --git a/Libraries/Network/__tests__/FormData-test.js b/Libraries/Network/__tests__/FormData-test.js index fe132232eb02e5..a2b8eb0e7a4f1c 100644 --- a/Libraries/Network/__tests__/FormData-test.js +++ b/Libraries/Network/__tests__/FormData-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Network/__tests__/XMLHttpRequest-test.js b/Libraries/Network/__tests__/XMLHttpRequest-test.js index e03172db000edf..e4a4ed066494d0 100644 --- a/Libraries/Network/__tests__/XMLHttpRequest-test.js +++ b/Libraries/Network/__tests__/XMLHttpRequest-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Network/convertRequestBody.js b/Libraries/Network/convertRequestBody.js index 9a826d46e2c603..2d3ecc7353aa8d 100644 --- a/Libraries/Network/convertRequestBody.js +++ b/Libraries/Network/convertRequestBody.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule convertRequestBody * @flow diff --git a/Libraries/Network/fetch.js b/Libraries/Network/fetch.js index d34d46987a1484..5a0de646c91258 100644 --- a/Libraries/Network/fetch.js +++ b/Libraries/Network/fetch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule fetch * diff --git a/Libraries/Performance/QuickPerformanceLogger.js b/Libraries/Performance/QuickPerformanceLogger.js index 99516a4d5a0683..4eec7220a7cc7c 100644 --- a/Libraries/Performance/QuickPerformanceLogger.js +++ b/Libraries/Performance/QuickPerformanceLogger.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule QuickPerformanceLogger * @flow diff --git a/Libraries/Performance/SamplingProfiler.js b/Libraries/Performance/SamplingProfiler.js index 87142782efc4d0..739274399bde9f 100644 --- a/Libraries/Performance/SamplingProfiler.js +++ b/Libraries/Performance/SamplingProfiler.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SamplingProfiler * @flow diff --git a/Libraries/Performance/Systrace.js b/Libraries/Performance/Systrace.js index e491d7765dd2f5..002c12f34fa7b4 100644 --- a/Libraries/Performance/Systrace.js +++ b/Libraries/Performance/Systrace.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Systrace * @flow diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index f06e6af51ecd9b..7cb8a8411c08c4 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PermissionsAndroid * @flow diff --git a/Libraries/Promise.js b/Libraries/Promise.js index 61ea1ede732dc7..288ee75f6f0f72 100644 --- a/Libraries/Promise.js +++ b/Libraries/Promise.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Promise * @flow diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 0b13954834954f..1a131a5744e353 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PushNotificationIOS * @flow diff --git a/Libraries/PushNotificationIOS/RCTPushNotificationManager.h b/Libraries/PushNotificationIOS/RCTPushNotificationManager.h index 82605468f1867d..8f19ede508a7d7 100644 --- a/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +++ b/Libraries/PushNotificationIOS/RCTPushNotificationManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/PushNotificationIOS/RCTPushNotificationManager.m b/Libraries/PushNotificationIOS/RCTPushNotificationManager.m index aeb8af20224087..77aff3cbe81fa0 100644 --- a/Libraries/PushNotificationIOS/RCTPushNotificationManager.m +++ b/Libraries/PushNotificationIOS/RCTPushNotificationManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPushNotificationManager.h" diff --git a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.h b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.h index 889108f5d0662e..98e7f9ce2c1c34 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.h +++ b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.m b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.m index cee6e01b97e045..9c500274942718 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.m +++ b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestCase.m @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.h b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.h index 6ae45d2313d629..21e55d847d2715 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.h +++ b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.m b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.m index 73af891598867d..40bc79a085926b 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.m +++ b/Libraries/RCTTest/FBSnapshotTestCase/FBSnapshotTestController.m @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/RCTTest/RCTSnapshotManager.h b/Libraries/RCTTest/RCTSnapshotManager.h index 24486906b638e1..de7ecc818c49b6 100644 --- a/Libraries/RCTTest/RCTSnapshotManager.h +++ b/Libraries/RCTTest/RCTSnapshotManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/RCTTest/RCTSnapshotManager.m b/Libraries/RCTTest/RCTSnapshotManager.m index e74cf9c3005d7b..5f1d97337cbfa2 100644 --- a/Libraries/RCTTest/RCTSnapshotManager.m +++ b/Libraries/RCTTest/RCTSnapshotManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSnapshotManager.h" diff --git a/Libraries/RCTTest/RCTTestModule.h b/Libraries/RCTTest/RCTTestModule.h index 7bf93034e24d7d..b658a76c1fca9e 100644 --- a/Libraries/RCTTest/RCTTestModule.h +++ b/Libraries/RCTTest/RCTTestModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/RCTTest/RCTTestModule.m b/Libraries/RCTTest/RCTTestModule.m index dd2424d31ddbbc..4f44c4c40c9e68 100644 --- a/Libraries/RCTTest/RCTTestModule.m +++ b/Libraries/RCTTest/RCTTestModule.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTestModule.h" diff --git a/Libraries/RCTTest/RCTTestRunner.h b/Libraries/RCTTest/RCTTestRunner.h index 9a50e94b2c9f13..39e032650e1477 100644 --- a/Libraries/RCTTest/RCTTestRunner.h +++ b/Libraries/RCTTest/RCTTestRunner.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/RCTTest/RCTTestRunner.m b/Libraries/RCTTest/RCTTestRunner.m index cb865302087975..00e97137282d0b 100644 --- a/Libraries/RCTTest/RCTTestRunner.m +++ b/Libraries/RCTTest/RCTTestRunner.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTestRunner.h" diff --git a/Libraries/RCTTest/SnapshotViewIOS.android.js b/Libraries/RCTTest/SnapshotViewIOS.android.js index c9127822d50c2b..ef8eb9d7bf67f6 100644 --- a/Libraries/RCTTest/SnapshotViewIOS.android.js +++ b/Libraries/RCTTest/SnapshotViewIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SnapshotViewIOS */ diff --git a/Libraries/RCTTest/SnapshotViewIOS.ios.js b/Libraries/RCTTest/SnapshotViewIOS.ios.js index a3f4ee06cadf41..494830cd4ff3c0 100644 --- a/Libraries/RCTTest/SnapshotViewIOS.ios.js +++ b/Libraries/RCTTest/SnapshotViewIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SnapshotViewIOS * @flow diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index 3c5e3e2cd40c53..cb1ea048e4adbc 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AppContainer * @format diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 98699f18f0a17d..87bd07a6dd14f2 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AppRegistry * @flow diff --git a/Libraries/ReactNative/FabricUIManager.js b/Libraries/ReactNative/FabricUIManager.js index df6ea4f0c83d75..641df41755fdc9 100644 --- a/Libraries/ReactNative/FabricUIManager.js +++ b/Libraries/ReactNative/FabricUIManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule FabricUIManager * @flow diff --git a/Libraries/ReactNative/I18nManager.js b/Libraries/ReactNative/I18nManager.js index 7c6ad67a4e2bfe..a8a256d515f480 100644 --- a/Libraries/ReactNative/I18nManager.js +++ b/Libraries/ReactNative/I18nManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule I18nManager * @flow diff --git a/Libraries/ReactNative/UIManager.js b/Libraries/ReactNative/UIManager.js index ed56fb626862b5..0ad18a0b27dcdb 100644 --- a/Libraries/ReactNative/UIManager.js +++ b/Libraries/ReactNative/UIManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UIManager * @flow diff --git a/Libraries/ReactNative/UIManagerStatTracker.js b/Libraries/ReactNative/UIManagerStatTracker.js index 5d03e432aa3099..31f0a83613ffd1 100644 --- a/Libraries/ReactNative/UIManagerStatTracker.js +++ b/Libraries/ReactNative/UIManagerStatTracker.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UIManagerStatTracker * @flow diff --git a/Libraries/ReactNative/YellowBox.js b/Libraries/ReactNative/YellowBox.js index 08421ad2538c85..8bd31d3cd8b768 100644 --- a/Libraries/ReactNative/YellowBox.js +++ b/Libraries/ReactNative/YellowBox.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule YellowBox * @flow diff --git a/Libraries/ReactNative/queryLayoutByID.js b/Libraries/ReactNative/queryLayoutByID.js index 3b6909e460cccb..d484405920d29a 100644 --- a/Libraries/ReactNative/queryLayoutByID.js +++ b/Libraries/ReactNative/queryLayoutByID.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule queryLayoutByID * @flow diff --git a/Libraries/ReactNative/renderApplication.js b/Libraries/ReactNative/renderApplication.js index 6d6783ec2b6a4e..ed9bf46a34198c 100644 --- a/Libraries/ReactNative/renderApplication.js +++ b/Libraries/ReactNative/renderApplication.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule renderApplication * @format diff --git a/Libraries/ReactNative/renderFabricSurface.js b/Libraries/ReactNative/renderFabricSurface.js index 268e588e4f2907..59eb2f2926aa8a 100644 --- a/Libraries/ReactNative/renderFabricSurface.js +++ b/Libraries/ReactNative/renderFabricSurface.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule renderFabricSurface * @format diff --git a/Libraries/ReactNative/requireNativeComponent.js b/Libraries/ReactNative/requireNativeComponent.js index 763572dc0d00b0..c4320c0a84b998 100644 --- a/Libraries/ReactNative/requireNativeComponent.js +++ b/Libraries/ReactNative/requireNativeComponent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule requireNativeComponent * @flow diff --git a/Libraries/ReactNative/verifyPropTypes.js b/Libraries/ReactNative/verifyPropTypes.js index cea7fc7bde80e3..30d29f200adb60 100644 --- a/Libraries/ReactNative/verifyPropTypes.js +++ b/Libraries/ReactNative/verifyPropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule verifyPropTypes * @flow diff --git a/Libraries/Settings/RCTSettingsManager.h b/Libraries/Settings/RCTSettingsManager.h index 2a2f920fc143a2..a331074c64a4f4 100644 --- a/Libraries/Settings/RCTSettingsManager.h +++ b/Libraries/Settings/RCTSettingsManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Settings/RCTSettingsManager.m b/Libraries/Settings/RCTSettingsManager.m index d41dc3a9d0e934..79c18707016c53 100644 --- a/Libraries/Settings/RCTSettingsManager.m +++ b/Libraries/Settings/RCTSettingsManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSettingsManager.h" diff --git a/Libraries/Settings/Settings.android.js b/Libraries/Settings/Settings.android.js index d13a32ba9218bc..946c4aa9cde219 100644 --- a/Libraries/Settings/Settings.android.js +++ b/Libraries/Settings/Settings.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Settings * @flow diff --git a/Libraries/Settings/Settings.ios.js b/Libraries/Settings/Settings.ios.js index beda544b43e51c..08f1be6a1c8ae1 100644 --- a/Libraries/Settings/Settings.ios.js +++ b/Libraries/Settings/Settings.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Settings * @flow diff --git a/Libraries/Share/Share.js b/Libraries/Share/Share.js index 44d7433218bed2..e41b29db8e54d8 100644 --- a/Libraries/Share/Share.js +++ b/Libraries/Share/Share.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Share * @flow diff --git a/Libraries/Storage/AsyncStorage.js b/Libraries/Storage/AsyncStorage.js index fb54d6beef95b8..62228f7830a593 100644 --- a/Libraries/Storage/AsyncStorage.js +++ b/Libraries/Storage/AsyncStorage.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AsyncStorage * @noflow diff --git a/Libraries/StyleSheet/ColorPropType.js b/Libraries/StyleSheet/ColorPropType.js index faca884315ee0e..60e362275bfbc9 100644 --- a/Libraries/StyleSheet/ColorPropType.js +++ b/Libraries/StyleSheet/ColorPropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ColorPropType */ diff --git a/Libraries/StyleSheet/EdgeInsetsPropType.js b/Libraries/StyleSheet/EdgeInsetsPropType.js index 9c38774478744b..307c6be2e5daed 100644 --- a/Libraries/StyleSheet/EdgeInsetsPropType.js +++ b/Libraries/StyleSheet/EdgeInsetsPropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EdgeInsetsPropType * @flow diff --git a/Libraries/StyleSheet/LayoutPropTypes.js b/Libraries/StyleSheet/LayoutPropTypes.js index 03f49e3ce99cab..5921334c5b7cea 100644 --- a/Libraries/StyleSheet/LayoutPropTypes.js +++ b/Libraries/StyleSheet/LayoutPropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LayoutPropTypes * @flow diff --git a/Libraries/StyleSheet/PointPropType.js b/Libraries/StyleSheet/PointPropType.js index 7257e365dd97d0..a55628adbee7d3 100644 --- a/Libraries/StyleSheet/PointPropType.js +++ b/Libraries/StyleSheet/PointPropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PointPropType * @flow diff --git a/Libraries/StyleSheet/StyleSheet.js b/Libraries/StyleSheet/StyleSheet.js index c32d1a9b64a0df..3971365c98e9c8 100644 --- a/Libraries/StyleSheet/StyleSheet.js +++ b/Libraries/StyleSheet/StyleSheet.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StyleSheet * @flow diff --git a/Libraries/StyleSheet/StyleSheetPropType.js b/Libraries/StyleSheet/StyleSheetPropType.js index 5bea428c2e62ba..ac779f915393c8 100644 --- a/Libraries/StyleSheet/StyleSheetPropType.js +++ b/Libraries/StyleSheet/StyleSheetPropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StyleSheetPropType * @flow diff --git a/Libraries/StyleSheet/StyleSheetTypes.js b/Libraries/StyleSheet/StyleSheetTypes.js index 73fb354435fb1a..cfd0f50bba2ccf 100644 --- a/Libraries/StyleSheet/StyleSheetTypes.js +++ b/Libraries/StyleSheet/StyleSheetTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StyleSheetTypes * @flow diff --git a/Libraries/StyleSheet/StyleSheetValidation.js b/Libraries/StyleSheet/StyleSheetValidation.js index a1f63aa037e9a9..3e1af7bc1dd2f7 100644 --- a/Libraries/StyleSheet/StyleSheetValidation.js +++ b/Libraries/StyleSheet/StyleSheetValidation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule StyleSheetValidation * @flow diff --git a/Libraries/StyleSheet/TransformPropTypes.js b/Libraries/StyleSheet/TransformPropTypes.js index da3e39e56c805f..bd1f3d352e116d 100644 --- a/Libraries/StyleSheet/TransformPropTypes.js +++ b/Libraries/StyleSheet/TransformPropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TransformPropTypes * @flow diff --git a/Libraries/StyleSheet/__tests__/flattenStyle-test.js b/Libraries/StyleSheet/__tests__/flattenStyle-test.js index 316737424e76bf..6613944ed9664a 100644 --- a/Libraries/StyleSheet/__tests__/flattenStyle-test.js +++ b/Libraries/StyleSheet/__tests__/flattenStyle-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/StyleSheet/__tests__/normalizeColor-test.js b/Libraries/StyleSheet/__tests__/normalizeColor-test.js index 65eee3facc80cb..d7482a9c55bd55 100644 --- a/Libraries/StyleSheet/__tests__/normalizeColor-test.js +++ b/Libraries/StyleSheet/__tests__/normalizeColor-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/StyleSheet/__tests__/processColor-test.js b/Libraries/StyleSheet/__tests__/processColor-test.js index 48f7be3ca08209..2af0baa108a742 100644 --- a/Libraries/StyleSheet/__tests__/processColor-test.js +++ b/Libraries/StyleSheet/__tests__/processColor-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/StyleSheet/__tests__/processTransform-test.js b/Libraries/StyleSheet/__tests__/processTransform-test.js index bd2317dba4d7e9..2a5c9380a370b6 100644 --- a/Libraries/StyleSheet/__tests__/processTransform-test.js +++ b/Libraries/StyleSheet/__tests__/processTransform-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/StyleSheet/__tests__/setNormalizedColorAlpha-test.js b/Libraries/StyleSheet/__tests__/setNormalizedColorAlpha-test.js index 7057cf70453607..13e47aff565726 100644 --- a/Libraries/StyleSheet/__tests__/setNormalizedColorAlpha-test.js +++ b/Libraries/StyleSheet/__tests__/setNormalizedColorAlpha-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/StyleSheet/flattenStyle.js b/Libraries/StyleSheet/flattenStyle.js index f0998626979d77..88f839e2885ec3 100644 --- a/Libraries/StyleSheet/flattenStyle.js +++ b/Libraries/StyleSheet/flattenStyle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule flattenStyle * @flow diff --git a/Libraries/StyleSheet/normalizeColor.js b/Libraries/StyleSheet/normalizeColor.js index d4f0252b5ac88a..09c2e1525d5473 100755 --- a/Libraries/StyleSheet/normalizeColor.js +++ b/Libraries/StyleSheet/normalizeColor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule normalizeColor * @flow diff --git a/Libraries/StyleSheet/processColor.js b/Libraries/StyleSheet/processColor.js index b4b471432334ae..7d3a802bbbe3c2 100644 --- a/Libraries/StyleSheet/processColor.js +++ b/Libraries/StyleSheet/processColor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule processColor * @flow diff --git a/Libraries/StyleSheet/processTransform.js b/Libraries/StyleSheet/processTransform.js index eed0f16caa2aa7..09cc7ca95d18c0 100644 --- a/Libraries/StyleSheet/processTransform.js +++ b/Libraries/StyleSheet/processTransform.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule processTransform * @flow diff --git a/Libraries/StyleSheet/setNormalizedColorAlpha.js b/Libraries/StyleSheet/setNormalizedColorAlpha.js index cd943309922c0e..309d86cea12e80 100644 --- a/Libraries/StyleSheet/setNormalizedColorAlpha.js +++ b/Libraries/StyleSheet/setNormalizedColorAlpha.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule setNormalizedColorAlpha * @flow diff --git a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.h b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.h index 49017bda5bdc92..99e89e56ad95c9 100644 --- a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.h +++ b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm index d2875f2136f3f6..6cbdbd8a99716c 100644 --- a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm +++ b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceBackedComponent.h" diff --git a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h index 819d927d0ea444..c2bfbc81bf095a 100644 --- a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h +++ b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.mm b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.mm index 25d1819a552aac..60a72cb0ad25be 100644 --- a/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.mm +++ b/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceBackedComponentState.h" diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent+Internal.h b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent+Internal.h index 184ff32a9342c6..269c73e79eccbe 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent+Internal.h +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent+Internal.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.h b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.h index c1dd823afb5bb7..975a72bbc64e68 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.h +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm index 2d2a2cc10f0b63..963813ff80eedf 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceHostingComponent.h" diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.h b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.h index 04b8fcafa308c8..7937090ab225cd 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.h +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm index c44dbcd007e162..73ba8e3767da55 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceHostingComponentController.h" diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h index 001cbd84e1f7a7..5c9946eb350af1 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h index b1279aaa595322..2759fdd9fcdbeb 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm index f5573db67fc50f..c2e44c9db345ff 100644 --- a/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm +++ b/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceHostingComponentState.h" diff --git a/Libraries/Text/BaseText/RCTBaseTextShadowView.h b/Libraries/Text/BaseText/RCTBaseTextShadowView.h index 736eed8ac0b950..331d1ca2161e3f 100644 --- a/Libraries/Text/BaseText/RCTBaseTextShadowView.h +++ b/Libraries/Text/BaseText/RCTBaseTextShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/BaseText/RCTBaseTextShadowView.m b/Libraries/Text/BaseText/RCTBaseTextShadowView.m index efafad36de0959..85162926eb198b 100644 --- a/Libraries/Text/BaseText/RCTBaseTextShadowView.m +++ b/Libraries/Text/BaseText/RCTBaseTextShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextShadowView.h" diff --git a/Libraries/Text/BaseText/RCTBaseTextViewManager.h b/Libraries/Text/BaseText/RCTBaseTextViewManager.h index da73cf07083fe9..b6c105e3759f54 100644 --- a/Libraries/Text/BaseText/RCTBaseTextViewManager.h +++ b/Libraries/Text/BaseText/RCTBaseTextViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/BaseText/RCTBaseTextViewManager.m b/Libraries/Text/BaseText/RCTBaseTextViewManager.m index 89640c7e9a68bc..a5d0b2c630975c 100644 --- a/Libraries/Text/BaseText/RCTBaseTextViewManager.m +++ b/Libraries/Text/BaseText/RCTBaseTextViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextViewManager.h" diff --git a/Libraries/Text/RCTConvert+Text.h b/Libraries/Text/RCTConvert+Text.h index f48a794a2b2a54..4cead0948ab73c 100644 --- a/Libraries/Text/RCTConvert+Text.h +++ b/Libraries/Text/RCTConvert+Text.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/RCTConvert+Text.m b/Libraries/Text/RCTConvert+Text.m index 5e4815b1e70eba..d4d1b167c8797c 100644 --- a/Libraries/Text/RCTConvert+Text.m +++ b/Libraries/Text/RCTConvert+Text.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert+Text.h" diff --git a/Libraries/Text/RCTTextAttributes.h b/Libraries/Text/RCTTextAttributes.h index 7752c2c66b9ee0..df9171c85d0aa1 100644 --- a/Libraries/Text/RCTTextAttributes.h +++ b/Libraries/Text/RCTTextAttributes.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/RCTTextAttributes.m b/Libraries/Text/RCTTextAttributes.m index 9b1ba122196cef..6427e303158bb9 100644 --- a/Libraries/Text/RCTTextAttributes.m +++ b/Libraries/Text/RCTTextAttributes.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTextAttributes.h" diff --git a/Libraries/Text/RawText/RCTRawTextShadowView.h b/Libraries/Text/RawText/RCTRawTextShadowView.h index 52e61f0ba90d3b..51760308ba090e 100644 --- a/Libraries/Text/RawText/RCTRawTextShadowView.h +++ b/Libraries/Text/RawText/RCTRawTextShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/RawText/RCTRawTextShadowView.m b/Libraries/Text/RawText/RCTRawTextShadowView.m index d350d29684c91d..12c01d1b5f6af5 100644 --- a/Libraries/Text/RawText/RCTRawTextShadowView.m +++ b/Libraries/Text/RawText/RCTRawTextShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRawTextShadowView.h" diff --git a/Libraries/Text/RawText/RCTRawTextViewManager.h b/Libraries/Text/RawText/RCTRawTextViewManager.h index 38d83e385be9d3..8ff302815527e7 100644 --- a/Libraries/Text/RawText/RCTRawTextViewManager.h +++ b/Libraries/Text/RawText/RCTRawTextViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/RawText/RCTRawTextViewManager.m b/Libraries/Text/RawText/RCTRawTextViewManager.m index 17233cdc790d33..f159f73d3b92bb 100644 --- a/Libraries/Text/RawText/RCTRawTextViewManager.m +++ b/Libraries/Text/RawText/RCTRawTextViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRawTextViewManager.h" diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index 110a8489fa97c6..c2ded14887e533 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Text * @flow diff --git a/Libraries/Text/Text/NSTextStorage+FontScaling.h b/Libraries/Text/Text/NSTextStorage+FontScaling.h index f3ea09ab26ad0e..8372a0d2be9183 100644 --- a/Libraries/Text/Text/NSTextStorage+FontScaling.h +++ b/Libraries/Text/Text/NSTextStorage+FontScaling.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/Text/NSTextStorage+FontScaling.m b/Libraries/Text/Text/NSTextStorage+FontScaling.m index 4233bef9675d04..5002dddd8a425c 100644 --- a/Libraries/Text/Text/NSTextStorage+FontScaling.m +++ b/Libraries/Text/Text/NSTextStorage+FontScaling.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "NSTextStorage+FontScaling.h" diff --git a/Libraries/Text/Text/RCTTextShadowView.h b/Libraries/Text/Text/RCTTextShadowView.h index 6cdd8fdd316908..d62748df8169cf 100644 --- a/Libraries/Text/Text/RCTTextShadowView.h +++ b/Libraries/Text/Text/RCTTextShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/Text/RCTTextShadowView.m b/Libraries/Text/Text/RCTTextShadowView.m index 790916354067b0..574454ac3bd512 100644 --- a/Libraries/Text/Text/RCTTextShadowView.m +++ b/Libraries/Text/Text/RCTTextShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTextShadowView.h" diff --git a/Libraries/Text/Text/RCTTextView.h b/Libraries/Text/Text/RCTTextView.h index c8ba22adcbcc31..b8923b1ef5fa4e 100644 --- a/Libraries/Text/Text/RCTTextView.h +++ b/Libraries/Text/Text/RCTTextView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/Text/RCTTextView.m b/Libraries/Text/Text/RCTTextView.m index d065e8073a3c50..45c09313909d51 100644 --- a/Libraries/Text/Text/RCTTextView.m +++ b/Libraries/Text/Text/RCTTextView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTextView.h" diff --git a/Libraries/Text/Text/RCTTextViewManager.h b/Libraries/Text/Text/RCTTextViewManager.h index 957c88d477bf39..d11e4b5919d066 100644 --- a/Libraries/Text/Text/RCTTextViewManager.h +++ b/Libraries/Text/Text/RCTTextViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/Text/RCTTextViewManager.m b/Libraries/Text/Text/RCTTextViewManager.m index f3d28ee7201dec..a729e644898286 100644 --- a/Libraries/Text/Text/RCTTextViewManager.m +++ b/Libraries/Text/Text/RCTTextViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTextViewManager.h" diff --git a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h index 7d280235976cf6..97466f4d455eba 100644 --- a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +++ b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputView.h" diff --git a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m index d97c95172ecfd2..b2d3cbe894c98b 100644 --- a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +++ b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMultilineTextInputView.h" diff --git a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h index b2053435fc54a5..db6c62751ab828 100644 --- a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h +++ b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputViewManager.h" diff --git a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m index de84955739872d..0a2b6d5a4c9a63 100644 --- a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +++ b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMultilineTextInputViewManager.h" diff --git a/Libraries/Text/TextInput/Multiline/RCTUITextView.h b/Libraries/Text/TextInput/Multiline/RCTUITextView.h index c87e092ce1704c..c460d7f1e47b0f 100644 --- a/Libraries/Text/TextInput/Multiline/RCTUITextView.h +++ b/Libraries/Text/TextInput/Multiline/RCTUITextView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/Multiline/RCTUITextView.m b/Libraries/Text/TextInput/Multiline/RCTUITextView.m index 3462b833ff5218..80d49a5f5aef7d 100644 --- a/Libraries/Text/TextInput/Multiline/RCTUITextView.m +++ b/Libraries/Text/TextInput/Multiline/RCTUITextView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUITextView.h" diff --git a/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h b/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h index d124ef2ec54aa0..c580a11ead1c1f 100644 --- a/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +++ b/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h b/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h index b9914c23558f37..6968313acff585 100644 --- a/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +++ b/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m b/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m index 856d708f6f1709..a095c3d0f6f5a3 100644 --- a/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +++ b/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBackedTextInputDelegateAdapter.h" diff --git a/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h b/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h index 32a2a6ae3e65e6..d19e221064c84f 100644 --- a/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +++ b/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h index 3f1e8185b323bb..ea8abd3fdcee78 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h +++ b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextShadowView.h" diff --git a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m index 0d60c3c49d59b6..d1fdbcd3d25012 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputShadowView.h" diff --git a/Libraries/Text/TextInput/RCTBaseTextInputView.h b/Libraries/Text/TextInput/RCTBaseTextInputView.h index 56c8d2b947d92d..fe86b334ba8a3a 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputView.h +++ b/Libraries/Text/TextInput/RCTBaseTextInputView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/RCTBaseTextInputView.m b/Libraries/Text/TextInput/RCTBaseTextInputView.m index 177b4afccd25ea..2d8bb0035fbdd5 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputView.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputView.h" diff --git a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h index 710536aaa48ee6..c370779b206610 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h +++ b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextViewManager.h" diff --git a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m index 1e192fe944aacd..e9b53769690b71 100644 --- a/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +++ b/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputViewManager.h" diff --git a/Libraries/Text/TextInput/RCTTextSelection.h b/Libraries/Text/TextInput/RCTTextSelection.h index 804af5f283845f..b77746a91647d6 100644 --- a/Libraries/Text/TextInput/RCTTextSelection.h +++ b/Libraries/Text/TextInput/RCTTextSelection.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/RCTTextSelection.m b/Libraries/Text/TextInput/RCTTextSelection.m index f37d00662d6d6c..436228c5545ab2 100644 --- a/Libraries/Text/TextInput/RCTTextSelection.m +++ b/Libraries/Text/TextInput/RCTTextSelection.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTextSelection.h" diff --git a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h index 5338e0c630c870..1c99fed6354501 100644 --- a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h +++ b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputView.h" diff --git a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m index 4f4959b63616a1..d3e29b266aad02 100644 --- a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +++ b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSinglelineTextInputView.h" diff --git a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h index 57439e6bf35b06..b19ff183925daa 100644 --- a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h +++ b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextInputViewManager.h" diff --git a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m index 6a74da53c98a23..4399c3677ff6ac 100644 --- a/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +++ b/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSinglelineTextInputViewManager.h" diff --git a/Libraries/Text/TextInput/Singleline/RCTUITextField.h b/Libraries/Text/TextInput/Singleline/RCTUITextField.h index 27ae073006f3f8..b56d6a81df6317 100644 --- a/Libraries/Text/TextInput/Singleline/RCTUITextField.h +++ b/Libraries/Text/TextInput/Singleline/RCTUITextField.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Text/TextInput/Singleline/RCTUITextField.m b/Libraries/Text/TextInput/Singleline/RCTUITextField.m index 4b21e594b1bfd0..281bd63945deeb 100644 --- a/Libraries/Text/TextInput/Singleline/RCTUITextField.m +++ b/Libraries/Text/TextInput/Singleline/RCTUITextField.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUITextField.h" diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index 309f5fc6b73066..7b077f9cd7851e 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextProps * @flow diff --git a/Libraries/Text/TextStylePropTypes.js b/Libraries/Text/TextStylePropTypes.js index d92708683d981e..c5e67ca99e17f5 100644 --- a/Libraries/Text/TextStylePropTypes.js +++ b/Libraries/Text/TextStylePropTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextStylePropTypes * @flow diff --git a/Libraries/Text/TextUpdateTest.js b/Libraries/Text/TextUpdateTest.js index f0de98e9a3ae48..ec81ddab1c7903 100644 --- a/Libraries/Text/TextUpdateTest.js +++ b/Libraries/Text/TextUpdateTest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextUpdateTest * @flow diff --git a/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h b/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h index ae5d158b0ef860..159a155f994a7b 100644 --- a/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h +++ b/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextShadowView.h" diff --git a/Libraries/Text/VirtualText/RCTVirtualTextShadowView.m b/Libraries/Text/VirtualText/RCTVirtualTextShadowView.m index b5710f13c0545e..55fd8a6eef5746 100644 --- a/Libraries/Text/VirtualText/RCTVirtualTextShadowView.m +++ b/Libraries/Text/VirtualText/RCTVirtualTextShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTVirtualTextShadowView.h" diff --git a/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h b/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h index b7225dbb51652e..cf2072f5df5750 100644 --- a/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h +++ b/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBaseTextViewManager.h" diff --git a/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m b/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m index 64cf1617202bc5..adc3c885405e36 100644 --- a/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m +++ b/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTVirtualTextViewManager.h" diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index db66628811d68e..d0839cf46f84ea 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CoreEventTypes * @flow diff --git a/Libraries/UTFSequence.js b/Libraries/UTFSequence.js index cf5ad295af328f..9bff51555d5563 100644 --- a/Libraries/UTFSequence.js +++ b/Libraries/UTFSequence.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UTFSequence * @flow diff --git a/Libraries/Utilities/BackAndroid.js b/Libraries/Utilities/BackAndroid.js index 0289b34c65d82c..4fc029341f4b9e 100644 --- a/Libraries/Utilities/BackAndroid.js +++ b/Libraries/Utilities/BackAndroid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * BackAndroid has been moved to BackHandler. This stub calls BackHandler methods * after generating a warning to remind users to move to the new BackHandler module. diff --git a/Libraries/Utilities/BackHandler.android.js b/Libraries/Utilities/BackHandler.android.js index e9ccd1a5809390..8f34cfacd1c349 100644 --- a/Libraries/Utilities/BackHandler.android.js +++ b/Libraries/Utilities/BackHandler.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BackHandler */ diff --git a/Libraries/Utilities/BackHandler.ios.js b/Libraries/Utilities/BackHandler.ios.js index 7c9a00ecc4e8bf..33c6a8c1d6aa48 100644 --- a/Libraries/Utilities/BackHandler.ios.js +++ b/Libraries/Utilities/BackHandler.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * On Apple TV, this implements back navigation using the TV remote's menu button. * On iOS, this just implements a stub. diff --git a/Libraries/Utilities/DebugEnvironment.js b/Libraries/Utilities/DebugEnvironment.js index 375d0f4d485b36..71014d9bfdff68 100644 --- a/Libraries/Utilities/DebugEnvironment.js +++ b/Libraries/Utilities/DebugEnvironment.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DebugEnvironment * @flow diff --git a/Libraries/Utilities/DeviceInfo.js b/Libraries/Utilities/DeviceInfo.js index 819916b153f84a..8503ac75ca31f5 100644 --- a/Libraries/Utilities/DeviceInfo.js +++ b/Libraries/Utilities/DeviceInfo.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DeviceInfo * @flow diff --git a/Libraries/Utilities/Dimensions.js b/Libraries/Utilities/Dimensions.js index 898c8cbe89580f..d13b14f1bd18ea 100644 --- a/Libraries/Utilities/Dimensions.js +++ b/Libraries/Utilities/Dimensions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Dimensions * @flow diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index 27246a3482b85b..ff897afda8bf99 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule HMRClient * @format diff --git a/Libraries/Utilities/HMRLoadingView.android.js b/Libraries/Utilities/HMRLoadingView.android.js index 82075ffa1920b6..ebda3ee65c81ec 100644 --- a/Libraries/Utilities/HMRLoadingView.android.js +++ b/Libraries/Utilities/HMRLoadingView.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule HMRLoadingView * @flow diff --git a/Libraries/Utilities/HMRLoadingView.ios.js b/Libraries/Utilities/HMRLoadingView.ios.js index ea0559fc41d0dd..7100164d4ca667 100644 --- a/Libraries/Utilities/HMRLoadingView.ios.js +++ b/Libraries/Utilities/HMRLoadingView.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule HMRLoadingView * @flow diff --git a/Libraries/Utilities/HeapCapture.js b/Libraries/Utilities/HeapCapture.js index d686a903c8866a..49e9d678e1eef2 100644 --- a/Libraries/Utilities/HeapCapture.js +++ b/Libraries/Utilities/HeapCapture.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule HeapCapture * @flow diff --git a/Libraries/Utilities/JSDevSupportModule.js b/Libraries/Utilities/JSDevSupportModule.js index 3aa91255f5725f..0b8cdca1f6835c 100644 --- a/Libraries/Utilities/JSDevSupportModule.js +++ b/Libraries/Utilities/JSDevSupportModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule JSDevSupportModule * @flow diff --git a/Libraries/Utilities/MatrixMath.js b/Libraries/Utilities/MatrixMath.js index e5f82ea1b3eab5..b36b316833fcb7 100755 --- a/Libraries/Utilities/MatrixMath.js +++ b/Libraries/Utilities/MatrixMath.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MatrixMath * @noflow diff --git a/Libraries/Utilities/PerformanceLogger.js b/Libraries/Utilities/PerformanceLogger.js index 584da0886bbd56..80184eda1c5c53 100644 --- a/Libraries/Utilities/PerformanceLogger.js +++ b/Libraries/Utilities/PerformanceLogger.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PerformanceLogger * @flow diff --git a/Libraries/Utilities/PixelRatio.js b/Libraries/Utilities/PixelRatio.js index 6d68ef03c70e2c..bd8a6a0b9571dc 100644 --- a/Libraries/Utilities/PixelRatio.js +++ b/Libraries/Utilities/PixelRatio.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PixelRatio * @flow diff --git a/Libraries/Utilities/Platform.android.js b/Libraries/Utilities/Platform.android.js index 4bab19c5287227..006f371777ec86 100644 --- a/Libraries/Utilities/Platform.android.js +++ b/Libraries/Utilities/Platform.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Platform * @flow diff --git a/Libraries/Utilities/Platform.ios.js b/Libraries/Utilities/Platform.ios.js index 3238a44627fe9c..00bd3882651f83 100644 --- a/Libraries/Utilities/Platform.ios.js +++ b/Libraries/Utilities/Platform.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Platform * @flow diff --git a/Libraries/Utilities/PlatformOS.android.js b/Libraries/Utilities/PlatformOS.android.js index 2da52e6e711ce9..ff2a383759c455 100644 --- a/Libraries/Utilities/PlatformOS.android.js +++ b/Libraries/Utilities/PlatformOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PlatformOS * @flow diff --git a/Libraries/Utilities/PlatformOS.ios.js b/Libraries/Utilities/PlatformOS.ios.js index c9891368d8981f..11fed5978096cb 100644 --- a/Libraries/Utilities/PlatformOS.ios.js +++ b/Libraries/Utilities/PlatformOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PlatformOS * @flow diff --git a/Libraries/Utilities/PolyfillFunctions.js b/Libraries/Utilities/PolyfillFunctions.js index aa35c149915aa5..5bf31ee118b4d2 100644 --- a/Libraries/Utilities/PolyfillFunctions.js +++ b/Libraries/Utilities/PolyfillFunctions.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PolyfillFunctions * @flow diff --git a/Libraries/Utilities/RCTLog.js b/Libraries/Utilities/RCTLog.js index a51d38d2d36cff..2514d9b4039d29 100644 --- a/Libraries/Utilities/RCTLog.js +++ b/Libraries/Utilities/RCTLog.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RCTLog * @flow diff --git a/Libraries/Utilities/SceneTracker.js b/Libraries/Utilities/SceneTracker.js index 568bf62aaeece4..9cebe76a99d5d2 100644 --- a/Libraries/Utilities/SceneTracker.js +++ b/Libraries/Utilities/SceneTracker.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SceneTracker * @flow diff --git a/Libraries/Utilities/__mocks__/BackHandler.js b/Libraries/Utilities/__mocks__/BackHandler.js index e8b5435e2ea069..e6319f8974ac80 100644 --- a/Libraries/Utilities/__mocks__/BackHandler.js +++ b/Libraries/Utilities/__mocks__/BackHandler.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/Libraries/Utilities/__tests__/MatrixMath-test.js b/Libraries/Utilities/__tests__/MatrixMath-test.js index 35d120a2ffed0f..2eb14cb5ba3c7b 100644 --- a/Libraries/Utilities/__tests__/MatrixMath-test.js +++ b/Libraries/Utilities/__tests__/MatrixMath-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/Platform-test.js b/Libraries/Utilities/__tests__/Platform-test.js index 14a789153fd16b..1fdfaaa1a75ca3 100644 --- a/Libraries/Utilities/__tests__/Platform-test.js +++ b/Libraries/Utilities/__tests__/Platform-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/SceneTracker-test.js b/Libraries/Utilities/__tests__/SceneTracker-test.js index bb81d4eae7b090..22dd9cadba85de 100644 --- a/Libraries/Utilities/__tests__/SceneTracker-test.js +++ b/Libraries/Utilities/__tests__/SceneTracker-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/buildStyleInterpolator-test.js b/Libraries/Utilities/__tests__/buildStyleInterpolator-test.js index 5f537f4519d00a..ccb5f7edfb31c5 100644 --- a/Libraries/Utilities/__tests__/buildStyleInterpolator-test.js +++ b/Libraries/Utilities/__tests__/buildStyleInterpolator-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js b/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js index f8791a68a35e56..cc307eedac0ee8 100644 --- a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js +++ b/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/groupByEveryN-test.js b/Libraries/Utilities/__tests__/groupByEveryN-test.js index e5b9d80ac0f09e..5fe34833549e2f 100644 --- a/Libraries/Utilities/__tests__/groupByEveryN-test.js +++ b/Libraries/Utilities/__tests__/groupByEveryN-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/mapWithSeparator-test.js b/Libraries/Utilities/__tests__/mapWithSeparator-test.js index 0e42f0b1ef1ccb..8f64e0dfa17d38 100644 --- a/Libraries/Utilities/__tests__/mapWithSeparator-test.js +++ b/Libraries/Utilities/__tests__/mapWithSeparator-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/__tests__/truncate-test.js b/Libraries/Utilities/__tests__/truncate-test.js index c134ec47ee2163..9c38d1e1e701c9 100644 --- a/Libraries/Utilities/__tests__/truncate-test.js +++ b/Libraries/Utilities/__tests__/truncate-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/binaryToBase64.js b/Libraries/Utilities/binaryToBase64.js index 008c6ac19c7b7f..d17c4d403c8705 100644 --- a/Libraries/Utilities/binaryToBase64.js +++ b/Libraries/Utilities/binaryToBase64.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule binaryToBase64 * @flow diff --git a/Libraries/Utilities/buildStyleInterpolator.js b/Libraries/Utilities/buildStyleInterpolator.js index 41d65e1bf344b9..ec174441173965 100644 --- a/Libraries/Utilities/buildStyleInterpolator.js +++ b/Libraries/Utilities/buildStyleInterpolator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule buildStyleInterpolator */ diff --git a/Libraries/Utilities/clamp.js b/Libraries/Utilities/clamp.js index 46d67895d4821c..5d15d8b3b12f3f 100644 --- a/Libraries/Utilities/clamp.js +++ b/Libraries/Utilities/clamp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule clamp * @typechecks diff --git a/Libraries/Utilities/createStrictShapeTypeChecker.js b/Libraries/Utilities/createStrictShapeTypeChecker.js index 078d103a3e2cbe..89347d15e0b86a 100644 --- a/Libraries/Utilities/createStrictShapeTypeChecker.js +++ b/Libraries/Utilities/createStrictShapeTypeChecker.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule createStrictShapeTypeChecker * @flow diff --git a/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js b/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js index 4e651b110e14a7..19cb60a9c56d6f 100644 --- a/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +++ b/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule deepFreezeAndThrowOnMutationInDev * @flow diff --git a/Libraries/Utilities/defineLazyObjectProperty.js b/Libraries/Utilities/defineLazyObjectProperty.js index 25c5e0057b38ee..87e893037913b4 100644 --- a/Libraries/Utilities/defineLazyObjectProperty.js +++ b/Libraries/Utilities/defineLazyObjectProperty.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule defineLazyObjectProperty * @flow diff --git a/Libraries/Utilities/deprecatedPropType.js b/Libraries/Utilities/deprecatedPropType.js index 26a1a46bf4c947..8b08854fabb043 100644 --- a/Libraries/Utilities/deprecatedPropType.js +++ b/Libraries/Utilities/deprecatedPropType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule deprecatedPropType * @flow diff --git a/Libraries/Utilities/differ/__tests__/deepDiffer-test.js b/Libraries/Utilities/differ/__tests__/deepDiffer-test.js index 7ff8e664f06872..6fadfdbe575478 100644 --- a/Libraries/Utilities/differ/__tests__/deepDiffer-test.js +++ b/Libraries/Utilities/differ/__tests__/deepDiffer-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/Utilities/differ/deepDiffer.js b/Libraries/Utilities/differ/deepDiffer.js index 4dec6bd7bb892d..af0bd295694b19 100644 --- a/Libraries/Utilities/differ/deepDiffer.js +++ b/Libraries/Utilities/differ/deepDiffer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule deepDiffer * @flow diff --git a/Libraries/Utilities/differ/insetsDiffer.js b/Libraries/Utilities/differ/insetsDiffer.js index df81eff93b703a..1d497c0948e53a 100644 --- a/Libraries/Utilities/differ/insetsDiffer.js +++ b/Libraries/Utilities/differ/insetsDiffer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule insetsDiffer * @flow diff --git a/Libraries/Utilities/differ/matricesDiffer.js b/Libraries/Utilities/differ/matricesDiffer.js index 948cc4cd08545c..25e741a4ff8283 100644 --- a/Libraries/Utilities/differ/matricesDiffer.js +++ b/Libraries/Utilities/differ/matricesDiffer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule matricesDiffer */ diff --git a/Libraries/Utilities/differ/pointsDiffer.js b/Libraries/Utilities/differ/pointsDiffer.js index 7c22bf1978bf4a..cb41cec85494a4 100644 --- a/Libraries/Utilities/differ/pointsDiffer.js +++ b/Libraries/Utilities/differ/pointsDiffer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule pointsDiffer * @flow diff --git a/Libraries/Utilities/differ/sizesDiffer.js b/Libraries/Utilities/differ/sizesDiffer.js index 7b24ea52f8dc43..55ea66ded36ca5 100644 --- a/Libraries/Utilities/differ/sizesDiffer.js +++ b/Libraries/Utilities/differ/sizesDiffer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule sizesDiffer */ diff --git a/Libraries/Utilities/dismissKeyboard.js b/Libraries/Utilities/dismissKeyboard.js index 183fa4a88caf3a..febcc82bfa9a65 100644 --- a/Libraries/Utilities/dismissKeyboard.js +++ b/Libraries/Utilities/dismissKeyboard.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule dismissKeyboard * diff --git a/Libraries/Utilities/groupByEveryN.js b/Libraries/Utilities/groupByEveryN.js index a8b353ad66dde6..ea400392291231 100644 --- a/Libraries/Utilities/groupByEveryN.js +++ b/Libraries/Utilities/groupByEveryN.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule groupByEveryN * @flow diff --git a/Libraries/Utilities/infoLog.js b/Libraries/Utilities/infoLog.js index 6a2a726a60822d..66278f520e8424 100644 --- a/Libraries/Utilities/infoLog.js +++ b/Libraries/Utilities/infoLog.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule infoLog */ diff --git a/Libraries/Utilities/logError.js b/Libraries/Utilities/logError.js index 62a8d984e6b251..6cf212b1f14712 100644 --- a/Libraries/Utilities/logError.js +++ b/Libraries/Utilities/logError.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule logError * @flow diff --git a/Libraries/Utilities/mapWithSeparator.js b/Libraries/Utilities/mapWithSeparator.js index ff3048a2609df6..0beceda0174c0f 100644 --- a/Libraries/Utilities/mapWithSeparator.js +++ b/Libraries/Utilities/mapWithSeparator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mapWithSeparator * @flow diff --git a/Libraries/Utilities/mergeFast.js b/Libraries/Utilities/mergeFast.js index 78a06cb4be4120..60ad36c20464a8 100644 --- a/Libraries/Utilities/mergeFast.js +++ b/Libraries/Utilities/mergeFast.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mergeFast * @flow diff --git a/Libraries/Utilities/mergeIntoFast.js b/Libraries/Utilities/mergeIntoFast.js index b7160875a453b0..ff048311403a87 100644 --- a/Libraries/Utilities/mergeIntoFast.js +++ b/Libraries/Utilities/mergeIntoFast.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mergeIntoFast * @flow diff --git a/Libraries/Utilities/stringifySafe.js b/Libraries/Utilities/stringifySafe.js index 750a932b644970..39ada622714243 100644 --- a/Libraries/Utilities/stringifySafe.js +++ b/Libraries/Utilities/stringifySafe.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule stringifySafe * @flow diff --git a/Libraries/Utilities/truncate.js b/Libraries/Utilities/truncate.js index 96c423225b116b..6a1204f9c4c2fb 100644 --- a/Libraries/Utilities/truncate.js +++ b/Libraries/Utilities/truncate.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule truncate * @flow diff --git a/Libraries/Vibration/RCTVibration.h b/Libraries/Vibration/RCTVibration.h index 935d32669944d3..d1efc147c4aa49 100644 --- a/Libraries/Vibration/RCTVibration.h +++ b/Libraries/Vibration/RCTVibration.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/Vibration/RCTVibration.m b/Libraries/Vibration/RCTVibration.m index f2544d76790862..3a9e065c585992 100644 --- a/Libraries/Vibration/RCTVibration.m +++ b/Libraries/Vibration/RCTVibration.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTVibration.h" diff --git a/Libraries/Vibration/Vibration.js b/Libraries/Vibration/Vibration.js index b4b54375603002..e01da3d4022663 100644 --- a/Libraries/Vibration/Vibration.js +++ b/Libraries/Vibration/Vibration.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Vibration * @flow diff --git a/Libraries/Vibration/VibrationIOS.android.js b/Libraries/Vibration/VibrationIOS.android.js index 37cdf859c1eb8c..0b2279b696ccb5 100644 --- a/Libraries/Vibration/VibrationIOS.android.js +++ b/Libraries/Vibration/VibrationIOS.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * Stub of VibrationIOS for Android. * diff --git a/Libraries/Vibration/VibrationIOS.ios.js b/Libraries/Vibration/VibrationIOS.ios.js index 56da5a815b12dc..ec55640442f670 100644 --- a/Libraries/Vibration/VibrationIOS.ios.js +++ b/Libraries/Vibration/VibrationIOS.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule VibrationIOS * @flow diff --git a/Libraries/WebSocket/RCTReconnectingWebSocket.h b/Libraries/WebSocket/RCTReconnectingWebSocket.h index 7eb8fabb736f71..bcadb3b0ad3241 100644 --- a/Libraries/WebSocket/RCTReconnectingWebSocket.h +++ b/Libraries/WebSocket/RCTReconnectingWebSocket.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/WebSocket/RCTReconnectingWebSocket.m b/Libraries/WebSocket/RCTReconnectingWebSocket.m index 899120e8e2b8ae..04e5dee57b67e7 100644 --- a/Libraries/WebSocket/RCTReconnectingWebSocket.m +++ b/Libraries/WebSocket/RCTReconnectingWebSocket.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTReconnectingWebSocket.h" diff --git a/Libraries/WebSocket/RCTWebSocketExecutor.h b/Libraries/WebSocket/RCTWebSocketExecutor.h index 733da2adb7cc40..5aa7cdb44635ef 100644 --- a/Libraries/WebSocket/RCTWebSocketExecutor.h +++ b/Libraries/WebSocket/RCTWebSocketExecutor.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/WebSocket/RCTWebSocketExecutor.m b/Libraries/WebSocket/RCTWebSocketExecutor.m index 9747730df0d0fc..14f53a43c2daab 100644 --- a/Libraries/WebSocket/RCTWebSocketExecutor.m +++ b/Libraries/WebSocket/RCTWebSocketExecutor.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTWebSocketExecutor.h" diff --git a/Libraries/WebSocket/RCTWebSocketModule.h b/Libraries/WebSocket/RCTWebSocketModule.h index 2875d0eb3a9f3d..18632a9a6fbbad 100644 --- a/Libraries/WebSocket/RCTWebSocketModule.h +++ b/Libraries/WebSocket/RCTWebSocketModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/Libraries/WebSocket/RCTWebSocketModule.m b/Libraries/WebSocket/RCTWebSocketModule.m index 90d6180c124f8d..425ff9873643b9 100644 --- a/Libraries/WebSocket/RCTWebSocketModule.m +++ b/Libraries/WebSocket/RCTWebSocketModule.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTWebSocketModule.h" diff --git a/Libraries/WebSocket/WebSocket.js b/Libraries/WebSocket/WebSocket.js index 3a70b3792803d5..13e614557d78b4 100644 --- a/Libraries/WebSocket/WebSocket.js +++ b/Libraries/WebSocket/WebSocket.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebSocket * @flow diff --git a/Libraries/WebSocket/WebSocketEvent.js b/Libraries/WebSocket/WebSocketEvent.js index 27ca093bc29d7c..93133902a94a8d 100644 --- a/Libraries/WebSocket/WebSocketEvent.js +++ b/Libraries/WebSocket/WebSocketEvent.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebSocketEvent */ diff --git a/Libraries/WebSocket/WebSocketInterceptor.js b/Libraries/WebSocket/WebSocketInterceptor.js index 3ac649a16219d4..10251dfa1a2045 100644 --- a/Libraries/WebSocket/WebSocketInterceptor.js +++ b/Libraries/WebSocket/WebSocketInterceptor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebSocketInterceptor */ diff --git a/Libraries/WebSocket/__tests__/WebSocket-test.js b/Libraries/WebSocket/__tests__/WebSocket-test.js index 405cf814cdf2ea..c6e04bf0a6d998 100644 --- a/Libraries/WebSocket/__tests__/WebSocket-test.js +++ b/Libraries/WebSocket/__tests__/WebSocket-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native */ diff --git a/Libraries/polyfills/Array.es6.js b/Libraries/polyfills/Array.es6.js index e6621252994e6c..0075d7ae1e070c 100644 --- a/Libraries/polyfills/Array.es6.js +++ b/Libraries/polyfills/Array.es6.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Array.es6 * @polyfill diff --git a/Libraries/polyfills/Array.prototype.es6.js b/Libraries/polyfills/Array.prototype.es6.js index 67799decae7a09..2bf044144eb7a9 100644 --- a/Libraries/polyfills/Array.prototype.es6.js +++ b/Libraries/polyfills/Array.prototype.es6.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Array.prototype.es6 * @polyfill diff --git a/Libraries/polyfills/Number.es6.js b/Libraries/polyfills/Number.es6.js index 9323b2d3ef2e9f..ef7d4ac88e4f41 100644 --- a/Libraries/polyfills/Number.es6.js +++ b/Libraries/polyfills/Number.es6.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Number.es6 * @polyfill diff --git a/Libraries/polyfills/Object.es6.js b/Libraries/polyfills/Object.es6.js index a87a40311e5b2e..0aa884e8be9596 100644 --- a/Libraries/polyfills/Object.es6.js +++ b/Libraries/polyfills/Object.es6.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Object.es6 * @polyfill diff --git a/Libraries/polyfills/Object.es7.js b/Libraries/polyfills/Object.es7.js index 2147c81d8fc16f..294756b11c3638 100644 --- a/Libraries/polyfills/Object.es7.js +++ b/Libraries/polyfills/Object.es7.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Object.es7 * @polyfill diff --git a/Libraries/polyfills/String.prototype.es6.js b/Libraries/polyfills/String.prototype.es6.js index 9d9b47c6bd65ef..b3bd95be6b88bc 100644 --- a/Libraries/polyfills/String.prototype.es6.js +++ b/Libraries/polyfills/String.prototype.es6.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule String.prototype.es6 * @polyfill diff --git a/Libraries/polyfills/__tests__/Object.es7-test.js b/Libraries/polyfills/__tests__/Object.es7-test.js index e8c4746c1d44ee..528a479f3b6b93 100644 --- a/Libraries/polyfills/__tests__/Object.es7-test.js +++ b/Libraries/polyfills/__tests__/Object.es7-test.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+jsinfra */ diff --git a/Libraries/polyfills/babelHelpers.js b/Libraries/polyfills/babelHelpers.js index 4965e5529ca230..dfe819464f09c4 100644 --- a/Libraries/polyfills/babelHelpers.js +++ b/Libraries/polyfills/babelHelpers.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule babelHelpers * @polyfill diff --git a/Libraries/polyfills/console.js b/Libraries/polyfills/console.js index 0564491afb33dd..37a92b1a62fe1f 100644 --- a/Libraries/polyfills/console.js +++ b/Libraries/polyfills/console.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule console * @polyfill diff --git a/Libraries/polyfills/error-guard.js b/Libraries/polyfills/error-guard.js index 24433346f92c80..632e7e0e4f02d6 100644 --- a/Libraries/polyfills/error-guard.js +++ b/Libraries/polyfills/error-guard.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule error-guard * @polyfill diff --git a/Libraries/promiseRejectionIsError.js b/Libraries/promiseRejectionIsError.js index 60d1a0032950d1..ce3ee915cff47f 100644 --- a/Libraries/promiseRejectionIsError.js +++ b/Libraries/promiseRejectionIsError.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule promiseRejectionIsError * @flow diff --git a/Libraries/react-native/React.js b/Libraries/react-native/React.js index ba075690bf5ff8..f000f1403b5d6a 100644 --- a/Libraries/react-native/React.js +++ b/Libraries/react-native/React.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule React */ diff --git a/Libraries/react-native/react-native-implementation.js b/Libraries/react-native/react-native-implementation.js index 577a896cd7258d..200409bcbc041b 100644 --- a/Libraries/react-native/react-native-implementation.js +++ b/Libraries/react-native/react-native-implementation.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule react-native-implementation * @flow diff --git a/Libraries/react-native/react-native-interface.js b/Libraries/react-native/react-native-interface.js index 764952ff8915cf..fd4ad545c31b10 100644 --- a/Libraries/react-native/react-native-interface.js +++ b/Libraries/react-native/react-native-interface.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule react-native-interface diff --git a/Libraries/vendor/core/ErrorUtils.js b/Libraries/vendor/core/ErrorUtils.js index eed9a06d6ae982..8b36c611105d0e 100644 --- a/Libraries/vendor/core/ErrorUtils.js +++ b/Libraries/vendor/core/ErrorUtils.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ErrorUtils * @flow diff --git a/Libraries/vendor/core/Map.js b/Libraries/vendor/core/Map.js index 7d708657122fa8..e9e687a15ce99e 100644 --- a/Libraries/vendor/core/Map.js +++ b/Libraries/vendor/core/Map.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Map * @preventMunge diff --git a/Libraries/vendor/core/Set.js b/Libraries/vendor/core/Set.js index 658722b6cf0b36..b43313205ef7e3 100644 --- a/Libraries/vendor/core/Set.js +++ b/Libraries/vendor/core/Set.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Set * @preventMunge diff --git a/Libraries/vendor/core/_shouldPolyfillES6Collection.js b/Libraries/vendor/core/_shouldPolyfillES6Collection.js index 80222a94735438..e3f77b169dece5 100644 --- a/Libraries/vendor/core/_shouldPolyfillES6Collection.js +++ b/Libraries/vendor/core/_shouldPolyfillES6Collection.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule _shouldPolyfillES6Collection * @preventMunge diff --git a/Libraries/vendor/core/getObjectValues.js b/Libraries/vendor/core/getObjectValues.js index 732313dc11bf63..aac327c2eaed9d 100644 --- a/Libraries/vendor/core/getObjectValues.js +++ b/Libraries/vendor/core/getObjectValues.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getObjectValues * @typechecks diff --git a/Libraries/vendor/core/guid.js b/Libraries/vendor/core/guid.js index cf6e4d584957cb..74c97cf383de1f 100644 --- a/Libraries/vendor/core/guid.js +++ b/Libraries/vendor/core/guid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule guid */ diff --git a/Libraries/vendor/core/isEmpty.js b/Libraries/vendor/core/isEmpty.js index 301efef721db50..1f55d4519ff3af 100644 --- a/Libraries/vendor/core/isEmpty.js +++ b/Libraries/vendor/core/isEmpty.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule isEmpty */ diff --git a/Libraries/vendor/core/mergeHelpers.js b/Libraries/vendor/core/mergeHelpers.js index d021e2ffc93443..4eb2d9d2aec8f1 100644 --- a/Libraries/vendor/core/mergeHelpers.js +++ b/Libraries/vendor/core/mergeHelpers.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mergeHelpers * diff --git a/Libraries/vendor/core/toIterator.js b/Libraries/vendor/core/toIterator.js index ce28f94a3032be..b396c469c03f3e 100644 --- a/Libraries/vendor/core/toIterator.js +++ b/Libraries/vendor/core/toIterator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule toIterator */ diff --git a/Libraries/vendor/document/selection/DocumentSelectionState.js b/Libraries/vendor/document/selection/DocumentSelectionState.js index fbfcc3062302cc..a702582c6965d0 100644 --- a/Libraries/vendor/document/selection/DocumentSelectionState.js +++ b/Libraries/vendor/document/selection/DocumentSelectionState.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DocumentSelectionState * @typechecks diff --git a/Libraries/vendor/emitter/EmitterSubscription.js b/Libraries/vendor/emitter/EmitterSubscription.js index 93c1ee376eb74c..e352e71675c9b9 100644 --- a/Libraries/vendor/emitter/EmitterSubscription.js +++ b/Libraries/vendor/emitter/EmitterSubscription.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EmitterSubscription * @flow diff --git a/Libraries/vendor/emitter/EventEmitter.js b/Libraries/vendor/emitter/EventEmitter.js index 5f981ceeb1b103..4fdb10a051593a 100644 --- a/Libraries/vendor/emitter/EventEmitter.js +++ b/Libraries/vendor/emitter/EventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventEmitter * @noflow diff --git a/Libraries/vendor/emitter/EventEmitterWithHolding.js b/Libraries/vendor/emitter/EventEmitterWithHolding.js index a74d37c01681b0..8c082222e8f73f 100644 --- a/Libraries/vendor/emitter/EventEmitterWithHolding.js +++ b/Libraries/vendor/emitter/EventEmitterWithHolding.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventEmitterWithHolding * @flow diff --git a/Libraries/vendor/emitter/EventHolder.js b/Libraries/vendor/emitter/EventHolder.js index 8957ad5cce4204..3bb7062e020f6a 100644 --- a/Libraries/vendor/emitter/EventHolder.js +++ b/Libraries/vendor/emitter/EventHolder.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventHolder * @flow diff --git a/Libraries/vendor/emitter/EventSubscription.js b/Libraries/vendor/emitter/EventSubscription.js index 955a234ecbf976..82cb06fc4fd556 100644 --- a/Libraries/vendor/emitter/EventSubscription.js +++ b/Libraries/vendor/emitter/EventSubscription.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventSubscription * @flow diff --git a/Libraries/vendor/emitter/EventSubscriptionVendor.js b/Libraries/vendor/emitter/EventSubscriptionVendor.js index 7078766a01b4c9..aa2a4e76b90b21 100644 --- a/Libraries/vendor/emitter/EventSubscriptionVendor.js +++ b/Libraries/vendor/emitter/EventSubscriptionVendor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventSubscriptionVendor * @flow diff --git a/Libraries/vendor/emitter/EventValidator.js b/Libraries/vendor/emitter/EventValidator.js index 6671c17c1061ca..9930236776b210 100644 --- a/Libraries/vendor/emitter/EventValidator.js +++ b/Libraries/vendor/emitter/EventValidator.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventValidator * @flow diff --git a/Libraries/vendor/emitter/mixInEventEmitter.js b/Libraries/vendor/emitter/mixInEventEmitter.js index b8693f055b4b19..6ee08d6d31acb0 100644 --- a/Libraries/vendor/emitter/mixInEventEmitter.js +++ b/Libraries/vendor/emitter/mixInEventEmitter.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mixInEventEmitter * @flow diff --git a/RNTester/RNTester/AppDelegate.h b/RNTester/RNTester/AppDelegate.h index 64cd15e5ae4885..f74364db7052d7 100644 --- a/RNTester/RNTester/AppDelegate.h +++ b/RNTester/RNTester/AppDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/AppDelegate.m b/RNTester/RNTester/AppDelegate.m index 55b9ab5f7648ab..d1e3548a75cc7a 100644 --- a/RNTester/RNTester/AppDelegate.m +++ b/RNTester/RNTester/AppDelegate.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.h b/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.h index 1073b2809a3b91..bca55cd86b72c0 100644 --- a/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.h +++ b/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m b/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m index 08e519fc58a78b..dacb4f9ec25435 100644 --- a/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m +++ b/RNTester/RNTester/NativeExampleViews/FlexibleSizeExampleView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.h b/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.h index 10d3ad9e76b2f4..9ca7e89c23a6ab 100644 --- a/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.h +++ b/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.m b/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.m index c8ddfb1fbe7d10..083f0e538ad3f8 100644 --- a/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.m +++ b/RNTester/RNTester/NativeExampleViews/UpdatePropertiesExampleView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTester/main.m b/RNTester/RNTester/main.m index 71f040ff1a0728..4094e2a9143067 100644 --- a/RNTester/RNTester/main.m +++ b/RNTester/RNTester/main.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterIntegrationTests/RCTLoggingTests.m b/RNTester/RNTesterIntegrationTests/RCTLoggingTests.m index 4f23baf0470dab..b93b96337f9b47 100644 --- a/RNTester/RNTesterIntegrationTests/RCTLoggingTests.m +++ b/RNTester/RNTesterIntegrationTests/RCTLoggingTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterIntegrationTests/RCTRootViewIntegrationTests.m b/RNTester/RNTesterIntegrationTests/RCTRootViewIntegrationTests.m index fc015278359fdd..18007b0cf0efbd 100644 --- a/RNTester/RNTesterIntegrationTests/RCTRootViewIntegrationTests.m +++ b/RNTester/RNTesterIntegrationTests/RCTRootViewIntegrationTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterIntegrationTests/RCTUIManagerScenarioTests.m b/RNTester/RNTesterIntegrationTests/RCTUIManagerScenarioTests.m index 4e23f431ff8cc7..d91c489211bdc4 100644 --- a/RNTester/RNTesterIntegrationTests/RCTUIManagerScenarioTests.m +++ b/RNTester/RNTesterIntegrationTests/RCTUIManagerScenarioTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterIntegrationTests/RNTesterIntegrationTests.m b/RNTester/RNTesterIntegrationTests/RNTesterIntegrationTests.m index 005d0e899ee371..5f432ec0580dff 100644 --- a/RNTester/RNTesterIntegrationTests/RNTesterIntegrationTests.m +++ b/RNTester/RNTesterIntegrationTests/RNTesterIntegrationTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/RNTester/RNTesterIntegrationTests/RNTesterSnapshotTests.m b/RNTester/RNTesterIntegrationTests/RNTesterSnapshotTests.m index 2e9afbd3d0bd58..12c7599744b253 100644 --- a/RNTester/RNTesterIntegrationTests/RNTesterSnapshotTests.m +++ b/RNTester/RNTesterIntegrationTests/RNTesterSnapshotTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterIntegrationTests/RNTesterTestModule.m b/RNTester/RNTesterIntegrationTests/RNTesterTestModule.m index a5099f1a4a1876..a6aaaca8c0c753 100644 --- a/RNTester/RNTesterIntegrationTests/RNTesterTestModule.m +++ b/RNTester/RNTesterIntegrationTests/RNTesterTestModule.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/RNTester/RNTesterUnitTests/RCTAllocationTests.m b/RNTester/RNTesterUnitTests/RCTAllocationTests.m index cef41707f687ca..bb100f71c5aeee 100644 --- a/RNTester/RNTesterUnitTests/RCTAllocationTests.m +++ b/RNTester/RNTesterUnitTests/RCTAllocationTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTAnimationUtilsTests.m b/RNTester/RNTesterUnitTests/RCTAnimationUtilsTests.m index bd60019dd5477e..acd729c0b59f15 100644 --- a/RNTester/RNTesterUnitTests/RCTAnimationUtilsTests.m +++ b/RNTester/RNTesterUnitTests/RCTAnimationUtilsTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTBlobManagerTests.m b/RNTester/RNTesterUnitTests/RCTBlobManagerTests.m index 892a5f76f17d4e..cffde57aa4d796 100644 --- a/RNTester/RNTesterUnitTests/RCTBlobManagerTests.m +++ b/RNTester/RNTesterUnitTests/RCTBlobManagerTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m b/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m index e25a9a83f64c69..bc48eebfc37884 100644 --- a/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m +++ b/RNTester/RNTesterUnitTests/RCTBundleURLProviderTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ #import diff --git a/RNTester/RNTesterUnitTests/RCTComponentPropsTests.m b/RNTester/RNTesterUnitTests/RCTComponentPropsTests.m index 759c2e3b42281f..fd9fdf7e8bb8fb 100644 --- a/RNTester/RNTesterUnitTests/RCTComponentPropsTests.m +++ b/RNTester/RNTesterUnitTests/RCTComponentPropsTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m b/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m index 8c6a1ec170b875..830bebb27f564a 100644 --- a/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m +++ b/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTConvert_YGValueTests.m b/RNTester/RNTesterUnitTests/RCTConvert_YGValueTests.m index 6ce63ecf070392..a12f525f288e22 100644 --- a/RNTester/RNTesterUnitTests/RCTConvert_YGValueTests.m +++ b/RNTester/RNTesterUnitTests/RCTConvert_YGValueTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTDevMenuTests.m b/RNTester/RNTesterUnitTests/RCTDevMenuTests.m index fd67246ce5a222..9dc5112a5b080e 100644 --- a/RNTester/RNTesterUnitTests/RCTDevMenuTests.m +++ b/RNTester/RNTesterUnitTests/RCTDevMenuTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTEventDispatcherTests.m b/RNTester/RNTesterUnitTests/RCTEventDispatcherTests.m index f58fd45ac0e55a..d057aae878a4b7 100644 --- a/RNTester/RNTesterUnitTests/RCTEventDispatcherTests.m +++ b/RNTester/RNTesterUnitTests/RCTEventDispatcherTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTFontTests.m b/RNTester/RNTesterUnitTests/RCTFontTests.m index 148a0bcf7a1536..1d9573b489e1b2 100644 --- a/RNTester/RNTesterUnitTests/RCTFontTests.m +++ b/RNTester/RNTesterUnitTests/RCTFontTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTGzipTests.m b/RNTester/RNTesterUnitTests/RCTGzipTests.m index e15742d94d0fae..ea91bac8ffb4f3 100644 --- a/RNTester/RNTesterUnitTests/RCTGzipTests.m +++ b/RNTester/RNTesterUnitTests/RCTGzipTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.h b/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.h index da8c03fd859c8b..116aafcc7d8d96 100644 --- a/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.h +++ b/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.m b/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.m index ef0661b2f6ea91..25178917b5130a 100644 --- a/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.m +++ b/RNTester/RNTesterUnitTests/RCTImageLoaderHelpers.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m index 2f20a0504b84b0..b17ed4bcd3c9e9 100644 --- a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m +++ b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTImageUtilTests.m b/RNTester/RNTesterUnitTests/RCTImageUtilTests.m index e5aa49f43634a2..b160fca59913f0 100644 --- a/RNTester/RNTesterUnitTests/RCTImageUtilTests.m +++ b/RNTester/RNTesterUnitTests/RCTImageUtilTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTJSONTests.m b/RNTester/RNTesterUnitTests/RCTJSONTests.m index 5eaa9655c76184..dce9b1013f8843 100644 --- a/RNTester/RNTesterUnitTests/RCTJSONTests.m +++ b/RNTester/RNTesterUnitTests/RCTJSONTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTMethodArgumentTests.m b/RNTester/RNTesterUnitTests/RCTMethodArgumentTests.m index ee36570e9104c4..268b7366de5d42 100644 --- a/RNTester/RNTesterUnitTests/RCTMethodArgumentTests.m +++ b/RNTester/RNTesterUnitTests/RCTMethodArgumentTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTModuleInitNotificationRaceTests.m b/RNTester/RNTesterUnitTests/RCTModuleInitNotificationRaceTests.m index df90f2a872d31e..ca5b1c7ef6207e 100644 --- a/RNTester/RNTesterUnitTests/RCTModuleInitNotificationRaceTests.m +++ b/RNTester/RNTesterUnitTests/RCTModuleInitNotificationRaceTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTModuleInitTests.m b/RNTester/RNTesterUnitTests/RCTModuleInitTests.m index aaae1dc1ea488e..1942d824aa1b99 100644 --- a/RNTester/RNTesterUnitTests/RCTModuleInitTests.m +++ b/RNTester/RNTesterUnitTests/RCTModuleInitTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTModuleMethodTests.mm b/RNTester/RNTesterUnitTests/RCTModuleMethodTests.mm index 7abcd37aaf170f..4fa8012d9d4b47 100644 --- a/RNTester/RNTesterUnitTests/RCTModuleMethodTests.mm +++ b/RNTester/RNTesterUnitTests/RCTModuleMethodTests.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTMultipartStreamReaderTests.m b/RNTester/RNTesterUnitTests/RCTMultipartStreamReaderTests.m index c92a505a9ec8fa..8d8de7cf0076ba 100644 --- a/RNTester/RNTesterUnitTests/RCTMultipartStreamReaderTests.m +++ b/RNTester/RNTesterUnitTests/RCTMultipartStreamReaderTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m b/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m index 358264899fb528..efe0b952789622 100644 --- a/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m +++ b/RNTester/RNTesterUnitTests/RCTNativeAnimatedNodesManagerTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTShadowViewTests.m b/RNTester/RNTesterUnitTests/RCTShadowViewTests.m index 34543cf19b42be..a8b41780224cf5 100644 --- a/RNTester/RNTesterUnitTests/RCTShadowViewTests.m +++ b/RNTester/RNTesterUnitTests/RCTShadowViewTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTUIManagerTests.m b/RNTester/RNTesterUnitTests/RCTUIManagerTests.m index 7dd21446ec4c79..bfa0be867b6451 100644 --- a/RNTester/RNTesterUnitTests/RCTUIManagerTests.m +++ b/RNTester/RNTesterUnitTests/RCTUIManagerTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTURLUtilsTests.m b/RNTester/RNTesterUnitTests/RCTURLUtilsTests.m index 93b2601c5cbf20..aeff07fefa0378 100644 --- a/RNTester/RNTesterUnitTests/RCTURLUtilsTests.m +++ b/RNTester/RNTesterUnitTests/RCTURLUtilsTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RCTUnicodeDecodeTests.m b/RNTester/RNTesterUnitTests/RCTUnicodeDecodeTests.m index 38d614e1f47a6b..02f217e0fe3584 100644 --- a/RNTester/RNTesterUnitTests/RCTUnicodeDecodeTests.m +++ b/RNTester/RNTesterUnitTests/RCTUnicodeDecodeTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/RNTesterUnitTests/RNTesterUnitTestsBundle.js b/RNTester/RNTesterUnitTests/RNTesterUnitTestsBundle.js index 603e784c8aa874..f0a455ff355294 100644 --- a/RNTester/RNTesterUnitTests/RNTesterUnitTestsBundle.js +++ b/RNTester/RNTesterUnitTests/RNTesterUnitTestsBundle.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterUnitTestsBundle */ diff --git a/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.java b/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.java index 2c707b160eac65..5b55c3b26e5e12 100644 --- a/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.java +++ b/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java b/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java index 9c943204224375..b8c61a384ac443 100644 --- a/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java +++ b/RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/RNTester/js/ARTExample.js b/RNTester/js/ARTExample.js index 95aa4e8bc534d7..704a9c06bbdc3e 100644 --- a/RNTester/js/ARTExample.js +++ b/RNTester/js/ARTExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ARTExample diff --git a/RNTester/js/AccessibilityAndroidExample.android.js b/RNTester/js/AccessibilityAndroidExample.android.js index 2567fd54886e5a..54b087fa207fdf 100644 --- a/RNTester/js/AccessibilityAndroidExample.android.js +++ b/RNTester/js/AccessibilityAndroidExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AccessibilityAndroidExample */ diff --git a/RNTester/js/AccessibilityIOSExample.js b/RNTester/js/AccessibilityIOSExample.js index 30aef0df31eaaa..0deead7538d62e 100644 --- a/RNTester/js/AccessibilityIOSExample.js +++ b/RNTester/js/AccessibilityIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AccessibilityIOSExample diff --git a/RNTester/js/ActionSheetIOSExample.js b/RNTester/js/ActionSheetIOSExample.js index a4b7ea07d4d1a8..ac9d9737863780 100644 --- a/RNTester/js/ActionSheetIOSExample.js +++ b/RNTester/js/ActionSheetIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ActionSheetIOSExample diff --git a/RNTester/js/ActivityIndicatorExample.js b/RNTester/js/ActivityIndicatorExample.js index 5daaf362155eb2..692acd01c7d167 100644 --- a/RNTester/js/ActivityIndicatorExample.js +++ b/RNTester/js/ActivityIndicatorExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ActivityIndicatorExample diff --git a/RNTester/js/AlertExample.js b/RNTester/js/AlertExample.js index 8e1062ab2a625b..93c82e4069c9f3 100644 --- a/RNTester/js/AlertExample.js +++ b/RNTester/js/AlertExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AlertExample */ diff --git a/RNTester/js/AlertIOSExample.js b/RNTester/js/AlertIOSExample.js index fdd1d6a31bf02c..b8b1cee43f85f7 100644 --- a/RNTester/js/AlertIOSExample.js +++ b/RNTester/js/AlertIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AlertIOSExample diff --git a/RNTester/js/AnimatedExample.js b/RNTester/js/AnimatedExample.js index 9e9fbffd1ddd42..8130a9d9f62908 100644 --- a/RNTester/js/AnimatedExample.js +++ b/RNTester/js/AnimatedExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AnimatedExample diff --git a/RNTester/js/AnimatedGratuitousApp/AnExApp.js b/RNTester/js/AnimatedGratuitousApp/AnExApp.js index 268a409faeb068..1116a84ee98254 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExApp.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExApp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExApp * @flow diff --git a/RNTester/js/AnimatedGratuitousApp/AnExBobble.js b/RNTester/js/AnimatedGratuitousApp/AnExBobble.js index 88667a2cae0fdb..d3f8885275eb91 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExBobble.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExBobble.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExBobble * @flow diff --git a/RNTester/js/AnimatedGratuitousApp/AnExChained.js b/RNTester/js/AnimatedGratuitousApp/AnExChained.js index 124ed34e23a685..63a83804ed34c9 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExChained.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExChained.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExChained * @flow diff --git a/RNTester/js/AnimatedGratuitousApp/AnExScroll.js b/RNTester/js/AnimatedGratuitousApp/AnExScroll.js index 855580a9339268..b7f69425437fdf 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExScroll.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExScroll.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExScroll * @flow diff --git a/RNTester/js/AnimatedGratuitousApp/AnExSet.js b/RNTester/js/AnimatedGratuitousApp/AnExSet.js index e3ea2acff32a46..a89fd2008a3f04 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExSet.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExSet.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExSet * @flow diff --git a/RNTester/js/AnimatedGratuitousApp/AnExTilt.js b/RNTester/js/AnimatedGratuitousApp/AnExTilt.js index 53e7c87e58dba2..a5678b6865073c 100644 --- a/RNTester/js/AnimatedGratuitousApp/AnExTilt.js +++ b/RNTester/js/AnimatedGratuitousApp/AnExTilt.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AnExTilt * @flow diff --git a/RNTester/js/AppStateExample.js b/RNTester/js/AppStateExample.js index 7a64197b1c8576..8088d77fc06f37 100644 --- a/RNTester/js/AppStateExample.js +++ b/RNTester/js/AppStateExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule AppStateExample * @flow diff --git a/RNTester/js/AssetScaledImageExample.js b/RNTester/js/AssetScaledImageExample.js index 05f32d22a7e8e0..b723d8f50ea588 100644 --- a/RNTester/js/AssetScaledImageExample.js +++ b/RNTester/js/AssetScaledImageExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AssetScaledImageExample diff --git a/RNTester/js/AsyncStorageExample.js b/RNTester/js/AsyncStorageExample.js index 872baf8d0795cb..5e16a6b847c42c 100644 --- a/RNTester/js/AsyncStorageExample.js +++ b/RNTester/js/AsyncStorageExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule AsyncStorageExample diff --git a/RNTester/js/BorderExample.js b/RNTester/js/BorderExample.js index 3bb5de8fce78ca..8885537fb35b43 100644 --- a/RNTester/js/BorderExample.js +++ b/RNTester/js/BorderExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BorderExample */ diff --git a/RNTester/js/BoxShadowExample.js b/RNTester/js/BoxShadowExample.js index eadb19acea85a2..bddce0490b3b2c 100644 --- a/RNTester/js/BoxShadowExample.js +++ b/RNTester/js/BoxShadowExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule BoxShadowExample */ diff --git a/RNTester/js/ButtonExample.js b/RNTester/js/ButtonExample.js index 10a3567b609dce..6c850a2121a7f6 100644 --- a/RNTester/js/ButtonExample.js +++ b/RNTester/js/ButtonExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ButtonExample diff --git a/RNTester/js/CameraRollExample.js b/RNTester/js/CameraRollExample.js index 74188072a71270..508980d47196ad 100644 --- a/RNTester/js/CameraRollExample.js +++ b/RNTester/js/CameraRollExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule CameraRollExample diff --git a/RNTester/js/CameraRollView.js b/RNTester/js/CameraRollView.js index 40d5606885620c..fc1f063b2560c1 100644 --- a/RNTester/js/CameraRollView.js +++ b/RNTester/js/CameraRollView.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CameraRollView * @flow diff --git a/RNTester/js/CheckBoxExample.js b/RNTester/js/CheckBoxExample.js index 42e689180fc381..98685fac4be787 100644 --- a/RNTester/js/CheckBoxExample.js +++ b/RNTester/js/CheckBoxExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule CheckBoxExample diff --git a/RNTester/js/ClipboardExample.js b/RNTester/js/ClipboardExample.js index f4e6d45afb2693..8526cea43340e4 100644 --- a/RNTester/js/ClipboardExample.js +++ b/RNTester/js/ClipboardExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ClipboardExample diff --git a/RNTester/js/DatePickerAndroidExample.js b/RNTester/js/DatePickerAndroidExample.js index 8665d45a3bf155..926071b66d7a4a 100644 --- a/RNTester/js/DatePickerAndroidExample.js +++ b/RNTester/js/DatePickerAndroidExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerAndroidExample */ diff --git a/RNTester/js/DatePickerIOSExample.js b/RNTester/js/DatePickerIOSExample.js index d03c19faefc726..b11e0644c20d80 100644 --- a/RNTester/js/DatePickerIOSExample.js +++ b/RNTester/js/DatePickerIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule DatePickerIOSExample diff --git a/RNTester/js/DimensionsExample.js b/RNTester/js/DimensionsExample.js index 9560a43d31d4e5..9611eedd482de1 100644 --- a/RNTester/js/DimensionsExample.js +++ b/RNTester/js/DimensionsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DimensionsExample * @flow diff --git a/RNTester/js/ExampleTypes.js b/RNTester/js/ExampleTypes.js index 9b6ae77878a713..e747e43be9f940 100644 --- a/RNTester/js/ExampleTypes.js +++ b/RNTester/js/ExampleTypes.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ExampleTypes * @flow diff --git a/RNTester/js/FlatListExample.js b/RNTester/js/FlatListExample.js index aa2f805b73563b..9effcf9396c9ce 100644 --- a/RNTester/js/FlatListExample.js +++ b/RNTester/js/FlatListExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule FlatListExample diff --git a/RNTester/js/GeolocationExample.js b/RNTester/js/GeolocationExample.js index 02088ea295776d..1282673f0acb91 100644 --- a/RNTester/js/GeolocationExample.js +++ b/RNTester/js/GeolocationExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule GeolocationExample diff --git a/RNTester/js/ImageCapInsetsExample.js b/RNTester/js/ImageCapInsetsExample.js index 88830779e1d424..645d002b9be457 100644 --- a/RNTester/js/ImageCapInsetsExample.js +++ b/RNTester/js/ImageCapInsetsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ImageCapInsetsExample * @flow diff --git a/RNTester/js/ImageEditingExample.js b/RNTester/js/ImageEditingExample.js index f59e5891ab2d10..d9defa775f5ae3 100644 --- a/RNTester/js/ImageEditingExample.js +++ b/RNTester/js/ImageEditingExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ImageEditingExample diff --git a/RNTester/js/ImageExample.js b/RNTester/js/ImageExample.js index 1c56c3eab0b9f0..d30a24ca7c93b2 100644 --- a/RNTester/js/ImageExample.js +++ b/RNTester/js/ImageExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ImageExample diff --git a/RNTester/js/KeyboardAvoidingViewExample.js b/RNTester/js/KeyboardAvoidingViewExample.js index 1f26e18f9915cb..3b52f3accbb760 100644 --- a/RNTester/js/KeyboardAvoidingViewExample.js +++ b/RNTester/js/KeyboardAvoidingViewExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule KeyboardAvoidingViewExample */ diff --git a/RNTester/js/LayoutAnimationExample.js b/RNTester/js/LayoutAnimationExample.js index 58a2950eb3c095..92134409879afe 100644 --- a/RNTester/js/LayoutAnimationExample.js +++ b/RNTester/js/LayoutAnimationExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule LayoutAnimationExample diff --git a/RNTester/js/LayoutEventsExample.js b/RNTester/js/LayoutEventsExample.js index c1e99d4964ebca..37b9811d8d4080 100644 --- a/RNTester/js/LayoutEventsExample.js +++ b/RNTester/js/LayoutEventsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule LayoutEventsExample diff --git a/RNTester/js/LayoutExample.js b/RNTester/js/LayoutExample.js index 8292befad39179..eec0faa433d265 100644 --- a/RNTester/js/LayoutExample.js +++ b/RNTester/js/LayoutExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule LayoutExample diff --git a/RNTester/js/LinkingExample.js b/RNTester/js/LinkingExample.js index 7da8f99fca9e7c..52297f07cf8ed6 100644 --- a/RNTester/js/LinkingExample.js +++ b/RNTester/js/LinkingExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LinkingExample */ diff --git a/RNTester/js/ListExampleShared.js b/RNTester/js/ListExampleShared.js index d9569efb0d1c97..84d2fb37cc8538 100644 --- a/RNTester/js/ListExampleShared.js +++ b/RNTester/js/ListExampleShared.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ListExampleShared diff --git a/RNTester/js/ListViewExample.js b/RNTester/js/ListViewExample.js index 7937739c7f2b63..ee828423618784 100644 --- a/RNTester/js/ListViewExample.js +++ b/RNTester/js/ListViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ListViewExample diff --git a/RNTester/js/ListViewGridLayoutExample.js b/RNTester/js/ListViewGridLayoutExample.js index 8e31ebb3ea3d79..636db62fccecb7 100644 --- a/RNTester/js/ListViewGridLayoutExample.js +++ b/RNTester/js/ListViewGridLayoutExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ListViewGridLayoutExample diff --git a/RNTester/js/ListViewPagingExample.js b/RNTester/js/ListViewPagingExample.js index b247f167884c51..3d68e7ec54683c 100644 --- a/RNTester/js/ListViewPagingExample.js +++ b/RNTester/js/ListViewPagingExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ListViewPagingExample * @flow diff --git a/RNTester/js/MaskedViewExample.js b/RNTester/js/MaskedViewExample.js index 84a757eee6b998..cca734b53576a1 100644 --- a/RNTester/js/MaskedViewExample.js +++ b/RNTester/js/MaskedViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule MaskedViewExample diff --git a/RNTester/js/ModalExample.js b/RNTester/js/ModalExample.js index e0c4a55b22c5cb..12093f4d8f4e07 100644 --- a/RNTester/js/ModalExample.js +++ b/RNTester/js/ModalExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ModalExample diff --git a/RNTester/js/MultiColumnExample.js b/RNTester/js/MultiColumnExample.js index cad2560eefc61f..cc323cfcdad8c0 100644 --- a/RNTester/js/MultiColumnExample.js +++ b/RNTester/js/MultiColumnExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule MultiColumnExample diff --git a/RNTester/js/NativeAnimationsExample.js b/RNTester/js/NativeAnimationsExample.js index 4aaf2063de57a0..983b0c9d290fe0 100644 --- a/RNTester/js/NativeAnimationsExample.js +++ b/RNTester/js/NativeAnimationsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule NativeAnimationsExample diff --git a/RNTester/js/NavigatorIOSBarStyleExample.js b/RNTester/js/NavigatorIOSBarStyleExample.js index 761d54304e4beb..d9d53edd3c99a2 100644 --- a/RNTester/js/NavigatorIOSBarStyleExample.js +++ b/RNTester/js/NavigatorIOSBarStyleExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. diff --git a/RNTester/js/NavigatorIOSColorsExample.js b/RNTester/js/NavigatorIOSColorsExample.js index 62aed681200beb..f34c9c9d10aff3 100644 --- a/RNTester/js/NavigatorIOSColorsExample.js +++ b/RNTester/js/NavigatorIOSColorsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NavigatorIOSColorsExample */ diff --git a/RNTester/js/NavigatorIOSExample.js b/RNTester/js/NavigatorIOSExample.js index 458445e68dc347..79ee6f0fd07065 100644 --- a/RNTester/js/NavigatorIOSExample.js +++ b/RNTester/js/NavigatorIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule NavigatorIOSExample diff --git a/RNTester/js/NetInfoExample.js b/RNTester/js/NetInfoExample.js index 6c909a57e75a11..0ba8dd2ff8c895 100644 --- a/RNTester/js/NetInfoExample.js +++ b/RNTester/js/NetInfoExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule NetInfoExample diff --git a/RNTester/js/OrientationChangeExample.js b/RNTester/js/OrientationChangeExample.js index 6dde81f9ef9344..af6f9b1feeca09 100644 --- a/RNTester/js/OrientationChangeExample.js +++ b/RNTester/js/OrientationChangeExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule OrientationChangeExample * @flow diff --git a/RNTester/js/PanResponderExample.js b/RNTester/js/PanResponderExample.js index 2acc3b594496c5..27d9a8016677b4 100644 --- a/RNTester/js/PanResponderExample.js +++ b/RNTester/js/PanResponderExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow weak * @providesModule PanResponderExample diff --git a/RNTester/js/PermissionsExampleAndroid.android.js b/RNTester/js/PermissionsExampleAndroid.android.js index aff60b4d94d504..cb837183a6295d 100644 --- a/RNTester/js/PermissionsExampleAndroid.android.js +++ b/RNTester/js/PermissionsExampleAndroid.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PermissionsExampleAndroid * @flow diff --git a/RNTester/js/PickerExample.js b/RNTester/js/PickerExample.js index 595ee87a37315e..1a1005cdaa2d03 100644 --- a/RNTester/js/PickerExample.js +++ b/RNTester/js/PickerExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule PickerExample diff --git a/RNTester/js/PickerIOSExample.js b/RNTester/js/PickerIOSExample.js index 34f04ca59c32af..a4d5de63a046c7 100644 --- a/RNTester/js/PickerIOSExample.js +++ b/RNTester/js/PickerIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule PickerIOSExample diff --git a/RNTester/js/PointerEventsExample.js b/RNTester/js/PointerEventsExample.js index e255d2f4754137..ac838c4eb8e370 100644 --- a/RNTester/js/PointerEventsExample.js +++ b/RNTester/js/PointerEventsExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule PointerEventsExample diff --git a/RNTester/js/ProgressBarAndroidExample.android.js b/RNTester/js/ProgressBarAndroidExample.android.js index 263e0e067e4acd..baa75b9ff1e6d2 100644 --- a/RNTester/js/ProgressBarAndroidExample.android.js +++ b/RNTester/js/ProgressBarAndroidExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ProgressBarAndroidExample diff --git a/RNTester/js/ProgressViewIOSExample.js b/RNTester/js/ProgressViewIOSExample.js index 6b7be48a07a90b..d0641760965c6a 100644 --- a/RNTester/js/ProgressViewIOSExample.js +++ b/RNTester/js/ProgressViewIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ProgressViewIOSExample diff --git a/RNTester/js/PushNotificationIOSExample.js b/RNTester/js/PushNotificationIOSExample.js index 10b8f7700485fd..c2368e9a782b14 100644 --- a/RNTester/js/PushNotificationIOSExample.js +++ b/RNTester/js/PushNotificationIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule PushNotificationIOSExample diff --git a/RNTester/js/RCTRootViewIOSExample.js b/RNTester/js/RCTRootViewIOSExample.js index 17303d5fe9a074..f6b3b20536efa4 100644 --- a/RNTester/js/RCTRootViewIOSExample.js +++ b/RNTester/js/RCTRootViewIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RCTRootViewIOSExample diff --git a/RNTester/js/RNTesterActions.js b/RNTester/js/RNTesterActions.js index ad203842b48825..2bf967b3c2e66b 100644 --- a/RNTester/js/RNTesterActions.js +++ b/RNTester/js/RNTesterActions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterActions diff --git a/RNTester/js/RNTesterApp.android.js b/RNTester/js/RNTesterApp.android.js index b185191b4aafd4..d5f05d12a90a3c 100644 --- a/RNTester/js/RNTesterApp.android.js +++ b/RNTester/js/RNTesterApp.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterApp * @flow diff --git a/RNTester/js/RNTesterApp.ios.js b/RNTester/js/RNTesterApp.ios.js index 49feb6243f6355..249b2754f886ef 100644 --- a/RNTester/js/RNTesterApp.ios.js +++ b/RNTester/js/RNTesterApp.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterApp * @flow diff --git a/RNTester/js/RNTesterBlock.js b/RNTester/js/RNTesterBlock.js index bd854ed1793a6a..58ca4d0a5f0c03 100644 --- a/RNTester/js/RNTesterBlock.js +++ b/RNTester/js/RNTesterBlock.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterBlock * @flow diff --git a/RNTester/js/RNTesterButton.js b/RNTester/js/RNTesterButton.js index 94329d21bfddb9..835eb9db113edd 100644 --- a/RNTester/js/RNTesterButton.js +++ b/RNTester/js/RNTesterButton.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterButton diff --git a/RNTester/js/RNTesterExampleContainer.js b/RNTester/js/RNTesterExampleContainer.js index 635cd021471f40..e5d1ab816d1dcb 100644 --- a/RNTester/js/RNTesterExampleContainer.js +++ b/RNTester/js/RNTesterExampleContainer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterExampleContainer */ diff --git a/RNTester/js/RNTesterExampleList.js b/RNTester/js/RNTesterExampleList.js index 7df411bcd4b80a..072a31f3d1b650 100644 --- a/RNTester/js/RNTesterExampleList.js +++ b/RNTester/js/RNTesterExampleList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterExampleList diff --git a/RNTester/js/RNTesterList.android.js b/RNTester/js/RNTesterList.android.js index eee084dd023864..feea07f72cdb85 100644 --- a/RNTester/js/RNTesterList.android.js +++ b/RNTester/js/RNTesterList.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterList diff --git a/RNTester/js/RNTesterList.ios.js b/RNTester/js/RNTesterList.ios.js index b01a54d792be68..1542a4e4ac80ad 100644 --- a/RNTester/js/RNTesterList.ios.js +++ b/RNTester/js/RNTesterList.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterList diff --git a/RNTester/js/RNTesterNavigationReducer.js b/RNTester/js/RNTesterNavigationReducer.js index 0bedcb24daac93..c8ffa5a5fe7c00 100644 --- a/RNTester/js/RNTesterNavigationReducer.js +++ b/RNTester/js/RNTesterNavigationReducer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterNavigationReducer diff --git a/RNTester/js/RNTesterPage.js b/RNTester/js/RNTesterPage.js index ed5d58f0d0e68f..5dfb3bda2039ea 100644 --- a/RNTester/js/RNTesterPage.js +++ b/RNTester/js/RNTesterPage.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterPage * @flow diff --git a/RNTester/js/RNTesterSettingSwitchRow.js b/RNTester/js/RNTesterSettingSwitchRow.js index c252476f8d3cf1..97d2f8d60be40a 100644 --- a/RNTester/js/RNTesterSettingSwitchRow.js +++ b/RNTester/js/RNTesterSettingSwitchRow.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterSettingSwitchRow * @flow diff --git a/RNTester/js/RNTesterStatePersister.js b/RNTester/js/RNTesterStatePersister.js index 1e6f42cb6f4d80..310386c49bb7f4 100644 --- a/RNTester/js/RNTesterStatePersister.js +++ b/RNTester/js/RNTesterStatePersister.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RNTesterStatePersister diff --git a/RNTester/js/RNTesterTitle.js b/RNTester/js/RNTesterTitle.js index 255ed72287ba0e..9afd68a66a7c05 100644 --- a/RNTester/js/RNTesterTitle.js +++ b/RNTester/js/RNTesterTitle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RNTesterTitle * @flow diff --git a/RNTester/js/RTLExample.js b/RNTester/js/RTLExample.js index c7cf4930b454b5..aad38a9fedc9df 100644 --- a/RNTester/js/RTLExample.js +++ b/RNTester/js/RTLExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/RNTester/js/RefreshControlExample.js b/RNTester/js/RefreshControlExample.js index c2ef5b5fdb62fd..7962a457e29bc0 100644 --- a/RNTester/js/RefreshControlExample.js +++ b/RNTester/js/RefreshControlExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule RefreshControlExample */ diff --git a/RNTester/js/RootViewSizeFlexibilityExampleApp.js b/RNTester/js/RootViewSizeFlexibilityExampleApp.js index 296a22dc1b3aae..066a6d425e926b 100644 --- a/RNTester/js/RootViewSizeFlexibilityExampleApp.js +++ b/RNTester/js/RootViewSizeFlexibilityExampleApp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule RootViewSizeFlexibilityExampleApp diff --git a/RNTester/js/SafeAreaViewExample.js b/RNTester/js/SafeAreaViewExample.js index aafb8d74ef711d..c3d5a99f8208e6 100644 --- a/RNTester/js/SafeAreaViewExample.js +++ b/RNTester/js/SafeAreaViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/RNTester/js/ScrollViewExample.js b/RNTester/js/ScrollViewExample.js index 4af1ddada33cce..f0d1e9bb19c617 100644 --- a/RNTester/js/ScrollViewExample.js +++ b/RNTester/js/ScrollViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ScrollViewExample diff --git a/RNTester/js/ScrollViewSimpleExample.js b/RNTester/js/ScrollViewSimpleExample.js index c3ac0786bd7f1d..0a6713122a885d 100644 --- a/RNTester/js/ScrollViewSimpleExample.js +++ b/RNTester/js/ScrollViewSimpleExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ScrollViewSimpleExample diff --git a/RNTester/js/SectionListExample.js b/RNTester/js/SectionListExample.js index 51708951506a99..d5d7e685c6c6e1 100644 --- a/RNTester/js/SectionListExample.js +++ b/RNTester/js/SectionListExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SectionListExample diff --git a/RNTester/js/SegmentedControlIOSExample.js b/RNTester/js/SegmentedControlIOSExample.js index e6c4c054f0b897..c5441e7cc4dc87 100644 --- a/RNTester/js/SegmentedControlIOSExample.js +++ b/RNTester/js/SegmentedControlIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SegmentedControlIOSExample diff --git a/RNTester/js/SetPropertiesExampleApp.js b/RNTester/js/SetPropertiesExampleApp.js index a3b5f90142454e..8113f5279570db 100644 --- a/RNTester/js/SetPropertiesExampleApp.js +++ b/RNTester/js/SetPropertiesExampleApp.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SetPropertiesExampleApp diff --git a/RNTester/js/ShareExample.js b/RNTester/js/ShareExample.js index 9b4d05342dab2c..00d3330d83c27c 100644 --- a/RNTester/js/ShareExample.js +++ b/RNTester/js/ShareExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ShareExample diff --git a/RNTester/js/SliderExample.js b/RNTester/js/SliderExample.js index 906c9092258389..3b4980ac800488 100644 --- a/RNTester/js/SliderExample.js +++ b/RNTester/js/SliderExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SliderExample diff --git a/RNTester/js/SnapshotExample.js b/RNTester/js/SnapshotExample.js index d0d9c172b7dd83..160434b53b260b 100644 --- a/RNTester/js/SnapshotExample.js +++ b/RNTester/js/SnapshotExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SnapshotExample diff --git a/RNTester/js/StatusBarExample.js b/RNTester/js/StatusBarExample.js index bb84bd05b29bc4..0df43f42edb371 100644 --- a/RNTester/js/StatusBarExample.js +++ b/RNTester/js/StatusBarExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule StatusBarExample diff --git a/RNTester/js/SwipeableFlatListExample.js b/RNTester/js/SwipeableFlatListExample.js index ac69abec01ce11..432e6d813d5053 100644 --- a/RNTester/js/SwipeableFlatListExample.js +++ b/RNTester/js/SwipeableFlatListExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeableFlatListExample * @flow diff --git a/RNTester/js/SwipeableListViewExample.js b/RNTester/js/SwipeableListViewExample.js index 42e9c9c8947033..c004f86e3e6aad 100644 --- a/RNTester/js/SwipeableListViewExample.js +++ b/RNTester/js/SwipeableListViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SwipeableListViewExample diff --git a/RNTester/js/SwitchExample.js b/RNTester/js/SwitchExample.js index ee6902d43a0db6..ca721ce4488e6c 100644 --- a/RNTester/js/SwitchExample.js +++ b/RNTester/js/SwitchExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule SwitchExample diff --git a/RNTester/js/TVEventHandlerExample.js b/RNTester/js/TVEventHandlerExample.js index 4d0aa3ae826144..bc6346d0d2b04f 100644 --- a/RNTester/js/TVEventHandlerExample.js +++ b/RNTester/js/TVEventHandlerExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TVEventHandlerExample diff --git a/RNTester/js/TabBarIOSBarStyleExample.js b/RNTester/js/TabBarIOSBarStyleExample.js index 1b4b193db2dd9d..5c42c5ccf1ef11 100644 --- a/RNTester/js/TabBarIOSBarStyleExample.js +++ b/RNTester/js/TabBarIOSBarStyleExample.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. diff --git a/RNTester/js/TabBarIOSExample.js b/RNTester/js/TabBarIOSExample.js index 4fe3c80fd8b33c..82c47cccdfe2f3 100644 --- a/RNTester/js/TabBarIOSExample.js +++ b/RNTester/js/TabBarIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TabBarIOSExample diff --git a/RNTester/js/TextExample.android.js b/RNTester/js/TextExample.android.js index 17133be48cf50c..a4579d9d931cce 100644 --- a/RNTester/js/TextExample.android.js +++ b/RNTester/js/TextExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TextExample diff --git a/RNTester/js/TextExample.ios.js b/RNTester/js/TextExample.ios.js index 5064a63dc8fc89..4afcc78668e5ea 100644 --- a/RNTester/js/TextExample.ios.js +++ b/RNTester/js/TextExample.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TextExample diff --git a/RNTester/js/TextInputExample.android.js b/RNTester/js/TextInputExample.android.js index fa0d5986bad5d8..92843e3459f7fe 100644 --- a/RNTester/js/TextInputExample.android.js +++ b/RNTester/js/TextInputExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TextInputExample diff --git a/RNTester/js/TextInputExample.ios.js b/RNTester/js/TextInputExample.ios.js index cca082b92dc0ff..a55206355046da 100644 --- a/RNTester/js/TextInputExample.ios.js +++ b/RNTester/js/TextInputExample.ios.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TextInputExample diff --git a/RNTester/js/TimePickerAndroidExample.js b/RNTester/js/TimePickerAndroidExample.js index b16a8d16c7b3e1..7e1afa6367d7d1 100644 --- a/RNTester/js/TimePickerAndroidExample.js +++ b/RNTester/js/TimePickerAndroidExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TimePickerAndroidExample */ diff --git a/RNTester/js/TimerExample.js b/RNTester/js/TimerExample.js index 7faf66756adf7d..d7e966010f9ada 100644 --- a/RNTester/js/TimerExample.js +++ b/RNTester/js/TimerExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TimerExample diff --git a/RNTester/js/ToastAndroidExample.android.js b/RNTester/js/ToastAndroidExample.android.js index 90b5bc6d1b90c7..e86a21cb83ef3b 100644 --- a/RNTester/js/ToastAndroidExample.android.js +++ b/RNTester/js/ToastAndroidExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ToastAndroidExample diff --git a/RNTester/js/ToolbarAndroidExample.android.js b/RNTester/js/ToolbarAndroidExample.android.js index b7e833ccc41ffb..e197518704740f 100644 --- a/RNTester/js/ToolbarAndroidExample.android.js +++ b/RNTester/js/ToolbarAndroidExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ToolbarAndroidExample diff --git a/RNTester/js/TouchableExample.js b/RNTester/js/TouchableExample.js index 4977daafdfcda3..f505891177d571 100644 --- a/RNTester/js/TouchableExample.js +++ b/RNTester/js/TouchableExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TouchableExample diff --git a/RNTester/js/TransformExample.js b/RNTester/js/TransformExample.js index 731ced76edf61a..17e2a89fc98d26 100644 --- a/RNTester/js/TransformExample.js +++ b/RNTester/js/TransformExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TransformExample diff --git a/RNTester/js/TransparentHitTestExample.js b/RNTester/js/TransparentHitTestExample.js index 1eb8633b85daca..89db856a473500 100644 --- a/RNTester/js/TransparentHitTestExample.js +++ b/RNTester/js/TransparentHitTestExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule TransparentHitTestExample diff --git a/RNTester/js/URIActionMap.js b/RNTester/js/URIActionMap.js index 76c108f59c9498..fb47214aadd5c0 100644 --- a/RNTester/js/URIActionMap.js +++ b/RNTester/js/URIActionMap.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule URIActionMap diff --git a/RNTester/js/VibrationExample.js b/RNTester/js/VibrationExample.js index 4e68083d7c56b7..9e6d6d7d768b8a 100644 --- a/RNTester/js/VibrationExample.js +++ b/RNTester/js/VibrationExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule VibrationExample diff --git a/RNTester/js/VibrationIOSExample.js b/RNTester/js/VibrationIOSExample.js index 24b4342ccb92fe..9093ff87af28ce 100644 --- a/RNTester/js/VibrationIOSExample.js +++ b/RNTester/js/VibrationIOSExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule VibrationIOSExample diff --git a/RNTester/js/ViewExample.js b/RNTester/js/ViewExample.js index 0516462cc9e443..b4c4a6c2a65818 100644 --- a/RNTester/js/ViewExample.js +++ b/RNTester/js/ViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ViewExample diff --git a/RNTester/js/ViewPagerAndroidExample.android.js b/RNTester/js/ViewPagerAndroidExample.android.js index f59a59dc47793f..1f2ac75d8f22eb 100644 --- a/RNTester/js/ViewPagerAndroidExample.android.js +++ b/RNTester/js/ViewPagerAndroidExample.android.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewPagerAndroidExample */ diff --git a/RNTester/js/WebSocketExample.js b/RNTester/js/WebSocketExample.js index a859c5cc7f3c87..ad4a6f8be4719a 100644 --- a/RNTester/js/WebSocketExample.js +++ b/RNTester/js/WebSocketExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule WebSocketExample * @format diff --git a/RNTester/js/WebViewExample.js b/RNTester/js/WebViewExample.js index d04600512d1705..d3bc575361e5fd 100644 --- a/RNTester/js/WebViewExample.js +++ b/RNTester/js/WebViewExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule WebViewExample diff --git a/RNTester/js/XHRExample.js b/RNTester/js/XHRExample.js index cd14fe88a4774f..1ee8315d03ba67 100644 --- a/RNTester/js/XHRExample.js +++ b/RNTester/js/XHRExample.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExample diff --git a/RNTester/js/XHRExampleBinaryUpload.js b/RNTester/js/XHRExampleBinaryUpload.js index adf854d235aeef..e5635724378683 100644 --- a/RNTester/js/XHRExampleBinaryUpload.js +++ b/RNTester/js/XHRExampleBinaryUpload.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleBinaryUpload diff --git a/RNTester/js/XHRExampleCookies.js b/RNTester/js/XHRExampleCookies.js index e9328af09f75c4..08ff72b369cb22 100644 --- a/RNTester/js/XHRExampleCookies.js +++ b/RNTester/js/XHRExampleCookies.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleCookies diff --git a/RNTester/js/XHRExampleDownload.js b/RNTester/js/XHRExampleDownload.js index e636ab298aaff0..a419f9ba539ed2 100644 --- a/RNTester/js/XHRExampleDownload.js +++ b/RNTester/js/XHRExampleDownload.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleDownload diff --git a/RNTester/js/XHRExampleFetch.js b/RNTester/js/XHRExampleFetch.js index 7917bfe11b8350..2aea3be975f4fb 100644 --- a/RNTester/js/XHRExampleFetch.js +++ b/RNTester/js/XHRExampleFetch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleFetch diff --git a/RNTester/js/XHRExampleFormData.js b/RNTester/js/XHRExampleFormData.js index 7d9409853207bb..228af6345bd4a0 100644 --- a/RNTester/js/XHRExampleFormData.js +++ b/RNTester/js/XHRExampleFormData.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleFormData diff --git a/RNTester/js/XHRExampleHeaders.js b/RNTester/js/XHRExampleHeaders.js index b0aad13bdc64ac..8476b1600ef670 100644 --- a/RNTester/js/XHRExampleHeaders.js +++ b/RNTester/js/XHRExampleHeaders.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @noflow * @providesModule XHRExampleHeaders diff --git a/RNTester/js/XHRExampleOnTimeOut.js b/RNTester/js/XHRExampleOnTimeOut.js index 7d30f0d7a2b041..d3c50025c2d0fe 100644 --- a/RNTester/js/XHRExampleOnTimeOut.js +++ b/RNTester/js/XHRExampleOnTimeOut.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule XHRExampleOnTimeOut diff --git a/RNTester/js/createExamplePage.js b/RNTester/js/createExamplePage.js index 55c9a666661ddf..e381f05b8d2c54 100644 --- a/RNTester/js/createExamplePage.js +++ b/RNTester/js/createExamplePage.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule createExamplePage * @flow diff --git a/RNTester/js/http_test_server.js b/RNTester/js/http_test_server.js index c2222121770132..cd9e18e5407d7f 100755 --- a/RNTester/js/http_test_server.js +++ b/RNTester/js/http_test_server.js @@ -1,11 +1,9 @@ #!/usr/bin/env node /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule http_test_server diff --git a/RNTester/js/websocket_test_server.js b/RNTester/js/websocket_test_server.js index 01feb12d54d77c..83a48ed213f062 100755 --- a/RNTester/js/websocket_test_server.js +++ b/RNTester/js/websocket_test_server.js @@ -1,11 +1,9 @@ #!/usr/bin/env node /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule websocket_test_server diff --git a/React/Base/RCTAssert.h b/React/Base/RCTAssert.h index c3bb2cf7f694d6..5e60a7b206a4b9 100644 --- a/React/Base/RCTAssert.h +++ b/React/Base/RCTAssert.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTAssert.m b/React/Base/RCTAssert.m index 79db51973c46ec..61cefe2ad5fca2 100644 --- a/React/Base/RCTAssert.m +++ b/React/Base/RCTAssert.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAssert.h" diff --git a/React/Base/RCTBridge+Private.h b/React/Base/RCTBridge+Private.h index fd49df387f8772..1995801ffcaaea 100644 --- a/React/Base/RCTBridge+Private.h +++ b/React/Base/RCTBridge+Private.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBridge.h b/React/Base/RCTBridge.h index 0ddce95bec1e4a..7db16baea37735 100644 --- a/React/Base/RCTBridge.h +++ b/React/Base/RCTBridge.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index da8e40b6c4314e..a84a966e361810 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBridge.h" diff --git a/React/Base/RCTBridgeDelegate.h b/React/Base/RCTBridgeDelegate.h index a5035b036998ef..b457e87dbc143c 100644 --- a/React/Base/RCTBridgeDelegate.h +++ b/React/Base/RCTBridgeDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBridgeMethod.h b/React/Base/RCTBridgeMethod.h index 8ffea53965c9e2..04202c6a5f0663 100644 --- a/React/Base/RCTBridgeMethod.h +++ b/React/Base/RCTBridgeMethod.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBridgeModule.h b/React/Base/RCTBridgeModule.h index 25bff04134e40b..2f8887a58de644 100644 --- a/React/Base/RCTBridgeModule.h +++ b/React/Base/RCTBridgeModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBundleURLProvider.h b/React/Base/RCTBundleURLProvider.h index 7a2562e415585e..234b7ebf4f5e2c 100644 --- a/React/Base/RCTBundleURLProvider.h +++ b/React/Base/RCTBundleURLProvider.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTBundleURLProvider.m b/React/Base/RCTBundleURLProvider.m index f6fb3ce8af29fe..53af54d93efff0 100644 --- a/React/Base/RCTBundleURLProvider.m +++ b/React/Base/RCTBundleURLProvider.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBundleURLProvider.h" diff --git a/React/Base/RCTConvert.h b/React/Base/RCTConvert.h index b3ef27cdb4cedf..a92927a68d013c 100644 --- a/React/Base/RCTConvert.h +++ b/React/Base/RCTConvert.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index f2410f60f7f21d..173c9047530491 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert.h" diff --git a/React/Base/RCTCxxConvert.h b/React/Base/RCTCxxConvert.h index c7c063ffca3877..8519e774a79c3b 100644 --- a/React/Base/RCTCxxConvert.h +++ b/React/Base/RCTCxxConvert.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTCxxConvert.m b/React/Base/RCTCxxConvert.m index 5b65cdca72776c..458a1b90846863 100644 --- a/React/Base/RCTCxxConvert.m +++ b/React/Base/RCTCxxConvert.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTCxxConvert.h" diff --git a/React/Base/RCTDefines.h b/React/Base/RCTDefines.h index 0124bf340561db..6956ec4df761b7 100644 --- a/React/Base/RCTDefines.h +++ b/React/Base/RCTDefines.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #if __OBJC__ diff --git a/React/Base/RCTDisplayLink.h b/React/Base/RCTDisplayLink.h index d4de929c050c39..e6d850ef83dc4c 100644 --- a/React/Base/RCTDisplayLink.h +++ b/React/Base/RCTDisplayLink.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTDisplayLink.m b/React/Base/RCTDisplayLink.m index a53d35701fc5ba..9a4df006f05b46 100644 --- a/React/Base/RCTDisplayLink.m +++ b/React/Base/RCTDisplayLink.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDisplayLink.h" diff --git a/React/Base/RCTErrorCustomizer.h b/React/Base/RCTErrorCustomizer.h index 23c8b24d36ebf9..b7d9e391bd8a9e 100644 --- a/React/Base/RCTErrorCustomizer.h +++ b/React/Base/RCTErrorCustomizer.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTErrorInfo.h b/React/Base/RCTErrorInfo.h index aaa42221410411..aff6b208d23e49 100644 --- a/React/Base/RCTErrorInfo.h +++ b/React/Base/RCTErrorInfo.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTErrorInfo.m b/React/Base/RCTErrorInfo.m index 37e055fd56496c..f3a25560cdad77 100644 --- a/React/Base/RCTErrorInfo.m +++ b/React/Base/RCTErrorInfo.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTErrorInfo.h" diff --git a/React/Base/RCTEventDispatcher.h b/React/Base/RCTEventDispatcher.h index c5e36e64506499..f91e66e218b47f 100644 --- a/React/Base/RCTEventDispatcher.h +++ b/React/Base/RCTEventDispatcher.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTEventDispatcher.m b/React/Base/RCTEventDispatcher.m index 239da26654306f..00ec08f2f95df7 100644 --- a/React/Base/RCTEventDispatcher.m +++ b/React/Base/RCTEventDispatcher.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTEventDispatcher.h" diff --git a/React/Base/RCTFrameUpdate.h b/React/Base/RCTFrameUpdate.h index bbf4bb6c9be9ac..197aef68983757 100644 --- a/React/Base/RCTFrameUpdate.h +++ b/React/Base/RCTFrameUpdate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTFrameUpdate.m b/React/Base/RCTFrameUpdate.m index dbbcc4a32b23ec..a5dea324c559d9 100644 --- a/React/Base/RCTFrameUpdate.m +++ b/React/Base/RCTFrameUpdate.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTImageSource.h b/React/Base/RCTImageSource.h index ade263ae68a31d..81f184e3e0b2df 100644 --- a/React/Base/RCTImageSource.h +++ b/React/Base/RCTImageSource.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTImageSource.m b/React/Base/RCTImageSource.m index b474d9b1125341..feb2f5abd24fe4 100644 --- a/React/Base/RCTImageSource.m +++ b/React/Base/RCTImageSource.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTImageSource.h" diff --git a/React/Base/RCTInvalidating.h b/React/Base/RCTInvalidating.h index 1c8cf7920ed87a..89b7162d7d58aa 100644 --- a/React/Base/RCTInvalidating.h +++ b/React/Base/RCTInvalidating.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTJSCErrorHandling.h b/React/Base/RCTJSCErrorHandling.h index 4e948fe200214e..cd3c11400c2f0a 100644 --- a/React/Base/RCTJSCErrorHandling.h +++ b/React/Base/RCTJSCErrorHandling.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTJSCErrorHandling.mm b/React/Base/RCTJSCErrorHandling.mm index 3030c19b613e2d..ed0490d94766e3 100644 --- a/React/Base/RCTJSCErrorHandling.mm +++ b/React/Base/RCTJSCErrorHandling.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTJSCErrorHandling.h" diff --git a/React/Base/RCTJSStackFrame.h b/React/Base/RCTJSStackFrame.h index 34c0fbe93b248e..3a4504c7ed75a0 100644 --- a/React/Base/RCTJSStackFrame.h +++ b/React/Base/RCTJSStackFrame.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTJSStackFrame.m b/React/Base/RCTJSStackFrame.m index 08aabec6e99216..60976f673ba542 100644 --- a/React/Base/RCTJSStackFrame.m +++ b/React/Base/RCTJSStackFrame.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTJSStackFrame.h" diff --git a/React/Base/RCTJavaScriptExecutor.h b/React/Base/RCTJavaScriptExecutor.h index 24df68852fc433..b7c8f7421d9ac9 100644 --- a/React/Base/RCTJavaScriptExecutor.h +++ b/React/Base/RCTJavaScriptExecutor.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTJavaScriptLoader.h b/React/Base/RCTJavaScriptLoader.h index 641b1ce6f9b3de..17e88212021dca 100755 --- a/React/Base/RCTJavaScriptLoader.h +++ b/React/Base/RCTJavaScriptLoader.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTJavaScriptLoader.mm b/React/Base/RCTJavaScriptLoader.mm index 09fd6c089b8d5e..983555dbd1a4b2 100755 --- a/React/Base/RCTJavaScriptLoader.mm +++ b/React/Base/RCTJavaScriptLoader.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTJavaScriptLoader.h" diff --git a/React/Base/RCTKeyCommands.h b/React/Base/RCTKeyCommands.h index d93485749e2ea8..111031ba64c018 100644 --- a/React/Base/RCTKeyCommands.h +++ b/React/Base/RCTKeyCommands.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTKeyCommands.m b/React/Base/RCTKeyCommands.m index 29ceb84f91d9e4..581e937433e793 100644 --- a/React/Base/RCTKeyCommands.m +++ b/React/Base/RCTKeyCommands.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTKeyCommands.h" diff --git a/React/Base/RCTLog.h b/React/Base/RCTLog.h index 0c6e2a048482bb..9f9317da410c66 100644 --- a/React/Base/RCTLog.h +++ b/React/Base/RCTLog.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTLog.mm b/React/Base/RCTLog.mm index fd6c6b80d3f869..edb92fe0146879 100644 --- a/React/Base/RCTLog.mm +++ b/React/Base/RCTLog.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLog.h" diff --git a/React/Base/RCTManagedPointer.h b/React/Base/RCTManagedPointer.h index e084911230a4a8..5e7ef3a199f0bb 100644 --- a/React/Base/RCTManagedPointer.h +++ b/React/Base/RCTManagedPointer.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #ifdef __cplusplus diff --git a/React/Base/RCTManagedPointer.mm b/React/Base/RCTManagedPointer.mm index a00a6a9820fb46..5cdb120f429f2d 100644 --- a/React/Base/RCTManagedPointer.mm +++ b/React/Base/RCTManagedPointer.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTManagedPointer.h" diff --git a/React/Base/RCTModuleData.h b/React/Base/RCTModuleData.h index ad8523a74f8a11..14fa0a8ded7690 100644 --- a/React/Base/RCTModuleData.h +++ b/React/Base/RCTModuleData.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTModuleData.mm b/React/Base/RCTModuleData.mm index 54821f8a9a7dae..b248d51b728bb1 100644 --- a/React/Base/RCTModuleData.mm +++ b/React/Base/RCTModuleData.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModuleData.h" diff --git a/React/Base/RCTModuleMethod.h b/React/Base/RCTModuleMethod.h index b9ef3f9ffa7485..1882e2259151ac 100644 --- a/React/Base/RCTModuleMethod.h +++ b/React/Base/RCTModuleMethod.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTModuleMethod.mm b/React/Base/RCTModuleMethod.mm index 9e1f534dc5f6b9..a8361482c4edcd 100644 --- a/React/Base/RCTModuleMethod.mm +++ b/React/Base/RCTModuleMethod.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModuleMethod.h" diff --git a/React/Base/RCTMultipartDataTask.h b/React/Base/RCTMultipartDataTask.h index 25f559e3d524be..92967e2ae3ad65 100644 --- a/React/Base/RCTMultipartDataTask.h +++ b/React/Base/RCTMultipartDataTask.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTMultipartDataTask.m b/React/Base/RCTMultipartDataTask.m index 6ca63f3c4d8f16..c87a590fee70a4 100644 --- a/React/Base/RCTMultipartDataTask.m +++ b/React/Base/RCTMultipartDataTask.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMultipartDataTask.h" diff --git a/React/Base/RCTMultipartStreamReader.h b/React/Base/RCTMultipartStreamReader.h index 30ffe5726d9ea8..7f7c6f95b27cd5 100644 --- a/React/Base/RCTMultipartStreamReader.h +++ b/React/Base/RCTMultipartStreamReader.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTMultipartStreamReader.m b/React/Base/RCTMultipartStreamReader.m index ad8c24c6dd1e75..53a16305a8d5a5 100644 --- a/React/Base/RCTMultipartStreamReader.m +++ b/React/Base/RCTMultipartStreamReader.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMultipartStreamReader.h" diff --git a/React/Base/RCTNullability.h b/React/Base/RCTNullability.h index 6d250ee4702e9b..9994a075617653 100644 --- a/React/Base/RCTNullability.h +++ b/React/Base/RCTNullability.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTParserUtils.h b/React/Base/RCTParserUtils.h index 1dff0d5a858801..56945b34851004 100644 --- a/React/Base/RCTParserUtils.h +++ b/React/Base/RCTParserUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTParserUtils.m b/React/Base/RCTParserUtils.m index d70c4181b8e2a8..aa13b6344ac4cb 100644 --- a/React/Base/RCTParserUtils.m +++ b/React/Base/RCTParserUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTParserUtils.h" diff --git a/React/Base/RCTPerformanceLogger.h b/React/Base/RCTPerformanceLogger.h index 7f82fc6956f741..92ede0c0c9d2b1 100644 --- a/React/Base/RCTPerformanceLogger.h +++ b/React/Base/RCTPerformanceLogger.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTPerformanceLogger.m b/React/Base/RCTPerformanceLogger.m index da1a2537df2c52..2427d7a8a64505 100644 --- a/React/Base/RCTPerformanceLogger.m +++ b/React/Base/RCTPerformanceLogger.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTPlatform.h b/React/Base/RCTPlatform.h index 57b523414a2f00..5eae2a8c50c65d 100644 --- a/React/Base/RCTPlatform.h +++ b/React/Base/RCTPlatform.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTPlatform.m b/React/Base/RCTPlatform.m index 82a63167c23e82..8aed9fe386947f 100644 --- a/React/Base/RCTPlatform.m +++ b/React/Base/RCTPlatform.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPlatform.h" diff --git a/React/Base/RCTReloadCommand.h b/React/Base/RCTReloadCommand.h index 352ffd17304599..d70492fe52e8b6 100644 --- a/React/Base/RCTReloadCommand.h +++ b/React/Base/RCTReloadCommand.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTReloadCommand.m b/React/Base/RCTReloadCommand.m index 8428511a9c4308..98c0f2f8da7244 100644 --- a/React/Base/RCTReloadCommand.m +++ b/React/Base/RCTReloadCommand.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTReloadCommand.h" diff --git a/React/Base/RCTRootContentView.h b/React/Base/RCTRootContentView.h index f667085e7ae43e..28a0646cfed752 100644 --- a/React/Base/RCTRootContentView.h +++ b/React/Base/RCTRootContentView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTRootContentView.m b/React/Base/RCTRootContentView.m index 2bd63c9ebc40c8..9de3f78e095817 100644 --- a/React/Base/RCTRootContentView.m +++ b/React/Base/RCTRootContentView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRootContentView.h" diff --git a/React/Base/RCTRootView.h b/React/Base/RCTRootView.h index bb4c9b7f59f319..9c04c822263625 100644 --- a/React/Base/RCTRootView.h +++ b/React/Base/RCTRootView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTRootView.m b/React/Base/RCTRootView.m index 6504097d426454..204dd5871be16b 100644 --- a/React/Base/RCTRootView.m +++ b/React/Base/RCTRootView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRootView.h" diff --git a/React/Base/RCTRootViewDelegate.h b/React/Base/RCTRootViewDelegate.h index d5f6e4885e5d38..55630a2fa317c4 100644 --- a/React/Base/RCTRootViewDelegate.h +++ b/React/Base/RCTRootViewDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTRootViewInternal.h b/React/Base/RCTRootViewInternal.h index 1b3ff7bb7e81c9..93f7a88ef6bc51 100644 --- a/React/Base/RCTRootViewInternal.h +++ b/React/Base/RCTRootViewInternal.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTTVRemoteHandler.h b/React/Base/RCTTVRemoteHandler.h index aedd9aefe0a93c..b220414a4bd5a4 100644 --- a/React/Base/RCTTVRemoteHandler.h +++ b/React/Base/RCTTVRemoteHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTTVRemoteHandler.m b/React/Base/RCTTVRemoteHandler.m index 8b39e8eddd2529..68d365c9166f93 100644 --- a/React/Base/RCTTVRemoteHandler.m +++ b/React/Base/RCTTVRemoteHandler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTVRemoteHandler.h" diff --git a/React/Base/RCTTouchEvent.h b/React/Base/RCTTouchEvent.h index 329f84df0a9364..2d259b15f28fff 100644 --- a/React/Base/RCTTouchEvent.h +++ b/React/Base/RCTTouchEvent.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTTouchEvent.m b/React/Base/RCTTouchEvent.m index 02e0b528378a0a..0f1fdc30552f32 100644 --- a/React/Base/RCTTouchEvent.m +++ b/React/Base/RCTTouchEvent.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTouchEvent.h" diff --git a/React/Base/RCTTouchHandler.h b/React/Base/RCTTouchHandler.h index 6f2df0444c3705..a4c2cf3af5d20b 100644 --- a/React/Base/RCTTouchHandler.h +++ b/React/Base/RCTTouchHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTTouchHandler.m b/React/Base/RCTTouchHandler.m index df4d2131178ada..00c5af9859162a 100644 --- a/React/Base/RCTTouchHandler.m +++ b/React/Base/RCTTouchHandler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTouchHandler.h" diff --git a/React/Base/RCTURLRequestDelegate.h b/React/Base/RCTURLRequestDelegate.h index f038d1d6a998a5..6bc7afcd3824ff 100644 --- a/React/Base/RCTURLRequestDelegate.h +++ b/React/Base/RCTURLRequestDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTURLRequestHandler.h b/React/Base/RCTURLRequestHandler.h index 3cceb898394e86..acf0c2c489fc3d 100644 --- a/React/Base/RCTURLRequestHandler.h +++ b/React/Base/RCTURLRequestHandler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTUtils.h b/React/Base/RCTUtils.h index 6a3e0c08dfe9d4..910953f5b18acf 100644 --- a/React/Base/RCTUtils.h +++ b/React/Base/RCTUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/RCTUtils.m b/React/Base/RCTUtils.m index e1610a6f40ee9c..22c426addcab0b 100644 --- a/React/Base/RCTUtils.m +++ b/React/Base/RCTUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUtils.h" diff --git a/React/Base/RCTVersion.h b/React/Base/RCTVersion.h index c741022e5b8537..f224a341af3eaa 100644 --- a/React/Base/RCTVersion.h +++ b/React/Base/RCTVersion.h @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #define RCT_REACT_NATIVE_VERSION @{ \ diff --git a/React/Base/Surface/RCTSurface.h b/React/Base/Surface/RCTSurface.h index 44a53f6569cba5..66f5cabbc535c2 100644 --- a/React/Base/Surface/RCTSurface.h +++ b/React/Base/Surface/RCTSurface.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurface.mm b/React/Base/Surface/RCTSurface.mm index 2c5b55cd176429..80d04b363e1f6f 100644 --- a/React/Base/Surface/RCTSurface.mm +++ b/React/Base/Surface/RCTSurface.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurface.h" diff --git a/React/Base/Surface/RCTSurfaceDelegate.h b/React/Base/Surface/RCTSurfaceDelegate.h index 5455320feb57af..adfea477bf6cf7 100644 --- a/React/Base/Surface/RCTSurfaceDelegate.h +++ b/React/Base/Surface/RCTSurfaceDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceRootShadowView.h b/React/Base/Surface/RCTSurfaceRootShadowView.h index e3ff17506c814a..09a9015996f2c4 100644 --- a/React/Base/Surface/RCTSurfaceRootShadowView.h +++ b/React/Base/Surface/RCTSurfaceRootShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceRootShadowView.m b/React/Base/Surface/RCTSurfaceRootShadowView.m index fb4d28deb983ae..a0765583b3fa79 100644 --- a/React/Base/Surface/RCTSurfaceRootShadowView.m +++ b/React/Base/Surface/RCTSurfaceRootShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceRootShadowView.h" diff --git a/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h b/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h index 1cfa6aecbcd587..bfc38f4ba9435a 100644 --- a/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h +++ b/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceRootView.h b/React/Base/Surface/RCTSurfaceRootView.h index 927563a51f9718..0d8a8fd1e7df50 100644 --- a/React/Base/Surface/RCTSurfaceRootView.h +++ b/React/Base/Surface/RCTSurfaceRootView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceRootView.mm b/React/Base/Surface/RCTSurfaceRootView.mm index 5888b18867a6c8..25f67d5f267d4f 100644 --- a/React/Base/Surface/RCTSurfaceRootView.mm +++ b/React/Base/Surface/RCTSurfaceRootView.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceRootView.h" diff --git a/React/Base/Surface/RCTSurfaceStage.h b/React/Base/Surface/RCTSurfaceStage.h index 8021ba7fc73329..08fd6663d2cc0d 100644 --- a/React/Base/Surface/RCTSurfaceStage.h +++ b/React/Base/Surface/RCTSurfaceStage.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceStage.m b/React/Base/Surface/RCTSurfaceStage.m index 322185be42e0c1..bf1234fa9017ab 100644 --- a/React/Base/Surface/RCTSurfaceStage.m +++ b/React/Base/Surface/RCTSurfaceStage.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceStage.h" diff --git a/React/Base/Surface/RCTSurfaceView+Internal.h b/React/Base/Surface/RCTSurfaceView+Internal.h index b41bd3a34a2fe5..512bf3fb88c4f6 100644 --- a/React/Base/Surface/RCTSurfaceView+Internal.h +++ b/React/Base/Surface/RCTSurfaceView+Internal.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceView.h b/React/Base/Surface/RCTSurfaceView.h index 030cdcf4371316..eff7051045df6d 100644 --- a/React/Base/Surface/RCTSurfaceView.h +++ b/React/Base/Surface/RCTSurfaceView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/RCTSurfaceView.mm b/React/Base/Surface/RCTSurfaceView.mm index b062c1aff6b870..0c78f54eaa4b74 100644 --- a/React/Base/Surface/RCTSurfaceView.mm +++ b/React/Base/Surface/RCTSurfaceView.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceView.h" diff --git a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h index 48c91eba554220..340a7c33b1987d 100644 --- a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +++ b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm index 68fbb40e258f00..3fd9048d128828 100644 --- a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +++ b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSurfaceHostingView.h" diff --git a/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h b/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h index 37831e4e273761..d463d36d091aff 100644 --- a/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h +++ b/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm b/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm index 22cada768fcd03..5d1689b1b369a9 100644 --- a/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm +++ b/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxBridge/NSDataBigString.h b/React/CxxBridge/NSDataBigString.h index 8e24bdf821ae5b..c11d26efa92bf7 100644 --- a/React/CxxBridge/NSDataBigString.h +++ b/React/CxxBridge/NSDataBigString.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxBridge/NSDataBigString.mm b/React/CxxBridge/NSDataBigString.mm index a295b51c255069..bea45458cdeeb1 100644 --- a/React/CxxBridge/NSDataBigString.mm +++ b/React/CxxBridge/NSDataBigString.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "NSDataBigString.h" diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index 4c958b83b54f2f..1da12b8a217e3a 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/React/CxxBridge/RCTCxxBridgeDelegate.h b/React/CxxBridge/RCTCxxBridgeDelegate.h index 9c24ee21611fe9..cbb56b75a85121 100644 --- a/React/CxxBridge/RCTCxxBridgeDelegate.h +++ b/React/CxxBridge/RCTCxxBridgeDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/React/CxxBridge/RCTJSCHelpers.h b/React/CxxBridge/RCTJSCHelpers.h index 3c3775b31c8acd..38eb26a1dad137 100644 --- a/React/CxxBridge/RCTJSCHelpers.h +++ b/React/CxxBridge/RCTJSCHelpers.h @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/React/CxxBridge/RCTJSCHelpers.mm b/React/CxxBridge/RCTJSCHelpers.mm index 39948820853aa3..760c50022aa176 100644 --- a/React/CxxBridge/RCTJSCHelpers.mm +++ b/React/CxxBridge/RCTJSCHelpers.mm @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTJSCHelpers.h" diff --git a/React/CxxBridge/RCTMessageThread.h b/React/CxxBridge/RCTMessageThread.h index e4b83912e4d3ab..d87bb5256f94b7 100644 --- a/React/CxxBridge/RCTMessageThread.h +++ b/React/CxxBridge/RCTMessageThread.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxBridge/RCTMessageThread.mm b/React/CxxBridge/RCTMessageThread.mm index e3b85ff90c80e4..a1214051db35da 100644 --- a/React/CxxBridge/RCTMessageThread.mm +++ b/React/CxxBridge/RCTMessageThread.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTMessageThread.h" diff --git a/React/CxxBridge/RCTObjcExecutor.h b/React/CxxBridge/RCTObjcExecutor.h index 89cad3cbbf4af4..08a6f922215867 100644 --- a/React/CxxBridge/RCTObjcExecutor.h +++ b/React/CxxBridge/RCTObjcExecutor.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/React/CxxBridge/RCTObjcExecutor.mm b/React/CxxBridge/RCTObjcExecutor.mm index 94c07178969b1b..d6445e9c27dc6a 100644 --- a/React/CxxBridge/RCTObjcExecutor.mm +++ b/React/CxxBridge/RCTObjcExecutor.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTObjcExecutor.h" diff --git a/React/CxxModule/DispatchMessageQueueThread.h b/React/CxxModule/DispatchMessageQueueThread.h index 2877f5800bf6bc..4c8be7b502c675 100644 --- a/React/CxxModule/DispatchMessageQueueThread.h +++ b/React/CxxModule/DispatchMessageQueueThread.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/React/CxxModule/RCTCxxMethod.h b/React/CxxModule/RCTCxxMethod.h index 85fc2e050a32dd..3d0d6aa9587e6c 100644 --- a/React/CxxModule/RCTCxxMethod.h +++ b/React/CxxModule/RCTCxxMethod.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxModule/RCTCxxMethod.mm b/React/CxxModule/RCTCxxMethod.mm index 222c487986f52a..82ee01dce771cb 100644 --- a/React/CxxModule/RCTCxxMethod.mm +++ b/React/CxxModule/RCTCxxMethod.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTCxxMethod.h" diff --git a/React/CxxModule/RCTCxxModule.h b/React/CxxModule/RCTCxxModule.h index 6df9836834a444..7bce985a57b9e2 100644 --- a/React/CxxModule/RCTCxxModule.h +++ b/React/CxxModule/RCTCxxModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxModule/RCTCxxModule.mm b/React/CxxModule/RCTCxxModule.mm index 295aac82c257f1..98cd09860cec05 100644 --- a/React/CxxModule/RCTCxxModule.mm +++ b/React/CxxModule/RCTCxxModule.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTCxxModule.h" diff --git a/React/CxxModule/RCTCxxUtils.h b/React/CxxModule/RCTCxxUtils.h index 7c1a6b21231ed1..5e38a8a3a8e5c7 100644 --- a/React/CxxModule/RCTCxxUtils.h +++ b/React/CxxModule/RCTCxxUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/React/CxxModule/RCTCxxUtils.mm b/React/CxxModule/RCTCxxUtils.mm index 053f45c0d8f959..2bc43a37c9710e 100644 --- a/React/CxxModule/RCTCxxUtils.mm +++ b/React/CxxModule/RCTCxxUtils.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTCxxUtils.h" diff --git a/React/CxxModule/RCTNativeModule.h b/React/CxxModule/RCTNativeModule.h index 072c5ca2150b06..76e9e406575396 100644 --- a/React/CxxModule/RCTNativeModule.h +++ b/React/CxxModule/RCTNativeModule.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxModule/RCTNativeModule.mm b/React/CxxModule/RCTNativeModule.mm index 25e62cb330c7f2..077b729789d29b 100644 --- a/React/CxxModule/RCTNativeModule.mm +++ b/React/CxxModule/RCTNativeModule.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNativeModule.h" diff --git a/React/CxxUtils/RCTFollyConvert.h b/React/CxxUtils/RCTFollyConvert.h index c5a16f20cd5eac..589b688da8d9a6 100644 --- a/React/CxxUtils/RCTFollyConvert.h +++ b/React/CxxUtils/RCTFollyConvert.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/CxxUtils/RCTFollyConvert.mm b/React/CxxUtils/RCTFollyConvert.mm index 0a728047e0bae0..0c6e08bb568939 100644 --- a/React/CxxUtils/RCTFollyConvert.mm +++ b/React/CxxUtils/RCTFollyConvert.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTFollyConvert.h" diff --git a/React/DevSupport/RCTDevLoadingView.h b/React/DevSupport/RCTDevLoadingView.h index e8fed7ffecf60f..dae01f04577142 100644 --- a/React/DevSupport/RCTDevLoadingView.h +++ b/React/DevSupport/RCTDevLoadingView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/DevSupport/RCTDevLoadingView.m b/React/DevSupport/RCTDevLoadingView.m index 0b921374d80fa8..e7614a896489f4 100644 --- a/React/DevSupport/RCTDevLoadingView.m +++ b/React/DevSupport/RCTDevLoadingView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDevLoadingView.h" diff --git a/React/DevSupport/RCTDevMenu.h b/React/DevSupport/RCTDevMenu.h index c02f9c92e32d67..cd60f87e108be8 100644 --- a/React/DevSupport/RCTDevMenu.h +++ b/React/DevSupport/RCTDevMenu.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/DevSupport/RCTDevMenu.m b/React/DevSupport/RCTDevMenu.m index 58b337ff384768..24b2f47e5127a9 100644 --- a/React/DevSupport/RCTDevMenu.m +++ b/React/DevSupport/RCTDevMenu.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDevMenu.h" diff --git a/React/DevSupport/RCTPackagerClient.h b/React/DevSupport/RCTPackagerClient.h index 3b5e38c8766d3d..fb8e8961afffa3 100644 --- a/React/DevSupport/RCTPackagerClient.h +++ b/React/DevSupport/RCTPackagerClient.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/DevSupport/RCTPackagerClient.m b/React/DevSupport/RCTPackagerClient.m index e0befe33da8395..a15c01fbe5f3da 100644 --- a/React/DevSupport/RCTPackagerClient.m +++ b/React/DevSupport/RCTPackagerClient.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPackagerClient.h" diff --git a/React/DevSupport/RCTPackagerConnection.h b/React/DevSupport/RCTPackagerConnection.h index 155dd45153aba6..ed3f464b6bdfff 100644 --- a/React/DevSupport/RCTPackagerConnection.h +++ b/React/DevSupport/RCTPackagerConnection.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/DevSupport/RCTPackagerConnection.mm b/React/DevSupport/RCTPackagerConnection.mm index 572c14faa25849..10fbca844e3fd0 100644 --- a/React/DevSupport/RCTPackagerConnection.mm +++ b/React/DevSupport/RCTPackagerConnection.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPackagerConnection.h" diff --git a/React/Fabric/RCTFabricUIManager.h b/React/Fabric/RCTFabricUIManager.h index 4a22c96144bb23..371ac19ba6984c 100644 --- a/React/Fabric/RCTFabricUIManager.h +++ b/React/Fabric/RCTFabricUIManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Fabric/RCTFabricUIManager.mm b/React/Fabric/RCTFabricUIManager.mm index 2aca771d324739..88fb08e6025151 100644 --- a/React/Fabric/RCTFabricUIManager.mm +++ b/React/Fabric/RCTFabricUIManager.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTFabricUIManager.h" diff --git a/React/Modules/RCTAccessibilityManager.h b/React/Modules/RCTAccessibilityManager.h index 6884894dcccfa0..0e153afbfb7e0e 100644 --- a/React/Modules/RCTAccessibilityManager.h +++ b/React/Modules/RCTAccessibilityManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTAccessibilityManager.m b/React/Modules/RCTAccessibilityManager.m index 6434becff7c242..e79fc4232eebb0 100644 --- a/React/Modules/RCTAccessibilityManager.m +++ b/React/Modules/RCTAccessibilityManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAccessibilityManager.h" diff --git a/React/Modules/RCTAlertManager.h b/React/Modules/RCTAlertManager.h index e576329185f60f..7999dd1c09a320 100644 --- a/React/Modules/RCTAlertManager.h +++ b/React/Modules/RCTAlertManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTAlertManager.m b/React/Modules/RCTAlertManager.m index c5129af50664ab..b92f915c11373e 100644 --- a/React/Modules/RCTAlertManager.m +++ b/React/Modules/RCTAlertManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAlertManager.h" diff --git a/React/Modules/RCTAppState.h b/React/Modules/RCTAppState.h index 225b14d030bb79..7d56cab63ab34e 100644 --- a/React/Modules/RCTAppState.h +++ b/React/Modules/RCTAppState.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTAppState.m b/React/Modules/RCTAppState.m index 9c6d59a19cb715..686e5ab42f5be6 100644 --- a/React/Modules/RCTAppState.m +++ b/React/Modules/RCTAppState.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAppState.h" diff --git a/React/Modules/RCTAsyncLocalStorage.h b/React/Modules/RCTAsyncLocalStorage.h index cbb8cb42bed406..446a54f76218ba 100644 --- a/React/Modules/RCTAsyncLocalStorage.h +++ b/React/Modules/RCTAsyncLocalStorage.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTAsyncLocalStorage.m b/React/Modules/RCTAsyncLocalStorage.m index 1064e04f2f8f12..c33ddb25d4a957 100644 --- a/React/Modules/RCTAsyncLocalStorage.m +++ b/React/Modules/RCTAsyncLocalStorage.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAsyncLocalStorage.h" diff --git a/React/Modules/RCTClipboard.h b/React/Modules/RCTClipboard.h index 45ff6e32bf8652..317716816291fb 100644 --- a/React/Modules/RCTClipboard.h +++ b/React/Modules/RCTClipboard.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTClipboard.m b/React/Modules/RCTClipboard.m index 8115f5e522c1ff..e624904d7d1059 100644 --- a/React/Modules/RCTClipboard.m +++ b/React/Modules/RCTClipboard.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTClipboard.h" diff --git a/React/Modules/RCTDevSettings.h b/React/Modules/RCTDevSettings.h index e4aa72a065be2a..bdf30324aeb877 100644 --- a/React/Modules/RCTDevSettings.h +++ b/React/Modules/RCTDevSettings.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTDevSettings.mm b/React/Modules/RCTDevSettings.mm index 7de283c510c318..db61029d8ae892 100644 --- a/React/Modules/RCTDevSettings.mm +++ b/React/Modules/RCTDevSettings.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDevSettings.h" diff --git a/React/Modules/RCTDeviceInfo.h b/React/Modules/RCTDeviceInfo.h index 2ff2ad965d5a08..a21750e7cd4b2a 100644 --- a/React/Modules/RCTDeviceInfo.h +++ b/React/Modules/RCTDeviceInfo.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTDeviceInfo.m b/React/Modules/RCTDeviceInfo.m index 6eb028d9bf256e..20e53d55af611f 100644 --- a/React/Modules/RCTDeviceInfo.m +++ b/React/Modules/RCTDeviceInfo.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDeviceInfo.h" diff --git a/React/Modules/RCTEventEmitter.h b/React/Modules/RCTEventEmitter.h index 489b2503962831..3192d473cf07aa 100644 --- a/React/Modules/RCTEventEmitter.h +++ b/React/Modules/RCTEventEmitter.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTEventEmitter.m b/React/Modules/RCTEventEmitter.m index 4550e2d57eae5e..1b4478566d4776 100644 --- a/React/Modules/RCTEventEmitter.m +++ b/React/Modules/RCTEventEmitter.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTEventEmitter.h" diff --git a/React/Modules/RCTExceptionsManager.h b/React/Modules/RCTExceptionsManager.h index 393d591b2b3824..57e81fb9e4905d 100644 --- a/React/Modules/RCTExceptionsManager.h +++ b/React/Modules/RCTExceptionsManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTExceptionsManager.m b/React/Modules/RCTExceptionsManager.m index 3bb2a1d66f92a9..192675bf39af1c 100644 --- a/React/Modules/RCTExceptionsManager.m +++ b/React/Modules/RCTExceptionsManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTExceptionsManager.h" diff --git a/React/Modules/RCTI18nManager.h b/React/Modules/RCTI18nManager.h index d246249577df8d..c99a3b1ac56bcf 100644 --- a/React/Modules/RCTI18nManager.h +++ b/React/Modules/RCTI18nManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTI18nManager.m b/React/Modules/RCTI18nManager.m index 72e2ae3a29d1de..4059ea5d85aa70 100644 --- a/React/Modules/RCTI18nManager.m +++ b/React/Modules/RCTI18nManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTI18nManager.h" diff --git a/React/Modules/RCTI18nUtil.h b/React/Modules/RCTI18nUtil.h index 8157f4192ea22f..967e90d4c9089d 100644 --- a/React/Modules/RCTI18nUtil.h +++ b/React/Modules/RCTI18nUtil.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTI18nUtil.m b/React/Modules/RCTI18nUtil.m index 9a6eb3b1f06598..183b4c4987d7c3 100644 --- a/React/Modules/RCTI18nUtil.m +++ b/React/Modules/RCTI18nUtil.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTJSCSamplingProfiler.h b/React/Modules/RCTJSCSamplingProfiler.h index b1f1d559e7c11f..8facaa674c6ad2 100644 --- a/React/Modules/RCTJSCSamplingProfiler.h +++ b/React/Modules/RCTJSCSamplingProfiler.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTJSCSamplingProfiler.m b/React/Modules/RCTJSCSamplingProfiler.m index 651fb27ab7a941..1d06e053829591 100644 --- a/React/Modules/RCTJSCSamplingProfiler.m +++ b/React/Modules/RCTJSCSamplingProfiler.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTJSCSamplingProfiler.h" diff --git a/React/Modules/RCTKeyboardObserver.h b/React/Modules/RCTKeyboardObserver.h index 5ae5637e35f4bf..891e174225e20f 100644 --- a/React/Modules/RCTKeyboardObserver.h +++ b/React/Modules/RCTKeyboardObserver.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTKeyboardObserver.m b/React/Modules/RCTKeyboardObserver.m index 5909e09afacad6..bef74f7fefdf62 100644 --- a/React/Modules/RCTKeyboardObserver.m +++ b/React/Modules/RCTKeyboardObserver.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTKeyboardObserver.h" diff --git a/React/Modules/RCTLayoutAnimation.h b/React/Modules/RCTLayoutAnimation.h index b1cdb782f81ee2..04f966f4d03e3b 100644 --- a/React/Modules/RCTLayoutAnimation.h +++ b/React/Modules/RCTLayoutAnimation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTLayoutAnimation.m b/React/Modules/RCTLayoutAnimation.m index 4d5bf29c47c125..9834103feb5083 100644 --- a/React/Modules/RCTLayoutAnimation.m +++ b/React/Modules/RCTLayoutAnimation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLayoutAnimation.h" diff --git a/React/Modules/RCTLayoutAnimationGroup.h b/React/Modules/RCTLayoutAnimationGroup.h index 651e28727623bd..5b4635af718f50 100644 --- a/React/Modules/RCTLayoutAnimationGroup.h +++ b/React/Modules/RCTLayoutAnimationGroup.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTLayoutAnimationGroup.m b/React/Modules/RCTLayoutAnimationGroup.m index c85b25f9444309..73db8b68c6b133 100644 --- a/React/Modules/RCTLayoutAnimationGroup.m +++ b/React/Modules/RCTLayoutAnimationGroup.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTLayoutAnimationGroup.h" diff --git a/React/Modules/RCTRedBox.h b/React/Modules/RCTRedBox.h index db72279cca1260..29ed3958cefa9f 100644 --- a/React/Modules/RCTRedBox.h +++ b/React/Modules/RCTRedBox.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index 71728640d1fa39..0cbd1fc5aced9a 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRedBox.h" diff --git a/React/Modules/RCTRedBoxExtraDataViewController.h b/React/Modules/RCTRedBoxExtraDataViewController.h index 484547814476e7..17575a15aca103 100644 --- a/React/Modules/RCTRedBoxExtraDataViewController.h +++ b/React/Modules/RCTRedBoxExtraDataViewController.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTRedBoxExtraDataViewController.m b/React/Modules/RCTRedBoxExtraDataViewController.m index 6011bf95873f86..94d371249b9b2e 100644 --- a/React/Modules/RCTRedBoxExtraDataViewController.m +++ b/React/Modules/RCTRedBoxExtraDataViewController.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRedBoxExtraDataViewController.h" diff --git a/React/Modules/RCTSourceCode.h b/React/Modules/RCTSourceCode.h index 29218749fd6487..f0f60cc0d951ad 100644 --- a/React/Modules/RCTSourceCode.h +++ b/React/Modules/RCTSourceCode.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTSourceCode.m b/React/Modules/RCTSourceCode.m index 4be46582a8b647..1886476bd7552d 100644 --- a/React/Modules/RCTSourceCode.m +++ b/React/Modules/RCTSourceCode.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSourceCode.h" diff --git a/React/Modules/RCTStatusBarManager.h b/React/Modules/RCTStatusBarManager.h index 6960da5ec68576..237d3518f0259a 100644 --- a/React/Modules/RCTStatusBarManager.h +++ b/React/Modules/RCTStatusBarManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTStatusBarManager.m b/React/Modules/RCTStatusBarManager.m index 82a4fd9f9965d5..18bd5b0a66cd0b 100644 --- a/React/Modules/RCTStatusBarManager.m +++ b/React/Modules/RCTStatusBarManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTStatusBarManager.h" diff --git a/React/Modules/RCTTVNavigationEventEmitter.h b/React/Modules/RCTTVNavigationEventEmitter.h index 5a162effe0cdf5..05b19f1b6f7844 100644 --- a/React/Modules/RCTTVNavigationEventEmitter.h +++ b/React/Modules/RCTTVNavigationEventEmitter.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTEventEmitter.h" diff --git a/React/Modules/RCTTVNavigationEventEmitter.m b/React/Modules/RCTTVNavigationEventEmitter.m index bbc42e14f4c55c..7d6774b012ddbe 100644 --- a/React/Modules/RCTTVNavigationEventEmitter.m +++ b/React/Modules/RCTTVNavigationEventEmitter.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTVNavigationEventEmitter.h" diff --git a/React/Modules/RCTTiming.h b/React/Modules/RCTTiming.h index 0ccb48ace3fe89..b126dca18d5e5b 100644 --- a/React/Modules/RCTTiming.h +++ b/React/Modules/RCTTiming.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTTiming.m b/React/Modules/RCTTiming.m index b04c5e5cfa7f9d..d1dafdc11c9d44 100644 --- a/React/Modules/RCTTiming.m +++ b/React/Modules/RCTTiming.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTiming.h" diff --git a/React/Modules/RCTUIManager.h b/React/Modules/RCTUIManager.h index 1c8a12a5a44510..05308fcfc8bcc4 100644 --- a/React/Modules/RCTUIManager.h +++ b/React/Modules/RCTUIManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index ded51a99378786..eea58fcb22b1cd 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUIManager.h" diff --git a/React/Modules/RCTUIManagerObserverCoordinator.h b/React/Modules/RCTUIManagerObserverCoordinator.h index ea07f796f9488c..83478b60268ab3 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.h +++ b/React/Modules/RCTUIManagerObserverCoordinator.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTUIManagerObserverCoordinator.mm b/React/Modules/RCTUIManagerObserverCoordinator.mm index 86d68c73c6ce35..90e0255c930909 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.mm +++ b/React/Modules/RCTUIManagerObserverCoordinator.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUIManagerObserverCoordinator.h" diff --git a/React/Modules/RCTUIManagerUtils.h b/React/Modules/RCTUIManagerUtils.h index 5858255f2c3f79..c063ab8f51ec7c 100644 --- a/React/Modules/RCTUIManagerUtils.h +++ b/React/Modules/RCTUIManagerUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Modules/RCTUIManagerUtils.m b/React/Modules/RCTUIManagerUtils.m index b6c79baa8912dd..a62445650c4625 100644 --- a/React/Modules/RCTUIManagerUtils.m +++ b/React/Modules/RCTUIManagerUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUIManagerUtils.h" diff --git a/React/Profiler/RCTFPSGraph.h b/React/Profiler/RCTFPSGraph.h index 7179cb9cb57d36..a71ac9ab33f400 100644 --- a/React/Profiler/RCTFPSGraph.h +++ b/React/Profiler/RCTFPSGraph.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Profiler/RCTFPSGraph.m b/React/Profiler/RCTFPSGraph.m index 0b1d1e5ed85ea7..6b22ef349f4c61 100644 --- a/React/Profiler/RCTFPSGraph.m +++ b/React/Profiler/RCTFPSGraph.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTFPSGraph.h" diff --git a/React/Profiler/RCTMacros.h b/React/Profiler/RCTMacros.h index 0df0ba62aeb90c..ea4c5f40e8c521 100644 --- a/React/Profiler/RCTMacros.h +++ b/React/Profiler/RCTMacros.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #define _CONCAT(A, B) A##B diff --git a/React/Profiler/RCTPerfMonitor.m b/React/Profiler/RCTPerfMonitor.m index 9751935aeabd7d..768142437b0bd5 100644 --- a/React/Profiler/RCTPerfMonitor.m +++ b/React/Profiler/RCTPerfMonitor.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDefines.h" diff --git a/React/Profiler/RCTProfile.h b/React/Profiler/RCTProfile.h index b0ab6cd8127198..88ff3d41f32ff4 100644 --- a/React/Profiler/RCTProfile.h +++ b/React/Profiler/RCTProfile.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Profiler/RCTProfile.m b/React/Profiler/RCTProfile.m index 1c94a3b6709526..3b255505800c1f 100644 --- a/React/Profiler/RCTProfile.m +++ b/React/Profiler/RCTProfile.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTProfile.h" diff --git a/React/Profiler/RCTProfileTrampoline-arm.S b/React/Profiler/RCTProfileTrampoline-arm.S index aa622bbd0d7c6b..d4061fed883199 100644 --- a/React/Profiler/RCTProfileTrampoline-arm.S +++ b/React/Profiler/RCTProfileTrampoline-arm.S @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTDefines.h" diff --git a/React/Profiler/RCTProfileTrampoline-arm64.S b/React/Profiler/RCTProfileTrampoline-arm64.S index e513696870551e..af4733b5bf6331 100644 --- a/React/Profiler/RCTProfileTrampoline-arm64.S +++ b/React/Profiler/RCTProfileTrampoline-arm64.S @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTDefines.h" diff --git a/React/Profiler/RCTProfileTrampoline-i386.S b/React/Profiler/RCTProfileTrampoline-i386.S index d1adf1a0898ecd..a33e8a21f2c752 100644 --- a/React/Profiler/RCTProfileTrampoline-i386.S +++ b/React/Profiler/RCTProfileTrampoline-i386.S @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTDefines.h" diff --git a/React/Profiler/RCTProfileTrampoline-x86_64.S b/React/Profiler/RCTProfileTrampoline-x86_64.S index 21072d84241906..d687214193adce 100644 --- a/React/Profiler/RCTProfileTrampoline-x86_64.S +++ b/React/Profiler/RCTProfileTrampoline-x86_64.S @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "RCTDefines.h" diff --git a/React/UIUtils/RCTUIUtils.h b/React/UIUtils/RCTUIUtils.h index 5f6f0e02228969..02e57abaf023b6 100644 --- a/React/UIUtils/RCTUIUtils.h +++ b/React/UIUtils/RCTUIUtils.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/UIUtils/RCTUIUtils.m b/React/UIUtils/RCTUIUtils.m index ad9d44dd474169..17d8a8567278cb 100644 --- a/React/UIUtils/RCTUIUtils.m +++ b/React/UIUtils/RCTUIUtils.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTUIUtils.h" diff --git a/React/Views/RCTActivityIndicatorView.h b/React/Views/RCTActivityIndicatorView.h index ae802a448efb42..580ae77816dc27 100644 --- a/React/Views/RCTActivityIndicatorView.h +++ b/React/Views/RCTActivityIndicatorView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTActivityIndicatorView.m b/React/Views/RCTActivityIndicatorView.m index 29ce6dbc3fa990..1fa29d15111b5b 100644 --- a/React/Views/RCTActivityIndicatorView.m +++ b/React/Views/RCTActivityIndicatorView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTActivityIndicatorView.h" diff --git a/React/Views/RCTActivityIndicatorViewManager.h b/React/Views/RCTActivityIndicatorViewManager.h index 67bc20984feaa0..9871a9d7d67be4 100644 --- a/React/Views/RCTActivityIndicatorViewManager.h +++ b/React/Views/RCTActivityIndicatorViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTActivityIndicatorViewManager.m b/React/Views/RCTActivityIndicatorViewManager.m index c28b86983b3c22..2ba37a2288e8a7 100644 --- a/React/Views/RCTActivityIndicatorViewManager.m +++ b/React/Views/RCTActivityIndicatorViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTActivityIndicatorViewManager.h" diff --git a/React/Views/RCTAnimationType.h b/React/Views/RCTAnimationType.h index 0f2703ea6b3295..fb3ddc3c83c8d0 100644 --- a/React/Views/RCTAnimationType.h +++ b/React/Views/RCTAnimationType.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTAutoInsetsProtocol.h b/React/Views/RCTAutoInsetsProtocol.h index 8e7c72c8054adc..934f4702ae8ced 100644 --- a/React/Views/RCTAutoInsetsProtocol.h +++ b/React/Views/RCTAutoInsetsProtocol.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTBorderDrawing.h b/React/Views/RCTBorderDrawing.h index 3835359da7c147..089f92fa01ca23 100644 --- a/React/Views/RCTBorderDrawing.h +++ b/React/Views/RCTBorderDrawing.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTBorderDrawing.m b/React/Views/RCTBorderDrawing.m index ec85e92c4d68ec..7674f1d154f8ef 100644 --- a/React/Views/RCTBorderDrawing.m +++ b/React/Views/RCTBorderDrawing.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTBorderDrawing.h" diff --git a/React/Views/RCTBorderStyle.h b/React/Views/RCTBorderStyle.h index 470d832314b711..c3d7acdfbe4cea 100644 --- a/React/Views/RCTBorderStyle.h +++ b/React/Views/RCTBorderStyle.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTComponent.h b/React/Views/RCTComponent.h index 499bd9e0e48a78..639c220dca0534 100644 --- a/React/Views/RCTComponent.h +++ b/React/Views/RCTComponent.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTComponentData.h b/React/Views/RCTComponentData.h index 633fd7139d27bc..f2080992bc4a6e 100644 --- a/React/Views/RCTComponentData.h +++ b/React/Views/RCTComponentData.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTComponentData.m b/React/Views/RCTComponentData.m index 976d9fb2054cf6..06bfdbaf2c2501 100644 --- a/React/Views/RCTComponentData.m +++ b/React/Views/RCTComponentData.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTComponentData.h" diff --git a/React/Views/RCTConvert+CoreLocation.h b/React/Views/RCTConvert+CoreLocation.h index 7191e384a92e3e..bfe61029ebc723 100644 --- a/React/Views/RCTConvert+CoreLocation.h +++ b/React/Views/RCTConvert+CoreLocation.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTConvert+CoreLocation.m b/React/Views/RCTConvert+CoreLocation.m index 505a6aba3f3368..67607b1520db94 100644 --- a/React/Views/RCTConvert+CoreLocation.m +++ b/React/Views/RCTConvert+CoreLocation.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert+CoreLocation.h" diff --git a/React/Views/RCTConvert+Transform.h b/React/Views/RCTConvert+Transform.h index 29c65823bcb26c..c07fac3c159970 100644 --- a/React/Views/RCTConvert+Transform.h +++ b/React/Views/RCTConvert+Transform.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert.h" diff --git a/React/Views/RCTConvert+Transform.m b/React/Views/RCTConvert+Transform.m index 1625a4917d30e7..bd5b144905206d 100644 --- a/React/Views/RCTConvert+Transform.m +++ b/React/Views/RCTConvert+Transform.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTConvert+Transform.h" diff --git a/React/Views/RCTDatePicker.h b/React/Views/RCTDatePicker.h index f036651b427edc..2b2759575a3322 100644 --- a/React/Views/RCTDatePicker.h +++ b/React/Views/RCTDatePicker.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTDatePicker.m b/React/Views/RCTDatePicker.m index 0e392dcec1e156..664d15b202e86b 100644 --- a/React/Views/RCTDatePicker.m +++ b/React/Views/RCTDatePicker.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDatePicker.h" diff --git a/React/Views/RCTDatePickerManager.h b/React/Views/RCTDatePickerManager.h index df964a0ca0c035..0693b34afe8044 100644 --- a/React/Views/RCTDatePickerManager.h +++ b/React/Views/RCTDatePickerManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTDatePickerManager.m b/React/Views/RCTDatePickerManager.m index 6c70c76c1c23cb..cd1138626596e2 100644 --- a/React/Views/RCTDatePickerManager.m +++ b/React/Views/RCTDatePickerManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTDatePickerManager.h" diff --git a/React/Views/RCTFont.h b/React/Views/RCTFont.h index 711721d2a71cc5..e812f69df353e5 100644 --- a/React/Views/RCTFont.h +++ b/React/Views/RCTFont.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTFont.mm b/React/Views/RCTFont.mm index dc3877cb352cbc..3fb3e36177cd19 100644 --- a/React/Views/RCTFont.mm +++ b/React/Views/RCTFont.mm @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTAssert.h" diff --git a/React/Views/RCTLayout.h b/React/Views/RCTLayout.h index 79af03ecd715c3..4c000136d8990c 100644 --- a/React/Views/RCTLayout.h +++ b/React/Views/RCTLayout.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTLayout.m b/React/Views/RCTLayout.m index 60727621d97a6c..8b0f6a2b6e75af 100644 --- a/React/Views/RCTLayout.m +++ b/React/Views/RCTLayout.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTMaskedView.h b/React/Views/RCTMaskedView.h index 02b11a70ad0492..2406d6ce8ab541 100644 --- a/React/Views/RCTMaskedView.h +++ b/React/Views/RCTMaskedView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTMaskedView.m b/React/Views/RCTMaskedView.m index d3c43126c58e9e..5a1a4218127df7 100644 --- a/React/Views/RCTMaskedView.m +++ b/React/Views/RCTMaskedView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMaskedView.h" diff --git a/React/Views/RCTMaskedViewManager.h b/React/Views/RCTMaskedViewManager.h index 9cf66573b5fda0..42e03124363886 100644 --- a/React/Views/RCTMaskedViewManager.h +++ b/React/Views/RCTMaskedViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTMaskedViewManager.m b/React/Views/RCTMaskedViewManager.m index 1c4e1f0fc3cbaf..d6bd575948ab29 100644 --- a/React/Views/RCTMaskedViewManager.m +++ b/React/Views/RCTMaskedViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTMaskedViewManager.h" diff --git a/React/Views/RCTModalHostView.h b/React/Views/RCTModalHostView.h index e638df3246bace..08506545acd983 100644 --- a/React/Views/RCTModalHostView.h +++ b/React/Views/RCTModalHostView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTModalHostView.m b/React/Views/RCTModalHostView.m index 6dbd6b658fc14b..102ccde8fd98b7 100644 --- a/React/Views/RCTModalHostView.m +++ b/React/Views/RCTModalHostView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModalHostView.h" diff --git a/React/Views/RCTModalHostViewController.h b/React/Views/RCTModalHostViewController.h index ebcb0dcd428216..f7b27351214721 100644 --- a/React/Views/RCTModalHostViewController.h +++ b/React/Views/RCTModalHostViewController.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTModalHostViewController.m b/React/Views/RCTModalHostViewController.m index 8b57356c3a77c4..4b5c5281dce7ee 100644 --- a/React/Views/RCTModalHostViewController.m +++ b/React/Views/RCTModalHostViewController.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModalHostViewController.h" diff --git a/React/Views/RCTModalHostViewManager.h b/React/Views/RCTModalHostViewManager.h index edf6daba7748b0..b325a9c6604d38 100644 --- a/React/Views/RCTModalHostViewManager.h +++ b/React/Views/RCTModalHostViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTModalHostViewManager.m b/React/Views/RCTModalHostViewManager.m index dbc1f6af8cd68e..bb235dc625b755 100644 --- a/React/Views/RCTModalHostViewManager.m +++ b/React/Views/RCTModalHostViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModalHostViewManager.h" diff --git a/React/Views/RCTModalManager.h b/React/Views/RCTModalManager.h index 33c0784e9b7df4..62c1743d7fb2e5 100644 --- a/React/Views/RCTModalManager.h +++ b/React/Views/RCTModalManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTModalManager.m b/React/Views/RCTModalManager.m index 551b263668d360..0920ad66528e4a 100644 --- a/React/Views/RCTModalManager.m +++ b/React/Views/RCTModalManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTModalManager.h" diff --git a/React/Views/RCTNavItem.h b/React/Views/RCTNavItem.h index 735d7b0ecbd1f1..9cabdf2e600a6a 100644 --- a/React/Views/RCTNavItem.h +++ b/React/Views/RCTNavItem.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTNavItem.m b/React/Views/RCTNavItem.m index 1b47128d1a1fe7..58923e2450a917 100644 --- a/React/Views/RCTNavItem.m +++ b/React/Views/RCTNavItem.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNavItem.h" diff --git a/React/Views/RCTNavItemManager.h b/React/Views/RCTNavItemManager.h index b5b9fa58c928f1..8fcb61c3690457 100644 --- a/React/Views/RCTNavItemManager.h +++ b/React/Views/RCTNavItemManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTNavItemManager.m b/React/Views/RCTNavItemManager.m index b281938a2cf473..d9d349c5ad531c 100644 --- a/React/Views/RCTNavItemManager.m +++ b/React/Views/RCTNavItemManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNavItemManager.h" diff --git a/React/Views/RCTNavigator.h b/React/Views/RCTNavigator.h index 88ee698208d949..b8ad30141c872d 100644 --- a/React/Views/RCTNavigator.h +++ b/React/Views/RCTNavigator.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTNavigator.m b/React/Views/RCTNavigator.m index dbe48f796b5905..0a0bfe61cf15e2 100644 --- a/React/Views/RCTNavigator.m +++ b/React/Views/RCTNavigator.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNavigator.h" diff --git a/React/Views/RCTNavigatorManager.h b/React/Views/RCTNavigatorManager.h index e8be0494311af3..58c40c94e7f1f7 100644 --- a/React/Views/RCTNavigatorManager.h +++ b/React/Views/RCTNavigatorManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTNavigatorManager.m b/React/Views/RCTNavigatorManager.m index dee4187491046c..99a03cbb364439 100644 --- a/React/Views/RCTNavigatorManager.m +++ b/React/Views/RCTNavigatorManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTNavigatorManager.h" diff --git a/React/Views/RCTPicker.h b/React/Views/RCTPicker.h index d4931dec607d0e..3424f58f32d5b7 100644 --- a/React/Views/RCTPicker.h +++ b/React/Views/RCTPicker.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTPicker.m b/React/Views/RCTPicker.m index b9ac79387bd42b..3193417bdfdd8c 100644 --- a/React/Views/RCTPicker.m +++ b/React/Views/RCTPicker.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPicker.h" diff --git a/React/Views/RCTPickerManager.h b/React/Views/RCTPickerManager.h index d2feb7caaefdb4..a24de5c6eb56df 100644 --- a/React/Views/RCTPickerManager.h +++ b/React/Views/RCTPickerManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTPickerManager.m b/React/Views/RCTPickerManager.m index 3e6a6e6dd614df..32947d0001c42d 100644 --- a/React/Views/RCTPickerManager.m +++ b/React/Views/RCTPickerManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTPickerManager.h" diff --git a/React/Views/RCTPointerEvents.h b/React/Views/RCTPointerEvents.h index 1eff59b5c4822d..b8a34fcf79e0c8 100644 --- a/React/Views/RCTPointerEvents.h +++ b/React/Views/RCTPointerEvents.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTProgressViewManager.h b/React/Views/RCTProgressViewManager.h index bf183f6372f0eb..6528d8ea861ca8 100644 --- a/React/Views/RCTProgressViewManager.h +++ b/React/Views/RCTProgressViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTProgressViewManager.m b/React/Views/RCTProgressViewManager.m index 65fe2df3c88689..d9381c100a57ce 100644 --- a/React/Views/RCTProgressViewManager.m +++ b/React/Views/RCTProgressViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTProgressViewManager.h" diff --git a/React/Views/RCTRefreshControl.h b/React/Views/RCTRefreshControl.h index cc7a8c91eaa3f7..fa0a1b49473c4d 100644 --- a/React/Views/RCTRefreshControl.h +++ b/React/Views/RCTRefreshControl.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTRefreshControl.m b/React/Views/RCTRefreshControl.m index 3b447de55a5227..6bce70938592e7 100644 --- a/React/Views/RCTRefreshControl.m +++ b/React/Views/RCTRefreshControl.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRefreshControl.h" diff --git a/React/Views/RCTRefreshControlManager.h b/React/Views/RCTRefreshControlManager.h index 00d117ed9ff4f3..ca9fec0739bc69 100644 --- a/React/Views/RCTRefreshControlManager.h +++ b/React/Views/RCTRefreshControlManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTRefreshControlManager.m b/React/Views/RCTRefreshControlManager.m index cd5e1759149c42..355d35073ae37d 100644 --- a/React/Views/RCTRefreshControlManager.m +++ b/React/Views/RCTRefreshControlManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRefreshControlManager.h" diff --git a/React/Views/RCTRootShadowView.h b/React/Views/RCTRootShadowView.h index 8f1d0108c2a1aa..38a65d0fb87a90 100644 --- a/React/Views/RCTRootShadowView.h +++ b/React/Views/RCTRootShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTRootShadowView.m b/React/Views/RCTRootShadowView.m index 87dad3d8edf394..a1353a4ed0a00f 100644 --- a/React/Views/RCTRootShadowView.m +++ b/React/Views/RCTRootShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTRootShadowView.h" diff --git a/React/Views/RCTSegmentedControl.h b/React/Views/RCTSegmentedControl.h index 4809816879b6d0..d29774a2b26376 100644 --- a/React/Views/RCTSegmentedControl.h +++ b/React/Views/RCTSegmentedControl.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSegmentedControl.m b/React/Views/RCTSegmentedControl.m index 4d10a3d205fed6..4b3650c9c8bf47 100644 --- a/React/Views/RCTSegmentedControl.m +++ b/React/Views/RCTSegmentedControl.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSegmentedControl.h" diff --git a/React/Views/RCTSegmentedControlManager.h b/React/Views/RCTSegmentedControlManager.h index 4b6c8f8e05e9ba..ad642a6dbf011f 100644 --- a/React/Views/RCTSegmentedControlManager.h +++ b/React/Views/RCTSegmentedControlManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSegmentedControlManager.m b/React/Views/RCTSegmentedControlManager.m index 9d1002e546995f..8805917deaa327 100644 --- a/React/Views/RCTSegmentedControlManager.m +++ b/React/Views/RCTSegmentedControlManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSegmentedControlManager.h" diff --git a/React/Views/RCTShadowView+Internal.h b/React/Views/RCTShadowView+Internal.h index cf2d3bf5a2fb89..a5518410a7fc8a 100644 --- a/React/Views/RCTShadowView+Internal.h +++ b/React/Views/RCTShadowView+Internal.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTShadowView+Internal.m b/React/Views/RCTShadowView+Internal.m index 09b74ca2e2505d..2a10f2d623e3f2 100644 --- a/React/Views/RCTShadowView+Internal.m +++ b/React/Views/RCTShadowView+Internal.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTShadowView+Layout.h" diff --git a/React/Views/RCTShadowView+Layout.h b/React/Views/RCTShadowView+Layout.h index 8c6d3fe160489f..c7d0f16c5f772a 100644 --- a/React/Views/RCTShadowView+Layout.h +++ b/React/Views/RCTShadowView+Layout.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTShadowView+Layout.m b/React/Views/RCTShadowView+Layout.m index 4071c8f037086e..af2987c1fa1ee1 100644 --- a/React/Views/RCTShadowView+Layout.m +++ b/React/Views/RCTShadowView+Layout.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTShadowView+Layout.h" diff --git a/React/Views/RCTShadowView.h b/React/Views/RCTShadowView.h index 826386f82782d5..ccf0d80cf28d32 100644 --- a/React/Views/RCTShadowView.h +++ b/React/Views/RCTShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTShadowView.m b/React/Views/RCTShadowView.m index 4c2e24b8403fe3..f29dbcbbd3631e 100644 --- a/React/Views/RCTShadowView.m +++ b/React/Views/RCTShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTShadowView.h" diff --git a/React/Views/RCTSlider.h b/React/Views/RCTSlider.h index 35c07902ce88fd..139d5dfa6f92d8 100644 --- a/React/Views/RCTSlider.h +++ b/React/Views/RCTSlider.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSlider.m b/React/Views/RCTSlider.m index 358d443fbb8b97..50407057a6d05c 100644 --- a/React/Views/RCTSlider.m +++ b/React/Views/RCTSlider.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSlider.h" diff --git a/React/Views/RCTSliderManager.h b/React/Views/RCTSliderManager.h index a4696ec31b9b36..a500a16963d80d 100644 --- a/React/Views/RCTSliderManager.h +++ b/React/Views/RCTSliderManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSliderManager.m b/React/Views/RCTSliderManager.m index 50638f2cb9c2c7..a8a5d24a9165f2 100644 --- a/React/Views/RCTSliderManager.m +++ b/React/Views/RCTSliderManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSliderManager.h" diff --git a/React/Views/RCTSwitch.h b/React/Views/RCTSwitch.h index 09da30a544c40c..2bd430707b4070 100644 --- a/React/Views/RCTSwitch.h +++ b/React/Views/RCTSwitch.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSwitch.m b/React/Views/RCTSwitch.m index 6c4e2856495931..23e07bfc641101 100644 --- a/React/Views/RCTSwitch.m +++ b/React/Views/RCTSwitch.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSwitch.h" diff --git a/React/Views/RCTSwitchManager.h b/React/Views/RCTSwitchManager.h index 538d25c0030955..b37b1ee86a8e29 100644 --- a/React/Views/RCTSwitchManager.h +++ b/React/Views/RCTSwitchManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTSwitchManager.m b/React/Views/RCTSwitchManager.m index 7fe065baa82866..6642623e7919ee 100644 --- a/React/Views/RCTSwitchManager.m +++ b/React/Views/RCTSwitchManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSwitchManager.h" diff --git a/React/Views/RCTTVView.h b/React/Views/RCTTVView.h index a7bb5137fbfeba..4f8b2f79c62b9f 100644 --- a/React/Views/RCTTVView.h +++ b/React/Views/RCTTVView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTTVView.m b/React/Views/RCTTVView.m index 204b6f390d9288..dcd086499c1f54 100644 --- a/React/Views/RCTTVView.m +++ b/React/Views/RCTTVView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTVView.h" diff --git a/React/Views/RCTTabBar.h b/React/Views/RCTTabBar.h index d2f1c1e7a5de0e..249aa9baaba073 100644 --- a/React/Views/RCTTabBar.h +++ b/React/Views/RCTTabBar.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTTabBar.m b/React/Views/RCTTabBar.m index a5c59a47b22268..0d02bb5a8ad4d7 100644 --- a/React/Views/RCTTabBar.m +++ b/React/Views/RCTTabBar.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTabBar.h" diff --git a/React/Views/RCTTabBarItem.h b/React/Views/RCTTabBarItem.h index 0f4350eae223af..25e36de62da252 100644 --- a/React/Views/RCTTabBarItem.h +++ b/React/Views/RCTTabBarItem.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTTabBarItem.m b/React/Views/RCTTabBarItem.m index b48cb4d152d953..57ffe57c931d4d 100644 --- a/React/Views/RCTTabBarItem.m +++ b/React/Views/RCTTabBarItem.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTabBarItem.h" diff --git a/React/Views/RCTTabBarItemManager.h b/React/Views/RCTTabBarItemManager.h index 484ec23a32ee7a..fd72e35b123d0a 100644 --- a/React/Views/RCTTabBarItemManager.h +++ b/React/Views/RCTTabBarItemManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTTabBarItemManager.m b/React/Views/RCTTabBarItemManager.m index ca4684577587cf..b51952b4e073cb 100644 --- a/React/Views/RCTTabBarItemManager.m +++ b/React/Views/RCTTabBarItemManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTabBarItemManager.h" diff --git a/React/Views/RCTTabBarManager.h b/React/Views/RCTTabBarManager.h index 99f59805312ce7..b41f52b89a2854 100644 --- a/React/Views/RCTTabBarManager.h +++ b/React/Views/RCTTabBarManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTTabBarManager.m b/React/Views/RCTTabBarManager.m index f8e98854d05590..6813ffb5d436c7 100644 --- a/React/Views/RCTTabBarManager.m +++ b/React/Views/RCTTabBarManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTTabBarManager.h" diff --git a/React/Views/RCTTextDecorationLineType.h b/React/Views/RCTTextDecorationLineType.h index 1167f50064e8fa..21152baea4fb49 100644 --- a/React/Views/RCTTextDecorationLineType.h +++ b/React/Views/RCTTextDecorationLineType.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTView.h b/React/Views/RCTView.h index 992dc65c647122..68cf22ef20ff1e 100644 --- a/React/Views/RCTView.h +++ b/React/Views/RCTView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTView.m b/React/Views/RCTView.m index 41d780c3086d8f..d8888cbdc681b5 100644 --- a/React/Views/RCTView.m +++ b/React/Views/RCTView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTView.h" diff --git a/React/Views/RCTViewManager.h b/React/Views/RCTViewManager.h index 4495a24cc42f0d..7be342a8e25b62 100644 --- a/React/Views/RCTViewManager.h +++ b/React/Views/RCTViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTViewManager.m b/React/Views/RCTViewManager.m index 06035516fa2914..626e923d35e5db 100644 --- a/React/Views/RCTViewManager.m +++ b/React/Views/RCTViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTViewManager.h" diff --git a/React/Views/RCTWebView.h b/React/Views/RCTWebView.h index 92e9c6bb7ea791..eccb5b94c6daa3 100644 --- a/React/Views/RCTWebView.h +++ b/React/Views/RCTWebView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTWebView.m b/React/Views/RCTWebView.m index 596f87e9680330..61042b221f79ef 100644 --- a/React/Views/RCTWebView.m +++ b/React/Views/RCTWebView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTWebView.h" diff --git a/React/Views/RCTWebViewManager.h b/React/Views/RCTWebViewManager.h index bb075c22ae8adc..2c83b2f64169fc 100644 --- a/React/Views/RCTWebViewManager.h +++ b/React/Views/RCTWebViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTWebViewManager.m b/React/Views/RCTWebViewManager.m index ec6192ef5672b1..8f4ef9b0f4f793 100644 --- a/React/Views/RCTWebViewManager.m +++ b/React/Views/RCTWebViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTWebViewManager.h" diff --git a/React/Views/RCTWrapperViewController.h b/React/Views/RCTWrapperViewController.h index 7e27d904f2a0de..7baa0c08c533ed 100644 --- a/React/Views/RCTWrapperViewController.h +++ b/React/Views/RCTWrapperViewController.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/RCTWrapperViewController.m b/React/Views/RCTWrapperViewController.m index 71a7d84acda3f8..30103019eef4f2 100644 --- a/React/Views/RCTWrapperViewController.m +++ b/React/Views/RCTWrapperViewController.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTWrapperViewController.h" diff --git a/React/Views/SafeAreaView/RCTSafeAreaShadowView.h b/React/Views/SafeAreaView/RCTSafeAreaShadowView.h index 9987b22e5937e7..8ce55759f86ec3 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaShadowView.h +++ b/React/Views/SafeAreaView/RCTSafeAreaShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/SafeAreaView/RCTSafeAreaShadowView.m b/React/Views/SafeAreaView/RCTSafeAreaShadowView.m index 8b749bcce9132f..333c0da7fbe43f 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaShadowView.m +++ b/React/Views/SafeAreaView/RCTSafeAreaShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSafeAreaShadowView.h" diff --git a/React/Views/SafeAreaView/RCTSafeAreaView.h b/React/Views/SafeAreaView/RCTSafeAreaView.h index c2605f095ae0a5..1964b0b65f9f6f 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaView.h +++ b/React/Views/SafeAreaView/RCTSafeAreaView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/SafeAreaView/RCTSafeAreaView.m b/React/Views/SafeAreaView/RCTSafeAreaView.m index 971408ae25dfac..e4fe4b6d17146a 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaView.m +++ b/React/Views/SafeAreaView/RCTSafeAreaView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSafeAreaView.h" diff --git a/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h b/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h index 8e2fdac7b1abe0..a644890c6abefc 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +++ b/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m b/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m index 674c9ff3531b6e..0c38d89344755a 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m +++ b/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSafeAreaViewLocalData.h" diff --git a/React/Views/SafeAreaView/RCTSafeAreaViewManager.h b/React/Views/SafeAreaView/RCTSafeAreaViewManager.h index 9c8f5f28b9c22e..aeaf69a73deba8 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaViewManager.h +++ b/React/Views/SafeAreaView/RCTSafeAreaViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/SafeAreaView/RCTSafeAreaViewManager.m b/React/Views/SafeAreaView/RCTSafeAreaViewManager.m index bdbe7394cb52b6..6bc64562358ccc 100644 --- a/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +++ b/React/Views/SafeAreaView/RCTSafeAreaViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTSafeAreaViewManager.h" diff --git a/React/Views/ScrollView/RCTScrollContentShadowView.h b/React/Views/ScrollView/RCTScrollContentShadowView.h index 8b94dd2d61c0fb..e10573cca94ae1 100644 --- a/React/Views/ScrollView/RCTScrollContentShadowView.h +++ b/React/Views/ScrollView/RCTScrollContentShadowView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/ScrollView/RCTScrollContentShadowView.m b/React/Views/ScrollView/RCTScrollContentShadowView.m index d53a658edb0b97..3988ee381e7e66 100644 --- a/React/Views/ScrollView/RCTScrollContentShadowView.m +++ b/React/Views/ScrollView/RCTScrollContentShadowView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTScrollContentShadowView.h" diff --git a/React/Views/ScrollView/RCTScrollContentView.h b/React/Views/ScrollView/RCTScrollContentView.h index f25250cc5f8269..5271bf250b1591 100644 --- a/React/Views/ScrollView/RCTScrollContentView.h +++ b/React/Views/ScrollView/RCTScrollContentView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/ScrollView/RCTScrollContentView.m b/React/Views/ScrollView/RCTScrollContentView.m index a7fb9d2180e18d..a6426dec89a954 100644 --- a/React/Views/ScrollView/RCTScrollContentView.m +++ b/React/Views/ScrollView/RCTScrollContentView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTScrollContentView.h" diff --git a/React/Views/ScrollView/RCTScrollContentViewManager.h b/React/Views/ScrollView/RCTScrollContentViewManager.h index e1c90e31bff541..bf5c250a5fb0da 100644 --- a/React/Views/ScrollView/RCTScrollContentViewManager.h +++ b/React/Views/ScrollView/RCTScrollContentViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/ScrollView/RCTScrollContentViewManager.m b/React/Views/ScrollView/RCTScrollContentViewManager.m index 18585fb88d1f11..732f976556f610 100644 --- a/React/Views/ScrollView/RCTScrollContentViewManager.m +++ b/React/Views/ScrollView/RCTScrollContentViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTScrollContentViewManager.h" diff --git a/React/Views/ScrollView/RCTScrollView.h b/React/Views/ScrollView/RCTScrollView.h index dda27dfce04551..e1853e5d9d3558 100644 --- a/React/Views/ScrollView/RCTScrollView.h +++ b/React/Views/ScrollView/RCTScrollView.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/ScrollView/RCTScrollView.m b/React/Views/ScrollView/RCTScrollView.m index ecdb9ddaa2ddc0..f146ba0d2369a0 100644 --- a/React/Views/ScrollView/RCTScrollView.m +++ b/React/Views/ScrollView/RCTScrollView.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTScrollView.h" diff --git a/React/Views/ScrollView/RCTScrollViewManager.h b/React/Views/ScrollView/RCTScrollViewManager.h index 5faeb5b99d4cf4..40c1a9ddb10b42 100644 --- a/React/Views/ScrollView/RCTScrollViewManager.h +++ b/React/Views/ScrollView/RCTScrollViewManager.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/ScrollView/RCTScrollViewManager.m b/React/Views/ScrollView/RCTScrollViewManager.m index 3c7d11405a74dd..e5824afd3f386d 100644 --- a/React/Views/ScrollView/RCTScrollViewManager.m +++ b/React/Views/ScrollView/RCTScrollViewManager.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "RCTScrollViewManager.h" diff --git a/React/Views/ScrollView/RCTScrollableProtocol.h b/React/Views/ScrollView/RCTScrollableProtocol.h index a143d638602fa1..33ed067ec4acac 100644 --- a/React/Views/ScrollView/RCTScrollableProtocol.h +++ b/React/Views/ScrollView/RCTScrollableProtocol.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/UIView+Private.h b/React/Views/UIView+Private.h index 078f16e07219e0..7a8d6587ddcebd 100644 --- a/React/Views/UIView+Private.h +++ b/React/Views/UIView+Private.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/UIView+React.h b/React/Views/UIView+React.h index 1c90f16dbef806..94de7aae753130 100644 --- a/React/Views/UIView+React.h +++ b/React/Views/UIView+React.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/React/Views/UIView+React.m b/React/Views/UIView+React.m index a764eb46a941aa..22d14f82c4a334 100644 --- a/React/Views/UIView+React.m +++ b/React/Views/UIView+React.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "UIView+React.h" diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java index 159fee03ecb87c..713ab5962d6d40 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java index 4379470164fc54..0d1e87860033e6 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java index e62d09ecb0c14a..2d52005eb0976a 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java index 45dcff4114b0d0..b5bf197683c4e1 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java index 9def548b072eec..cdfb21491bdba0 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java index 5cf7e4373ef600..7806dacdf62ce6 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java index 1ddf186c90de2f..59b949e979509e 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java index a996403d44f337..6073cd6b96e5e2 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java index eeb8c02e06715d..8b93eeb8b19a87 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java index 9ba33a3fc4c223..96c18030635055 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java index f58efec73f1a46..4f37e63f7d97bc 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java index 3a61f2563223d2..31947b0682778a 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java index 7990c398208eb7..47137dbbe177af 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java index 7f5d2cd6c99ee1..54d03bc35f192b 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java index 6f58924f6a360d..fdf40c300f3dc5 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java index 95dc551badd140..c15ffc29f2590c 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java index 63554242b9d002..1452899dba9725 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java index 8d4da285bf2167..42eb0abfda88fa 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java index f0ae877a953d42..027291dcaf8f5b 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java index 8caa3b8f7117b1..bc827f2a85ff3c 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java index 1b94b7c1fc88db..d32494f92a5d5f 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing.idledetection; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java index 4aaa451e43ab24..6509897a3425e8 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing.idledetection; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java index af6ca2ebb82a55..00f9aefaa4e99b 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing.idledetection; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java index a6059a8925230f..9a6917078c78b5 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testing.network; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java index eb5a7e9d30ffed..6f3d5843b1a91e 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java index 3b13dabeb73fc7..1a2a783dcc9beb 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java index 174444f35b4822..ffaeb08148cb22 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java index 6208e73a0cefb0..dec91a4ea5449e 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java index c47e8f2619a621..0430858c6cf46f 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java index 6f7f5831f06c1a..4b360901013fc3 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java index 41b7b10bcb12a3..b150641e020155 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java index c7de7b9ba02070..d753d03f96dec2 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java index 4b6e2fd2a19036..cf5949e667a81d 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java index 951c593533e453..99de8a830014fc 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java index 7c87754e897d19..5e0b9ff62f67c8 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java index dc02df16a14bd1..ca05cfae197fed 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java index fbd94d6d732751..bab295fa709c42 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java index e547fed89a3a69..6888f021d9757d 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java index fdc03beaa0dd97..38ed87b5d8c31f 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java index 963442d470624d..52a8750d43066a 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java index dd93ee5fccccbf..cc2f680a37941c 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactRootViewTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactRootViewTestCase.java index 6ee0bed8796f27..f912347b497d82 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactRootViewTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactRootViewTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java index 45a47a67383e5d..b947e50a87a405 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java index bbef082ff10329..417bf4159b98a5 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java index 184bda6c1f6d4f..ccfa9f2b862d6a 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java index 3db5d4ee8a6896..1b0a904cdfddbc 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java index 08d19cae168923..cd0e8362d8f415 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TimePickerDialogTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TimePickerDialogTestCase.java index 3988911c429f9d..3af83b91877572 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TimePickerDialogTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TimePickerDialogTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java index 42e0c75f081754..11a2328021db36 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java @@ -1,9 +1,8 @@ /** * Copyright (c) 2014-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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.tests; diff --git a/ReactAndroid/src/androidTest/js/Asserts.js b/ReactAndroid/src/androidTest/js/Asserts.js index 9a4e9654ad550c..0cebeea419d20d 100644 --- a/ReactAndroid/src/androidTest/js/Asserts.js +++ b/ReactAndroid/src/androidTest/js/Asserts.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Asserts */ diff --git a/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js b/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js index d9ada150d9f6bc..33f0592a4832ef 100644 --- a/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +++ b/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CatalystRootViewTestModule */ diff --git a/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js b/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js index 88c9e5fc2f1bd1..0cd5685820cacc 100644 --- a/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +++ b/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DatePickerDialogTestModule */ diff --git a/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js b/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js index 3a4f403015044c..173ef647f48267 100644 --- a/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js +++ b/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule InitialPropsTestApp */ diff --git a/ReactAndroid/src/androidTest/js/JSResponderTestApp.js b/ReactAndroid/src/androidTest/js/JSResponderTestApp.js index 2d9aedd911e421..50612afb9e2e91 100644 --- a/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +++ b/ReactAndroid/src/androidTest/js/JSResponderTestApp.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule JSResponderTestApp */ diff --git a/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js b/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js index 9b354761edc4e9..d9ecf2ca1b54e7 100644 --- a/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +++ b/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule LayoutEventsTestApp */ diff --git a/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js b/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js index 12ef60816d0645..92ac114b6cc7fd 100644 --- a/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +++ b/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MeasureLayoutTestModule */ diff --git a/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js b/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js index 38b17db2c75f94..7daa884359fa9a 100644 --- a/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js +++ b/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule MultitouchHandlingTestAppModule */ diff --git a/ReactAndroid/src/androidTest/js/NativeIdTestModule.js b/ReactAndroid/src/androidTest/js/NativeIdTestModule.js index 711f2ddce99b5a..2e1acad3422756 100644 --- a/ReactAndroid/src/androidTest/js/NativeIdTestModule.js +++ b/ReactAndroid/src/androidTest/js/NativeIdTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule NativeIdTestModule * @flow diff --git a/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js b/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js index faba7ec7de4094..0f7255d1564089 100644 --- a/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js +++ b/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PickerAndroidTestModule */ diff --git a/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js b/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js index d27428049f29bb..bd466144c522d7 100644 --- a/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +++ b/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ProgressBarTestModule */ diff --git a/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js b/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js index 0081c50b216643..24371b0f76570c 100644 --- a/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +++ b/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ScrollViewTestModule */ diff --git a/ReactAndroid/src/androidTest/js/ShareTestModule.js b/ReactAndroid/src/androidTest/js/ShareTestModule.js index 4ef9b78e6243e2..f7311f656041e9 100644 --- a/ReactAndroid/src/androidTest/js/ShareTestModule.js +++ b/ReactAndroid/src/androidTest/js/ShareTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ShareTestModule */ diff --git a/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js b/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js index 4154e2a543bbe4..70fa837eed6b7a 100644 --- a/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +++ b/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SubviewsClippingTestModule */ diff --git a/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js b/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js index 80e2c6eb50d24a..277a768e9430f4 100644 --- a/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +++ b/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule SwipeRefreshLayoutTestModule */ diff --git a/ReactAndroid/src/androidTest/js/TestBundle.js b/ReactAndroid/src/androidTest/js/TestBundle.js index 5cbfea239e59aa..21fd06247e415f 100644 --- a/ReactAndroid/src/androidTest/js/TestBundle.js +++ b/ReactAndroid/src/androidTest/js/TestBundle.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestBundle */ diff --git a/ReactAndroid/src/androidTest/js/TestIdTestModule.js b/ReactAndroid/src/androidTest/js/TestIdTestModule.js index 962d2e6c736a85..eee76fbc05c00c 100644 --- a/ReactAndroid/src/androidTest/js/TestIdTestModule.js +++ b/ReactAndroid/src/androidTest/js/TestIdTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestIdTestModule */ diff --git a/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js b/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js index eff35902c901ad..be6bfc12a3a208 100644 --- a/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +++ b/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestJSLocaleModule */ diff --git a/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js b/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js index a20a62c0e1a307..bc526e7722ba2d 100644 --- a/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +++ b/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestJSToJavaParametersModule */ diff --git a/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js b/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js index 3e18819dcdafa6..b5abe26a8eeb57 100644 --- a/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +++ b/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestJavaToJSArgumentsModule */ diff --git a/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js b/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js index ad42aaad8a7ec4..135816a5c9d659 100644 --- a/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +++ b/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TestJavaToJSReturnValuesModule */ diff --git a/ReactAndroid/src/androidTest/js/TextInputTestModule.js b/ReactAndroid/src/androidTest/js/TextInputTestModule.js index 058ef7e45557cc..94593a3ab71449 100644 --- a/ReactAndroid/src/androidTest/js/TextInputTestModule.js +++ b/ReactAndroid/src/androidTest/js/TextInputTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TextInputTestModule */ diff --git a/ReactAndroid/src/androidTest/js/TimePickerDialogTestModule.js b/ReactAndroid/src/androidTest/js/TimePickerDialogTestModule.js index 7a8db9e072ed93..ebf8cdb4f1271a 100644 --- a/ReactAndroid/src/androidTest/js/TimePickerDialogTestModule.js +++ b/ReactAndroid/src/androidTest/js/TimePickerDialogTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TimePickerDialogTestModule */ diff --git a/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js b/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js index 47e3d8660ef083..cd8bcb51c52842 100644 --- a/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +++ b/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchBubblingTestAppModule */ diff --git a/ReactAndroid/src/androidTest/js/UIManagerTestModule.js b/ReactAndroid/src/androidTest/js/UIManagerTestModule.js index 236cfce2ea387b..5c976ce76dc3f9 100644 --- a/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +++ b/ReactAndroid/src/androidTest/js/UIManagerTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UIManagerTestModule */ diff --git a/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js b/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js index f10aeed87025ad..36d9328c93e209 100644 --- a/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +++ b/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ViewRenderingTestModule */ diff --git a/ReactAndroid/src/main/java/com/facebook/jni/IteratorHelper.java b/ReactAndroid/src/main/java/com/facebook/jni/IteratorHelper.java index aca1cb50fb04e9..928870d2bfc434 100644 --- a/ReactAndroid/src/main/java/com/facebook/jni/IteratorHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/jni/IteratorHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/java/com/facebook/jni/MapIteratorHelper.java b/ReactAndroid/src/main/java/com/facebook/jni/MapIteratorHelper.java index aa9283ed2f898a..e50cd7d56bc150 100644 --- a/ReactAndroid/src/main/java/com/facebook/jni/MapIteratorHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/jni/MapIteratorHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/java/com/facebook/jni/NativeRunnable.java b/ReactAndroid/src/main/java/com/facebook/jni/NativeRunnable.java index 151cc8ad80f0a3..34216a29c8ff54 100644 --- a/ReactAndroid/src/main/java/com/facebook/jni/NativeRunnable.java +++ b/ReactAndroid/src/main/java/com/facebook/jni/NativeRunnable.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java b/ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java index 28336820266728..e8fef3b4299e77 100644 --- a/ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/perftest/PerfTestConfig.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.perftest; diff --git a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/DoNotStrip.java b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/DoNotStrip.java index 86a3f2c3fb6e2b..a2752bbb0f8a3c 100644 --- a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/DoNotStrip.java +++ b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/DoNotStrip.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.proguard.annotations; diff --git a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java index 11f4f32b9878ac..4c261c5c9b27ea 100644 --- a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java +++ b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.proguard.annotations; diff --git a/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java index 187cabf2a69248..ab82f0d9643264 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java index 7b0ac3253bf402..43515b59febd8b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java b/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java index 3a83bd330b5d88..290082e545ba0c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java b/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java index 3add544a9fd78f..6bfac567bb2a04 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java +++ b/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java index 7a038505976746..68c184a0e1ccdf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java b/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java index 926b665e653593..3a8ca14b3ce8c7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.java b/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.java index 6b74532dfe546e..88b7ab2093fc1b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactFragmentActivity.java b/ReactAndroid/src/main/java/com/facebook/react/ReactFragmentActivity.java index 9671b0a1d70854..10bbd9d89639eb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactFragmentActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactFragmentActivity.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index 71844e945a89f2..2ba53056f02ca7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstancePackage.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstancePackage.java index 24de64936a4a99..03e872ae79da8b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstancePackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstancePackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java b/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java index 734597e8394dae..243053fcfe689f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java index fb1f8517d731d9..51828a144a249a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index c67cab536cd656..a19382fbf5eec8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java index e78d0ca2f13cdf..7f17809ffbb19a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java index 0fba5f90bbb244..5b2640f60049cd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNode.java index 61e02b1055e900..beaa02926368ce 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeValueListener.java b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeValueListener.java index fa0248cb3e1947..09dbb65bc34bfc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeValueListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeValueListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java index b2ae607513a13f..079a07add26733 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/AnimationDriver.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java index fb7c00d018f33d..1547633a386585 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java index bd59c807ccc88d..8f812a4b8143e7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/DivisionAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/DivisionAnimatedNode.java index 152bc049af70e0..8dc720e72ce924 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/DivisionAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/DivisionAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java index 20a6a8f83348ee..e0a1b0d1234037 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java index 3d37846fb0c6f0..d243fd8f45c940 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.java index 6c38e12e229f29..b1a138e2b54f48 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java index 2bce6b806362bb..d942d757459914 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java index 2f79e1a91ebb71..ae1a4d7b850760 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java index ac60f85c9e97db..de29f0383455f7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java index d54d24bd668ea9..1fad4e52d3cd4f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java index 036f88435cc21e..813d72b075e6b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java index be68582f818307..0b77e1f043fca5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/TransformAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/TransformAnimatedNode.java index 10dc12a4ac2ff3..d5f7f79b8efddd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/TransformAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/TransformAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/ValueAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/ValueAnimatedNode.java index 77dc74c70d6869..a28511b481b76f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/ValueAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/ValueAnimatedNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractFloatPairPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractFloatPairPropertyUpdater.java index e2b86a29f4b4f5..e29a94a2e46225 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractFloatPairPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractFloatPairPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractSingleFloatProperyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractSingleFloatProperyUpdater.java index d393fe8325b685..2ef6befadbb964 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractSingleFloatProperyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/AbstractSingleFloatProperyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/Animation.java b/ReactAndroid/src/main/java/com/facebook/react/animation/Animation.java index 37a6d2a1969997..670db11335181f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/Animation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/Animation.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationListener.java b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationListener.java index a3678ed91ff26c..ed192daeef3a9b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationPropertyUpdater.java index 37c42bb831dd13..3f0a8d1a37c101 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationRegistry.java index 74f0bedf47ef59..4df661c8be1c92 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/AnimationRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/ImmediateAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/animation/ImmediateAnimation.java index da72250548190e..dff3fa06d497a5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/ImmediateAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/ImmediateAnimation.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/NoopAnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/NoopAnimationPropertyUpdater.java index 83dbe3d9aebc11..7a94de2ddf5da9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/NoopAnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/NoopAnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/OpacityAnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/OpacityAnimationPropertyUpdater.java index d1acf3da59174d..e53aa8227cf678 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/OpacityAnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/OpacityAnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/PositionAnimationPairPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/PositionAnimationPairPropertyUpdater.java index b90740c5172c25..ab3678ff0e9310 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/PositionAnimationPairPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/PositionAnimationPairPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/RotationAnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/RotationAnimationPropertyUpdater.java index 214c84f6671e11..e089fdec658bf0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/RotationAnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/RotationAnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXAnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXAnimationPropertyUpdater.java index 9eb5567557a048..de4167972a66ed 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXAnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXAnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXYAnimationPairPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXYAnimationPairPropertyUpdater.java index 3ca9429d01928b..996e95d68f7149 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXYAnimationPairPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleXYAnimationPairPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleYAnimationPropertyUpdater.java b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleYAnimationPropertyUpdater.java index 25b02f2d0d9b09..533d6717f2efa2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleYAnimationPropertyUpdater.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animation/ScaleYAnimationPropertyUpdater.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animation; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java index 267a9ca8e5f210..1979edaa880c6e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java index fa574cc3e93aa3..651ec03a927497 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java index d43174f50632f8..694428509b1a06 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.java index ab72c46ba27565..1a7810d6f97b11 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/CallbackImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/CallbackImpl.java index 5b82505ce65a92..e1d28cfb8500e2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/CallbackImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/CallbackImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java index 29f03a1a17c1e0..361cfda0f2fb1d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java index fe3cef73f85966..c583fbec1b2130 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ContextBaseJavaModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ContextBaseJavaModule.java index 8f3471819294f9..ff5340631a214f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ContextBaseJavaModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ContextBaseJavaModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/DefaultNativeModuleCallExceptionHandler.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/DefaultNativeModuleCallExceptionHandler.java index 4d47156c747956..c730a5de7548e9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/DefaultNativeModuleCallExceptionHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/DefaultNativeModuleCallExceptionHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java index b817c48a27b8ee..feeab03bb228f1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromArray.java index 6b03442e362a31..6c107feeaa50a6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromMap.java index ce20452dd89696..4d268ea8614ccc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java index 679f802e3dd020..816c3d6c3b1dfc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java index 83a7fb014e34c9..749d6555338efc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.java index 2e5261b7fe3e5b..e57fe494f18001 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationCausedNativeException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationCausedNativeException.java index 38ad4a2f5cfa2b..7c6d5faa893af5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationCausedNativeException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationCausedNativeException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.java index ad491ab50100a9..70716b269a4759 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSApplicationIllegalArgumentException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSBundleLoader.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSBundleLoader.java index a3031d112f9ba2..61bc6f01816273 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSBundleLoader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSBundleLoader.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutor.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutor.java index e329cf5dbfb36e..ee77eda70b984c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutorFactory.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutorFactory.java index 8cc59a876ccc7e..5e360808c03d6e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutorFactory.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutorFactory.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.java index 43473839bd48b6..fb1333680e1241 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaJSExecutor.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaJSExecutor.java index 0b119ce7f664c1..801b550a8c1569 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaJSExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaJSExecutor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java index 63af54d2a4e3e9..e0490c10a8bb12 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java index 4e46ca4878dce5..ae91556b269034 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java index dd648f53d1c1b8..0533cfd3e4c829 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java index 3b9ccf6fdde9de..62be17622de388 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutor.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutor.java index 562e4fde605358..e4195aff332841 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutorFactory.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutorFactory.java index 7e12b9f599fc1c..e34b4b1d00b3fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutorFactory.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptExecutorFactory.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModule.java index af23afcfe01e30..c086508a3d6cdf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModuleRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModuleRegistry.java index 6062e81dbd5f26..5df3309135e915 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModuleRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptModuleRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriter.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriter.java index 664a7a27394e82..33714b555102d8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriter.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriter.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriterHelper.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriterHelper.java index 99b6593a2e1b09..cc55b7d9259714 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriterHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JsonWriterHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java index 169874ddfd3687..3fa44d4b8ecd3a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java index 6eddfe56f755ea..537a610e513b27 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.java index 7efeb1476630cf..7cd373a6785ab8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArgumentsParseException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java index 26cd356cb7541d..bd314caf65985c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java index ea0b6b1420f00a..55b32d7171d752 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java index 8dffd27badb154..a57b41f93cc698 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleCallExceptionHandler.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleCallExceptionHandler.java index 708bdfd8d03899..9d77885dac77c7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleCallExceptionHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleCallExceptionHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java index 6015b4a208cb44..d30b7a5a378890 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.java index 4d5630f9fda36e..e1b1e2829acbf8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NoSuchKeyException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.java index aa571141c05c50..a10fa295399dc0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ObjectAlreadyConsumedException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ObjectAlreadyConsumedException.java index 9b374c145ea852..4faaa4fe363108 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ObjectAlreadyConsumedException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ObjectAlreadyConsumedException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.java index 25db113ae0d5a2..5448bc8fd06ad5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/PerformanceCounter.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/PerformanceCounter.java index 87a2e4b080e307..b4a075ae6c3491 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/PerformanceCounter.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/PerformanceCounter.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/Promise.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/Promise.java index 9e87cc1414e5dd..aa8c3bee4a83fb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/Promise.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/Promise.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java index 519448f6d9ed79..1ee2380ff8bba6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ProxyJavaScriptExecutor.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ProxyJavaScriptExecutor.java index 08a225948b96bb..db04655d35479c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ProxyJavaScriptExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ProxyJavaScriptExecutor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java index ccf9f7998355a3..1d33a2d24a2e2a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java index 89ebbd7403ee75..a9463c20dd5752 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCallback.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCallback.java index 94784cb306133f..7cd1e898142857 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCallback.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCallback.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java index 37bb9b64cf34f4..713f5a7fd8156e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java index 6a73f73ccb25ef..2a7c4482136ff6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.java index 821cc79a56716d..1a15f6ab31432f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.java index b0af8b48592aeb..e7dac2d49593e5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java index 01c9e34a197f52..f4e17403f27cfa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java index f035041884e170..1af1631b8a353b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.java index 9710496b602a7d..fad9c994ed728c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java index 9ed4c1ca9e7cee..2e2b13f1bcc178 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java index ea1d04d0738fb1..82f7f20a0229dd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.java index 0c6e2a04414d42..b1a9057e8e198b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java index 4b0396e0c21cf9..b9093263671655 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java index 17c8c99fe3327e..292efedd310196 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.java index fee3ebbde7baf9..f15e4886a19b03 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.java index 6861669cb4844b..0b7b5d175d5e36 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.java index 765fe39a584711..62073f177ca2db 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java index 6b30bc326b23c5..90bd2de5add358 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java index 04e5bdfdc2e1d1..e10caeb95c28c5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThread.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThread.java index fca4ddc18ac914..2449cafb726c37 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThread.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThread.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadHandler.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadHandler.java index 6350180fdb918c..d2be287f9e338c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadImpl.java index 1afaa10ce5b120..be06d0615ba44d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadSpec.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadSpec.java index 800371c9c854f7..c9df9ca5436c78 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadSpec.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnable.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnable.java index fa3a208f668c3d..f474e8f972e350 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnable.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnable.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnableDeprecated.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnableDeprecated.java index 9e77c7eb88c7d4..4da397799cef42 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnableDeprecated.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/NativeRunnableDeprecated.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/QueueThreadExceptionHandler.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/QueueThreadExceptionHandler.java index 262f4aa5c47353..4139da528c47d6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/QueueThreadExceptionHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/QueueThreadExceptionHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfiguration.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfiguration.java index b5b44a9a2c51a0..010dc872daef44 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfiguration.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfiguration.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationImpl.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationImpl.java index 60d7e0eb164302..cc02e072190d41 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationSpec.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationSpec.java index a112f217c608de..d49a26b5434c2d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ReactQueueConfigurationSpec.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge.queue; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/DebugServerException.java b/ReactAndroid/src/main/java/com/facebook/react/common/DebugServerException.java index 804b9f54bb934c..4c10cb114f99cd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/DebugServerException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/DebugServerException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.java b/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.java index d1e68004fd064a..ecb1ba83eca3ea 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java b/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java index f6e4843b0e390e..45402ab0da5a56 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/LongArray.java b/ReactAndroid/src/main/java/com/facebook/react/common/LongArray.java index 74bced6cfa94e8..883bd714ceabb6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/LongArray.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/LongArray.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/MapBuilder.java b/ReactAndroid/src/main/java/com/facebook/react/common/MapBuilder.java index f73fbdae352dd4..151fbf144d0fcc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/MapBuilder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/MapBuilder.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java b/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java index 7de8d922fa8b45..eae26cdebb35b6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/ShakeDetector.java b/ReactAndroid/src/main/java/com/facebook/react/common/ShakeDetector.java index b3388bdbd48ae8..5d14415072fd20 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/ShakeDetector.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/ShakeDetector.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.java b/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.java index ad45e838ed9c3f..3f541304849041 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.java b/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.java index 49b51967315399..0c26d6c499db81 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.java b/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.java index 348855edbbfa0f..4877b64ea9765f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java b/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java index f9a71ab1832119..4d77e7f3a05dce 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/annotations/VisibleForTesting.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common.annotations; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java b/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java index 91abd2970af4a6..dcbc7c8fd26df0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common.build; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/futures/SimpleSettableFuture.java b/ReactAndroid/src/main/java/com/facebook/react/common/futures/SimpleSettableFuture.java index 9caf34cd62312a..aca28f748fe7db 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/futures/SimpleSettableFuture.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/futures/SimpleSettableFuture.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common.futures; diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/network/OkHttpCallUtil.java b/ReactAndroid/src/main/java/com/facebook/react/common/network/OkHttpCallUtil.java index 1d199203c423d1..e7b5380a1c56b3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/network/OkHttpCallUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/network/OkHttpCallUtil.java @@ -1,10 +1,8 @@ /** * 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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.common.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java index a5501081ac90f8..cf257cc8f629ba 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java index c7dcad64088f5c..b56cbfc7e8c719 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java index dec05232797a03..e3204e6457bf9f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java index bb45f8d5d7da72..7641b25a3d9d07 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java index 32002c750b8799..4d7bd7c84fc207 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java index 13a6efdb41cbb4..757887ba7d243b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java index b725cfb14ed9ce..59cc883375c9e5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java index c1db27fec1cf5d..656ccd61426604 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java index 51bc07e8a59c33..3441755eb94356 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java index 71742026b370c3..a6fcfa6dcdbf21 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java index 75dea0a30e4d05..8a65c8bc39c503 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/HMRClient.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/HMRClient.java index 8ef0e5e35bc114..cc1c8bf763dba2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/HMRClient.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/HMRClient.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCHeapCapture.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCHeapCapture.java index b710b6de328d2d..7f99c0fd0f2f42 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCHeapCapture.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCHeapCapture.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCSamplingProfiler.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCSamplingProfiler.java index 049f72c3284468..c69c8eb631fb31 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCSamplingProfiler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSCSamplingProfiler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java index 3a812499713cd2..132ae6ba30a6e3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSException.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSException.java index ca83f57bb7b7da..d4dfb627225ada 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java index 7a661eb031ecee..80eb0b6e4d51a6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/MultipartStreamReader.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReactInstanceManagerDevHelper.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReactInstanceManagerDevHelper.java index 3b53ffd9a0b558..7694c68db9dbca 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReactInstanceManagerDevHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReactInstanceManagerDevHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialog.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialog.java index 4c4d046da66768..6d912d545f90ef 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialog.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialog.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java index ad20145a21c6b8..071e7dc4d3c6a7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java index be331756d0c1db..75ca90d532911f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/WebsocketJavaScriptExecutor.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/WebsocketJavaScriptExecutor.java index 858f7e004c790a..9a4a581e761bf8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/WebsocketJavaScriptExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/WebsocketJavaScriptExecutor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java index 3f45d3e911e5df..661a8cba243613 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.java index c0123cb5f53c89..9efe1bd75483cf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java index b12027f15308d5..4a081e56d43b67 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.java index 03f273e97e42fa..8612d2db9da5c5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java index f5abfb9bd0489e..5fc3027c555c21 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java index 2e9903092ded3c..3fdc1ea07e94b7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawBorder.java b/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawBorder.java index e8e19bf9158081..9ebbf1baabcfe9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawBorder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawBorder.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawCommand.java b/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawCommand.java index f6576d71957c38..fd924b8d110445 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawCommand.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/AbstractDrawCommand.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java b/ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java index 98d0f89d52cebc..9658620aced638 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/AttachDetachListener.java b/ReactAndroid/src/main/java/com/facebook/react/flat/AttachDetachListener.java index af51827b9e448b..1498380f3edb0d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/AttachDetachListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/AttachDetachListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/BitmapUpdateListener.java b/ReactAndroid/src/main/java/com/facebook/react/flat/BitmapUpdateListener.java index 16432e0be13842..3eeb4888d3e3e7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/BitmapUpdateListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/BitmapUpdateListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/ClippingDrawCommandManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/ClippingDrawCommandManager.java index 0008ee69e57781..390f8f9225e8b2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/ClippingDrawCommandManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/ClippingDrawCommandManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBackgroundColor.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBackgroundColor.java index a8e62c5f87bdf0..ec9291180d7b40 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBackgroundColor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBackgroundColor.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBorder.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBorder.java index 1264790961740d..d48b3d326c2a9c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBorder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawBorder.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommand.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommand.java index e88436fb316ac6..b7f2d5f41f903f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommand.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommand.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommandManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommandManager.java index 0f695f04780555..bdab8db25e8639 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommandManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawCommandManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImage.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImage.java index a61ebafeaefab6..05b9503d0edea4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java index da506de63f35b5..8797cce68e83ad 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawTextLayout.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawTextLayout.java index 52fdb6fa0b78ab..495a53e0d06843 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawTextLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawTextLayout.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java index b378ab22dc23c0..e2bdce5fb95201 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DraweeRequestHelper.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DraweeRequestHelper.java index 89f4ef236ba4e8..bf32f740395e30 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DraweeRequestHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DraweeRequestHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/ElementsList.java b/ReactAndroid/src/main/java/com/facebook/react/flat/ElementsList.java index b0e5eb86856189..e741cde43306ca 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/ElementsList.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/ElementsList.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.java index c8afc3e54ac26e..f6382b80befccb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewShadowNode.java index 64a127538dd723..09fa6a42a42969 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatMeasuredViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatMeasuredViewGroup.java index 573f8944f08ca7..7e7ee2e46ac427 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatMeasuredViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatMeasuredViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java index d7d74eb2e7f5a7..eb2d082bdf89ab 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java index 4a180685d0ee9b..01191247c84edc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootShadowNode.java index d339a14ba34082..b60ab205b7a406 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootViewManager.java index 6451d62d26dd95..929c8ce81836aa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatRootViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java index f9959b8b8651cf..9f96433b8094f0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatTextShadowNode.java index 893e508512c75e..90a349d2e573ba 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatTextShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java index 3eacf06ba54f49..74174d2b6ab50a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIViewOperationQueue.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIViewOperationQueue.java index d2f9bd4e6011d0..3806e2ebc602ab 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIViewOperationQueue.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIViewOperationQueue.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewGroup.java index f46d6745b5e7fc..ae94b744b9fdfa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewManager.java index 5bfe0aee6b6421..8969b67243b80b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FontStylingSpan.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FontStylingSpan.java index 6fb32828f0feeb..d7490984da726a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FontStylingSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FontStylingSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/HitSlopNodeRegion.java b/ReactAndroid/src/main/java/com/facebook/react/flat/HitSlopNodeRegion.java index 09ef242545839f..09bb2f90cb52fb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/HitSlopNodeRegion.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/HitSlopNodeRegion.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/HorizontalDrawCommandManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/HorizontalDrawCommandManager.java index e80c4a0a746cfc..9621c9b3ebeb03 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/HorizontalDrawCommandManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/HorizontalDrawCommandManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/InlineImageSpanWithPipeline.java b/ReactAndroid/src/main/java/com/facebook/react/flat/InlineImageSpanWithPipeline.java index 47f0b2dc1cc14e..9f7aca9a72019a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/InlineImageSpanWithPipeline.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/InlineImageSpanWithPipeline.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/MoveProxy.java b/ReactAndroid/src/main/java/com/facebook/react/flat/MoveProxy.java index 08d2e6f81dda3c..6f786b80f85459 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/MoveProxy.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/MoveProxy.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java index 06f1b35b43e814..a930f7504daa6f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/NodeRegion.java b/ReactAndroid/src/main/java/com/facebook/react/flat/NodeRegion.java index 36e7b765c54efd..41169f7f2de481 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/NodeRegion.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/NodeRegion.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/PipelineRequestHelper.java b/ReactAndroid/src/main/java/com/facebook/react/flat/PipelineRequestHelper.java index 8d2881b690aaf9..77b4fb0dcd9d99 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/PipelineRequestHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/PipelineRequestHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageView.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageView.java index fd4da4a3d5e736..7b74a130b4964c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageViewManager.java index 7813bc2241fab6..6d7dcd494e8bcd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java index f9f7b4d66ba6c6..1b49f57534dbb8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawText.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawText.java index 4d675b9433c950..f0a8d1d33861b6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawText.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawTextManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawTextManager.java index b50dd7a1adfb29..c1695c507489be 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawTextManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTRawTextManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java index 4e07754ff8214a..683aabf6d6f7d8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImage.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImage.java index 8a0f937ca984a9..728df41d51d4bd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImageManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImageManager.java index f4c73e586a7d6d..f670378585e5f0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImageManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInlineImageManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java index 221117a6c8ab2e..77d3cd9a33b3f2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInputManager.java index c641acd7566499..62fe19960cba5e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInputManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextManager.java index fc94166c65e762..77ec1fb256e285 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTView.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTView.java index 547fe5f1838920..2beaa2230ce624 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewManager.java index 98f861e61b99ab..2e08dde5d2116a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewPagerManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewPagerManager.java index ea6ef191e2175c..23b00fe198431c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewPagerManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewPagerManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java index f50749fb188e32..1c0bcee7913a58 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualTextManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualTextManager.java index d32cf8eca0493c..0c1ff3fd97863b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualTextManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualTextManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/ShadowStyleSpan.java b/ReactAndroid/src/main/java/com/facebook/react/flat/ShadowStyleSpan.java index 6f79adcb4e1f5f..a0435b409ba834 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/ShadowStyleSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/ShadowStyleSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java index 61bf2bc7797e46..301a488581c817 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/TextNodeRegion.java b/ReactAndroid/src/main/java/com/facebook/react/flat/TextNodeRegion.java index 434520209d9855..9440ebc0835156 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/TextNodeRegion.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/TextNodeRegion.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/TypefaceCache.java b/ReactAndroid/src/main/java/com/facebook/react/flat/TypefaceCache.java index 52da24a01f9311..c684af4adaaa92 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/TypefaceCache.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/TypefaceCache.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/VerticalDrawCommandManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/VerticalDrawCommandManager.java index 0584823b855687..9cf730fcbc4425 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/VerticalDrawCommandManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/VerticalDrawCommandManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/ViewResolver.java b/ReactAndroid/src/main/java/com/facebook/react/flat/ViewResolver.java index 0ff867f5da7a8e..1d742ec8f1eefa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/ViewResolver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/ViewResolver.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/VirtualViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/VirtualViewManager.java index 04078415e1e011..dc382fea10f9aa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/VirtualViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/VirtualViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.flat; diff --git a/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskEventListener.java b/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskEventListener.java index fd81539b4508db..af7acc6da72d55 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskEventListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskEventListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.jstasks; diff --git a/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java b/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java index 23c9437116c5bd..e70ae678a44d9c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.module.annotations; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java index 37e07edd30a276..16b39acd67a9c0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.appregistry; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java index 78be38352c55f5..f4bc26fbafedbf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.appstate; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java index 7e1c4954af8b7e..0c2adc91d43fb7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.blob; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java index 2404f2dbab1393..8e46ba7f0bd066 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.blob; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/FileReaderModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/FileReaderModule.java index d8cd3c73e63e91..88a15734836385 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/blob/FileReaderModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/blob/FileReaderModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.blob; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/CameraRollManager.java b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/CameraRollManager.java index c10c46dde89db9..eb332268ad6690 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/CameraRollManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/CameraRollManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.camera; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java index 02ff3ec13f7ea1..930a12fb757c19 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageEditingManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.camera; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java index 1cae0f27284c1f..5615bbd0d1a280 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.camera; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java index 62187356b814c6..4aeaea2d7ba61b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.clipboard; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.java b/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.java index 0e811e1a04817f..e085008dd48eda 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.common; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java index bfad9499670c70..cfa29c7af11f21 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java @@ -1,10 +1,8 @@ /* - * Copyright (c) 2013, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * This file was pulled from the facebook/rebound repository. */ diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/DefaultHardwareBackBtnHandler.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/DefaultHardwareBackBtnHandler.java index 55c2810bb1cd92..ec0e92188f15a2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/DefaultHardwareBackBtnHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/DefaultHardwareBackBtnHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/DeviceEventManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/DeviceEventManagerModule.java index 806455cdae004a..11570143e09c87 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/DeviceEventManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/DeviceEventManagerModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java index af6e133e5bba81..c3b995baac638a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/HeadlessJsTaskSupportModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/HeadlessJsTaskSupportModule.java index 5f4c0799d422a2..62fd4d553ac8d8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/HeadlessJsTaskSupportModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/HeadlessJsTaskSupportModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimers.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimers.java index 1e0ab729d5b67d..5520a713770211 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimers.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/JSTimers.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java index 50506f99ba2581..f8c780626c9a2c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionListener.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionListener.java index c4011ea1370979..205ce21c894e68 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/RCTNativeAppEventEmitter.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/RCTNativeAppEventEmitter.java index 2f678a97b48d9a..c59d8e0e11380c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/RCTNativeAppEventEmitter.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/RCTNativeAppEventEmitter.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.java index 4e622f52451ec0..653b9d999edbb1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java index aeb467082c9702..0716ddaa56b6da 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.core; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java index 50d77884110603..8ba3c5555205f2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.datepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java index 1aeea410d4e1d2..8d531ce65dd323 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.datepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java index 5106c9cce475bd..a499657a67d273 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.datepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java index cdedafc60beb83..18c3ea2faac9db 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.datepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/SupportDatePickerDialogFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/SupportDatePickerDialogFragment.java index d935d58d84d542..582dc8c954e315 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/SupportDatePickerDialogFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/SupportDatePickerDialogFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.datepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/AnimationsDebugModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/AnimationsDebugModule.java index 5e991d4c48c67d..96884ba62a24b5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/AnimationsDebugModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/AnimationsDebugModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.debug; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.java b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.java index 3f5876a4cb4026..37bf6596f6da76 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.debug; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.java b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.java index eda077bab8223a..ee55407636be4b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.debug; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.java index 51b9c208f9e3d9..a631589365c6a3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.debug; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.java b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.java index 6c51bc6891798d..9850d0e2722a30 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.debug.interfaces; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java index d6b43bf4b795a4..ea2f46948121ff 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.deviceinfo; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java index 9f23515c63c3b7..a233b9130fc0c7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.dialog; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogModule.java index 6c2f39d180d691..df1f45aca0e0e9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.dialog; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java index f93c8afa7110a1..dea3c71a6f60fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.dialog; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java index b4e0b997d4480d..40e0a22eb0cdb1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.fresco; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactNetworkImageRequest.java b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactNetworkImageRequest.java index a2bdfca5ba446b..40f96f7aa515f3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactNetworkImageRequest.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactNetworkImageRequest.java @@ -1,10 +1,8 @@ /** * 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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.fresco; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.java b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.java index 9d8a34ec439793..5b89fec6a50a95 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.java @@ -1,10 +1,8 @@ /** * 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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.fresco; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java index 4124dbecd11c44..fdbf4b4ee62c9e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.i18nmanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java index 1a2ecf11e50957..9bba7414285525 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.i18nmanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java index 92ab18ca5e3804..3e10ad9262ef88 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java index 8d3cc8b751a424..2a4c20ed56c352 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.intent; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java index bdc908ca704c2d..ba5059f93d471c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/location/LocationModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.location; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/location/PositionError.java b/ReactAndroid/src/main/java/com/facebook/react/modules/location/PositionError.java index 5df0372e4993a0..82f7d0dc801544 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/location/PositionError.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/location/PositionError.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.location; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java index 58c57387eba9b5..98c6a5f1761fa9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/netinfo/NetInfoModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.netinfo; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkInterceptorCreator.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkInterceptorCreator.java index 15f136753ca6b6..2f23bb15c1d806 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkInterceptorCreator.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkInterceptorCreator.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java index fe379bb1f2e414..2635157116643c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientFactory.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientFactory.java index 9e417d00fdc7bf..25d2e521106d74 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientFactory.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientFactory.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java index c90e908ad1c931..125059675d8883 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressListener.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressListener.java index 5cca72845cde8d..19376825dff0d6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressRequestBody.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressRequestBody.java index 0e478228f4e048..914ce3c901106a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressRequestBody.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressRequestBody.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java index 1d528e77563648..afc6fdd94d26d0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java index 121d1971b659ef..2f4c13c32c48e4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ResponseUtil.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ResponseUtil.java index cd5aabff0fdceb..5d009245d0312b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ResponseUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ResponseUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/TLSSocketFactory.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/TLSSocketFactory.java index 0fd2a2d8676889..0cd441e6fb5c07 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/TLSSocketFactory.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/TLSSocketFactory.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.java index 634dc89555fc05..0b943bc6c08e7d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.permissions; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.java index 06b4a1aea17084..aa9717e0b3bc15 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.share; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java index 296e9f09c5356b..333b5ce5a4e788 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java @@ -1,10 +1,8 @@ /** * 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. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.statusbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java index ea6487c9b49818..11f9a569e655e2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.storage; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java index 75f25617e5071b..381b46bd02d7bf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.storage; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java index 0dba149d85d04f..c9fc96e575f169 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.storage; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java index 9787ddf6a978a8..6e845fb802dd26 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.storage; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java index 700b6a616bb40b..98ca742f716803 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.systeminfo; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java index b6514ec58be729..9e8ac43662b364 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.systeminfo; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/DismissableTimePickerDialog.java b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/DismissableTimePickerDialog.java index 53da526aafda6a..8e59a1b482dc8e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/DismissableTimePickerDialog.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/DismissableTimePickerDialog.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/SupportTimePickerDialogFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/SupportTimePickerDialogFragment.java index d745984a1d42bd..3dc5579cbd49e1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/SupportTimePickerDialogFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/SupportTimePickerDialogFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogFragment.java b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogFragment.java index 2450aa92755320..a5bf836efd5557 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogFragment.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogFragment.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogModule.java index 178d50fd843ee5..d74f3a712ddca7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerDialogModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerMode.java b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerMode.java index 1dd547f7069f6d..26657481c87ea6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerMode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/timepicker/TimePickerMode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timepicker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.java index 6902df223e859f..a75f1a9a995cd0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.toast; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java index 932d82a8038c4e..8d92f019337044 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.vibration; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java index c7b6c8bbe50d79..fcdb890f8c4632 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.websocket; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/FileIoHandler.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/FileIoHandler.java index 5f55f03d8cc6f0..11cb364573728c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/FileIoHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/FileIoHandler.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/JSPackagerClient.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/JSPackagerClient.java index efa8fbc111296d..50340d6d5fe622 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/JSPackagerClient.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/JSPackagerClient.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.java index dc337019cb99b3..1ff1f2c6e149a8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.java index 488601521364f7..5ef2b73f7bc58b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java index cc00f3d8e3fb39..46cfb6d907a196 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestHandler.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestHandler.java index 4d7a25231ee72b..d6f97f97132a78 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestHandler.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.java index 9e617bee728bf9..d4af3571fc736f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/Responder.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/Responder.java index b91a0a7d1d8a08..c2d4a1f5d4792d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/Responder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/Responder.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/SamplingProfilerPackagerMethod.java b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/SamplingProfilerPackagerMethod.java index a4457d7393948a..f1de5e198efe87 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/SamplingProfilerPackagerMethod.java +++ b/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/SamplingProfilerPackagerMethod.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.java b/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.java index a5fd60a1573a02..388709b87eaaeb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.shell; diff --git a/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java index 73b478ea030b03..aa8193d08e4def 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.shell; diff --git a/ReactAndroid/src/main/java/com/facebook/react/touch/JSResponderHandler.java b/ReactAndroid/src/main/java/com/facebook/react/touch/JSResponderHandler.java index 7140e2c303fea8..c206bc725752b3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/touch/JSResponderHandler.java +++ b/ReactAndroid/src/main/java/com/facebook/react/touch/JSResponderHandler.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.touch; diff --git a/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java b/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java index 299d2f4ae0ca5b..6bb2e71b907e10 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/touch/OnInterceptTouchEventListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.touch; diff --git a/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.java b/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.java index adda78ab020cfc..82f7f3d6bb5d2b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.touch; diff --git a/ReactAndroid/src/main/java/com/facebook/react/touch/ReactInterceptingViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/touch/ReactInterceptingViewGroup.java index d7b919b7f18e98..c75c1b017f268f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/touch/ReactInterceptingViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/touch/ReactInterceptingViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.touch; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityHelper.java index 036badada735ca..615bfbbcd8f6c7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java index a8d130ca621aa9..4d2ad3b55d2d43 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.java index 35caa12caeeaed..79930641fbbc2c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java index 60ea1ddc9861be..abc9d1fb4c67ba 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.java index 3f5899e55bf885..4707a9c143c5b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java index 86abf04fdd3f19..096a7beb69f384 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.java index 3247709e619aed..5dd2f36ac7711a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java index 66a333b41f6eac..95d919ed10d8c9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java index f1ab0472b0ad1c..de23eeaa1cce25 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.java index d8c125a72a6ed8..7fdf9d8943533c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/OnLayoutEvent.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/OnLayoutEvent.java index 118a1bbdc3ed6c..47de61c9a6d7fa 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/OnLayoutEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/OnLayoutEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java index 6a3ecd0a592936..4f69c62e50059e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java index 1d86fe7494c57c..da4f248fa76027 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroup.java index 1ff1bfb6074cc1..a6b0f51efcbe73 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java index eab4ae170f6156..009cab688e4ae4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java index 980e35d6256367..4f2f27976f0a45 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java index 345dea9f9184bc..e78f67bc9a230d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java index e219f18ccd0857..4ac48ee9d9579d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java index e47e13e483cb21..334b1949079749 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java index de2b4425127747..87950f69f0c4b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index 55c49d70e5ac19..e6bb9a5865878c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStylesDiffMap.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStylesDiffMap.java index 601acfe45693ff..d57504f4bb1002 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStylesDiffMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStylesDiffMap.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java index 6863740ea3dea6..1ce0316f9b9966 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.java index b9ee413b4a577a..c590a53eaf2ad8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.java index f9076cbe45b8de..98727a39a8fdbe 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ShadowNodeRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ShadowNodeRegistry.java index cf25abc4d348f6..1b3cebc1fb2495 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ShadowNodeRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ShadowNodeRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.java index 3ddaa406330952..9430ca7a62cd5b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/SizeMonitoringFrameLayout.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/SizeMonitoringFrameLayout.java index fa952878dbcaac..9e6c580155cf03 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/SizeMonitoringFrameLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/SizeMonitoringFrameLayout.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java index 2dc9ffb66dc7aa..53bea8824d7607 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java index f3a1a2f10863c3..375df0d05ff884 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java index 90ad8acfd364a2..fc8c4cb1476d3e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index b58d25aaa6f1e5..98e4a592c6ec9d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java index 305519af9e62c9..51e0d66e93b915 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index 7becf4ad48f221..6a8d6db53f8219 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java index 8f5cba8c3bc854..1eea5018a8dfc5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java index 76e0b9ecea2d20..beb067f1313ab0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleListener.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleListener.java index 1dda859eb3f459..46e5807a3b1466 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java index c09a7cfccd4e07..dcce5b8ed9b44d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewAtIndex.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewAtIndex.java index 6ceef2632d36f4..18d95d7c17160f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewAtIndex.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewAtIndex.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.java index 5ee3cc36ab2f00..0ccacd7f5dab7e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java index 7ea9a57399f92c..b96562ed1713a4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java index 103529a0e96857..017fb5764e7237 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewHierarchyDumper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewHierarchyDumper.java index 3b46b626841342..6c0ae3dd62d40d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewHierarchyDumper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewHierarchyDumper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java index 4972cbbde45f1e..1895adc1ad17b1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java index 66559f9e78fed0..7e71b566b5799d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java index 18f238320e4989..ec703e8cf9e317 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.java index 6f35ca06588eeb..c1ac00488f3906 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.debug; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java index 56eeabc5004b90..68d07f3f87887a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java index caaf1c6ce070e8..c53a9f3dec5fb0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcher.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java index 6ef3011b2a8add..41328fd24c7493 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java index 4fa6f36770cb5e..b964186059f372 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java index 03d922852ea361..1d16c159523231 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventCoalescingKeyHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventCoalescingKeyHelper.java index 3003dedb4c5d32..3ead8fc7bfe4f3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventCoalescingKeyHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventCoalescingKeyHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java index 36f32966114e90..6d6cac7b6cf0ed 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java index 43a12b073fde9f..cf435590f70275 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.java b/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.java index d3ebe61320ac1d..7a3d5f02e0dac3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.java +++ b/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.util; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java index 2f83aeeb30522c..780147294f1a44 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTRenderableViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTRenderableViewManager.java index 2bae8758dc11ee..bb98853f652f7a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTRenderableViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTRenderableViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java index ca5e4f136d5eba..dc8980ae2ebc06 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceView.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceView.java index ea55d0b415f112..93f2c21eb1aacd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewManager.java index 88046a62ca261f..24787ef84a5364 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewShadowNode.java index e3c78600bd260b..429812e1991627 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java index d6e1583529cc29..b10f59bff8d247 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java index ac9739b02d4c50..5cc9d49f65f984 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/PropHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/PropHelper.java index 04497fc4d88d4d..b841cf856b1eea 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/PropHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/PropHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.art; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBox.java b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBox.java index 88e7f6aa745062..324a9b2c7869ff 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBox.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBox.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2017-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.checkbox; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxEvent.java index 085edcec63c25d..0f41725efdb64b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxEvent.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2017-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.checkbox; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxManager.java index b064d940fa363b..e71c601f4e7b74 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/checkbox/ReactCheckBoxManager.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2017-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.checkbox; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java index cdb0265e26e49f..acd637a7166e98 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java index e61d1266e1f29e..1620d637a9d977 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java index a6845037d89702..4f51b7f596bf47 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java index b94d5937ae4510..471cd079dad652 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java index 5010ee6befa480..ca4260e44f9335 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java index a4d9294875201b..41682e17f6eb65 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.drawer.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.java index f47c34540164c7..d21984a3f306e0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java index ff366b0c28958c..98fb2fe7151c2d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.java index 96f22e326da2f7..3cff8b9667a292 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java index e77fd6fd98e541..21014c5c7b0fd5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java index 940ae7f1b002de..3fa2e66eb82e6d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java index 9a914cb66edbb2..116ef13bb92f7b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.imagehelper; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java index ef3f4f981ee198..d01b314e83681a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.imagehelper; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java index 0e2a20e574a0e5..de962cecab2312 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.imagehelper; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java index 8c3b5fde63e7ba..98c5f0db69aaa9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.modal; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java index 68d4c91f1e9773..0f67e9c9e0bb13 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.modal; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java index b191afd028e3fb..1d64cb83f8f018 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.modal; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.java index 133488760441bf..ec3129dc8d069d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.modal; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.java index a0851ccf75e6c9..6e76cb71e66fac 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.modal; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java index cf3597d4d73823..9d0f6c9371a428 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.picker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java index ba92aa69e93be8..e099e467de8962 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.picker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java index a5e4a12b74bdab..cb0ee6d4d781ba 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.picker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java index 5e1e9ccf33a236..59f5461ab60795 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.picker; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java index 3eb45f48b74424..91b15a94539f49 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.picker.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java index e8209c002b6298..7975f67fbd9cd3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.progressbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java index 22610aaa0c63d9..e35eafe1efd9e0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.progressbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/FpsListener.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/FpsListener.java index dfff3149a0f987..2ce0ae2d5baa8f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/FpsListener.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/FpsListener.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java index c0014311f9551c..b8d0c11158de37 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java index ebcd2d50110663..90b9d1fc4d3a9c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java index 9b59dc6c55ff56..f0d9a6011684fc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java index 509964ceb13064..acf3458ef5f023 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java index 0e2df5918c15d8..7eaa06386d5b71 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java index f71c2965019900..a034694b4bd9d7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java index aaba2fb7261121..ecab38a6d16e9d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java index 7dc9c4feb112f7..bf3da944d4773e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.java index 5e01b47a1b26b6..5a3810d035b3a9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VelocityHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VelocityHelper.java index 612daa862b48b6..5972b25632a189 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VelocityHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VelocityHelper.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.scroll; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlider.java b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlider.java index 666d9d14664f70..644be5c0bfc6cc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlider.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.slider; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java index f45dc71f301794..dabb326a530407 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.slider; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java index e1f33cb01d86af..3c5547606dd8a6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.slider; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java index 1dceb63ee4c685..37553abaf22c2b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.slider; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java index 9f8ede6537c768..3ffa43dfde936e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.swiperefresh; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.java index 0745d2adbecee7..c03b4a11dc3858 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.swiperefresh; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java index 99b62b4a96b67e..4988129234edd5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.swiperefresh; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java index 13b4653049d4c4..3c9dc82b848a5e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.switchview; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java index 0b60076448979a..75dfe794499e32 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.switchview; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java index 1f98b13aa6e4c6..1bec8c42841ce9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ // switchview because switch is a keyword diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java index abba786b1bd44d..ed72dfa9b13d5e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLineHeightSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java index a4a1db4847cc70..127e3ab82d4d4f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.java index 51edb5a32c8778..92bfe2511aa566 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java index 5b23adab70d041..0be8fa6265512e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java index 1e63a209492369..001cba18810f2b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java @@ -1,9 +1,8 @@ /** - * 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. + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.java index 35bdf2a3c32600..ff994f98ce33e6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java index 6cf0200c746265..6bc7cc93d0f4f3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java @@ -1,9 +1,8 @@ /** - * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. + * Copyright (c) 2015-present, Facebook, Inc. * - *

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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTagSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTagSpan.java index 9bdc7c03f61941..772adc7a9c0855 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTagSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTagSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java index 4782b70d73e913..71ba5eef46095f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java index 3f4b2b9363f6d3..7f63093b3778bf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java index 6bd12cc697945d..35e1824894dd52 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java index 9f67aec6180dee..964f92ed6a37dc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java index 41ca82f4cd4992..226a5d4e0f4686 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java index 2ade0ece3fd0cf..8b6578f38b9f9c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.java index 64753b8a7524c1..2df5718b5ad274 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ShadowStyleSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ShadowStyleSpan.java index 9e030f838ca98a..2b2dd1fa94b4c2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ShadowStyleSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ShadowStyleSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextInlineImageSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextInlineImageSpan.java index c987260fd0f380..db620cb6157cb6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextInlineImageSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextInlineImageSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java index d662c79c9382f0..e069c8f5cab4cc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text.frescosupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageSpan.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageSpan.java index 2293bc67472c52..da53a968703fa8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageSpan.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageSpan.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text.frescosupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java index bf5ac353f3697b..ca1ee0baba1350 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text.frescosupport; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ContentSizeWatcher.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ContentSizeWatcher.java index fab6bbc1e34d1a..e02a8c9e0969b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ContentSizeWatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ContentSizeWatcher.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactContentSizeChangedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactContentSizeChangedEvent.java index 2ad1a1c3a37315..e9cf4fffe7acae 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactContentSizeChangedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactContentSizeChangedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index e1796270a09bf8..0dde905faed0ee 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java index 5a06db595e2027..f0e12e61f340e5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextChangedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextChangedEvent.java index 7b9f2829b12ae9..7ecb6ef86d50a4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextChangedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextChangedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputBlurEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputBlurEvent.java index a51d01677e8107..bb15cc6ed47fa3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputBlurEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputBlurEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEndEditingEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEndEditingEvent.java index 9c6975cf7a9869..812bea17461d6d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEndEditingEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEndEditingEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java index caab8c136c0eb4..2df3a8380a91db 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputFocusEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputFocusEvent.java index 3ca67c3d944008..883069b0e97e6d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputFocusEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputFocusEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputKeyPressEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputKeyPressEvent.java index 7771a1d0e1d83c..f3530d0e3df53e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputKeyPressEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputKeyPressEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java index f12cf8832c531f..3940e4f7c62043 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index b4904a9e3b172e..bf27f485dca392 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSelectionEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSelectionEvent.java index c9e5a4153715ef..f34e342a518fd4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSelectionEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSelectionEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java index 3fac6104ec0422..cdc1d1196fb4f5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSubmitEditingEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSubmitEditingEvent.java index 32b9755a0129d3..e0819785034b60 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSubmitEditingEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputSubmitEditingEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ScrollWatcher.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ScrollWatcher.java index ec2ac41c56e074..079d8555428d09 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ScrollWatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ScrollWatcher.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/SelectionWatcher.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/SelectionWatcher.java index f569067ab91687..0ac6d0e5cbfcdb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/SelectionWatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/SelectionWatcher.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/DrawableWithIntrinsicSize.java b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/DrawableWithIntrinsicSize.java index 8b92242914c90b..7d8a5f5dadcf88 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/DrawableWithIntrinsicSize.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/DrawableWithIntrinsicSize.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.toolbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbar.java b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbar.java index 57d8c6d0d0fc5b..e0526dc159f898 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbar.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbar.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.toolbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java index 6521544d53321a..be9377047a90c8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.toolbar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/events/ToolbarClickEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/events/ToolbarClickEvent.java index ecbf31dac3b27a..6b88f2dee676a0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/events/ToolbarClickEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/events/ToolbarClickEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.toolbar.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java index a8efbd777d0d40..1e57cc8e793ad1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java index a4dda0d9d3d89a..2675c10d2790a8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java index 4990dd4236a893..9e374b4c502ecb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java index 4ab4e9119cc222..3641d120dab333 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java index 0ca79f814e07fe..0cd8f4ccf58b9c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollEvent.java index 6eeac56d747ba1..2d4dc97c884fa0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.viewpager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollStateChangedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollStateChangedEvent.java index d3a5a7c4a10302..49ba9f322d8f8c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollStateChangedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollStateChangedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.viewpager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageSelectedEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageSelectedEvent.java index 6145c08230bcc2..773c31bedbeea8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageSelectedEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageSelectedEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.viewpager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java index 7d99e272a40153..77e93269bdcf3f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.viewpager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPagerManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPagerManager.java index f211b7b04bfe6d..65d676ac91591e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPagerManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPagerManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.viewpager; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java index 05b6740ad66b0b..3097beea5aadd6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/WebViewConfig.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/WebViewConfig.java index 7b2f1241efadbd..9e6d594ccd30a4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/WebViewConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/WebViewConfig.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingErrorEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingErrorEvent.java index 795b29f69a4533..02336a418eb74c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingErrorEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingErrorEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingFinishEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingFinishEvent.java index e858fbc176dff9..088a512606757d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingFinishEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingFinishEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingStartEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingStartEvent.java index 171cf6e6515712..154415d5eaa690 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingStartEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopLoadingStartEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview.events; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopMessageEvent.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopMessageEvent.java index db5a4200d7fd6e..75c26a9346d922 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopMessageEvent.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/events/TopMessageEvent.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.webview.events; diff --git a/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java b/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java index bea7a86825d7aa..c3576f0b49c20a 100644 --- a/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java +++ b/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.systrace; diff --git a/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java b/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java index 3a255eb940047b..03dec5938b9318 100644 --- a/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java +++ b/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.systrace; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java index deb45f1d8d6cf5..bea5aebda8ea88 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaBaselineFunction.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaBaselineFunction.java index c0984012347b95..9ec41e7eae440a 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaBaselineFunction.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaBaselineFunction.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java index 5e82fe22cd7806..3741583b96a2bb 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConstants.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConstants.java index 43f78139c45420..e11c1044daf8f5 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaConstants.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaConstants.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java index b6cb1f84759973..b0d89226d28665 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java index 29789fcb08b173..dd6444e12ea792 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java index b7d416ec287f5e..e6e52aadef9acb 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java index 53677cff22bb7a..053490dabfb014 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java index 02dad1ed6bc9dd..a8a4be1432a514 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java index 19bdd20420d0f3..cf192d6c07ac31 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java index 283e0b57399897..9e15dc4a95286d 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java index d16d98f4be4d54..458e1b950ebb88 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogger.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogger.java index b27597bc531c73..66f62c89d7172a 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogger.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogger.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureFunction.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureFunction.java index cf32f1fadee940..2d2b304d3f967d 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureFunction.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureFunction.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java index 42633fa29a6bc0..9719377630fa85 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureOutput.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureOutput.java index b127c132e62951..1d2141d12a05ac 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureOutput.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureOutput.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java index 1a280dd8d100d5..1ba81249c6f950 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java index 8c27d16bfe83ad..f469546495f855 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeClonedFunction.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java index 1b565ea1901bfe..fb767b0587eee8 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java index 510f0af43f370f..9563d3036410ee 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java index bbaeba38f249b7..be42a999231a93 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java index 58e2dc95e04783..5a804adf4552c4 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java index 8a08b0e5c39b6a..8eb2b31680a534 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java index ae9bd05fc9b860..a99d564189058b 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java index a19d3de3baff44..1eaa9f7ad6f220 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java @@ -1,10 +1,8 @@ /* * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.yoga; diff --git a/ReactAndroid/src/main/jni/first-party/fb/assert.cpp b/ReactAndroid/src/main/jni/first-party/fb/assert.cpp index db9a43159978bc..d39c29e45cc176 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/assert.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/assert.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ALog.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ALog.h index 0ed1c5fd6ab8f8..5f231cb7c8f20f 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ALog.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ALog.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** @file ALog.h diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/Countable.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/Countable.h index 1e402a3fcb2345..1fafba36ae85e9 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/Countable.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/Countable.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/Environment.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/Environment.h index 34864fc328f898..319e96ecb08628 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/Environment.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/Environment.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ProgramLocation.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ProgramLocation.h index 36f7737f643684..92b45406f3c471 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ProgramLocation.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ProgramLocation.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/RefPtr.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/RefPtr.h index d21fe697ea5adc..ee19960fa3547d 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/RefPtr.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/RefPtr.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/StaticInitialized.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/StaticInitialized.h index 6d943972a61f94..c5ecc2fedce515 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/StaticInitialized.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/StaticInitialized.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ThreadLocal.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ThreadLocal.h index d86a2f0deac66d..1b868c44fe61dc 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/ThreadLocal.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/ThreadLocal.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/assert.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/assert.h index 1ff0740ace2e34..ea0c3f65edb258 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/assert.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/assert.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #ifndef FBASSERT_H diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni.h index 66944c1caae8f3..e67aa1641313bb 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Boxed.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Boxed.h index c816924c5fceb8..595bfacfe6d108 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Boxed.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Boxed.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ByteBuffer.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ByteBuffer.h index 26ae3589aa676d..21d17a27ad8e33 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ByteBuffer.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ByteBuffer.h @@ -1,10 +1,8 @@ /* * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Common.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Common.h index 9da51c406e989f..a7775db6d2efb7 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Common.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Common.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** @file Common.h diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Context.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Context.h index 8630aa6bf49d80..726a25333f0ced 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Context.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Context.h @@ -1,10 +1,8 @@ /* * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses-inl.h index 9149df24e8d140..147f885684af3d 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses.h index 76eecb87b1c176..abfe45ce0d0514 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/CoreClasses.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Exceptions.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Exceptions.h index b1089139d50900..689b9be3463ac0 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Exceptions.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Exceptions.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/File.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/File.h index 29fc9850a95ce2..74c752a0785ec7 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/File.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/File.h @@ -1,10 +1,8 @@ /* * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Hybrid.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Hybrid.h index e2cac448fd7aa4..7ca5016a80dc67 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Hybrid.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Hybrid.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator-inl.h index 206d2b4b17a577..c056e16af15695 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator.h index aa3652666e7da2..0da2c36237d0bb 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Iterator.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/JThread.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/JThread.h index 60b3cac20ab56b..1bb61199fbf0a9 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/JThread.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/JThread.h @@ -1,10 +1,8 @@ /* * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-forward.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-forward.h index ff08aff4607520..60dfee44d34ff2 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-forward.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-forward.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-inl.h index 05ecd237e89e9f..ad44470a86fb06 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta.h index 4aefb0ca1825ed..e9717bf7fd8bb3 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Meta.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** @file meta.h diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/NativeRunnable.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/NativeRunnable.h index 68da6a25fb4c7d..0502e36b5a1139 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/NativeRunnable.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/NativeRunnable.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators-inl.h index cd1be640d0d294..b78f66040230dd 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators.h index 024ba797ff2905..a971263ad0d9c2 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/ReferenceAllocators.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-forward.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-forward.h index 8dabf67cb62e60..58ce511d50e56e 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-forward.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-forward.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-inl.h index 74a01e1843e8f0..fc6c689ea40b77 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References.h index 796b8029677161..39cc71a2498c6d 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/References.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration-inl.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration-inl.h index 33da549c337cb7..ce0636e014747b 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration-inl.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration-inl.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration.h index ecead9fff87903..cae1ab48b82376 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/Registration.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/TypeTraits.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/TypeTraits.h index 26472669dc7184..36c8bec15dae27 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/TypeTraits.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/fbjni/TypeTraits.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/noncopyable.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/noncopyable.h index 7212cc4d0896a7..5dbc03126ad1c9 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/noncopyable.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/noncopyable.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/nonmovable.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/nonmovable.h index 37f006a498d1d2..41152f5d171ede 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/nonmovable.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/nonmovable.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/fb/visibility.h b/ReactAndroid/src/main/jni/first-party/fb/include/fb/visibility.h index 7011a06bc6daa1..6c14b50c159b7f 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/fb/visibility.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/fb/visibility.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/Countable.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/Countable.h index 24f27c692a2c10..ae59441babdb1a 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/Countable.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/Countable.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/GlobalReference.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/GlobalReference.h index f0faf5fb884169..20c275e2de2ca6 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/GlobalReference.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/GlobalReference.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/JniTerminateHandler.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/JniTerminateHandler.h index 843f988d2c0268..509405b31a8b22 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/JniTerminateHandler.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/JniTerminateHandler.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalReference.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalReference.h index 22a558dc76add9..531f26ef8efc73 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalReference.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalReference.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalString.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalString.h index 5ed89a1b1aa899..9d07ef6441cff8 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalString.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/LocalString.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/Registration.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/Registration.h index 243a947889d710..8b91cba35e2061 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/Registration.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/Registration.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/WeakReference.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/WeakReference.h index d8d59f9b7e4506..898f91e9eb804c 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/WeakReference.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/WeakReference.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/include/jni/jni_helpers.h b/ReactAndroid/src/main/jni/first-party/fb/include/jni/jni_helpers.h index 808593ab3499a6..93912f4a0a59a0 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/include/jni/jni_helpers.h +++ b/ReactAndroid/src/main/jni/first-party/fb/include/jni/jni_helpers.h @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/ByteBuffer.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/ByteBuffer.cpp index 2e839ecf432a2c..5a5317f9f2b15c 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/ByteBuffer.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/ByteBuffer.cpp @@ -1,10 +1,8 @@ /* * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/Countable.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/Countable.cpp index 0d7c388f53f6a6..ee958bf57157ee 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/Countable.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/Countable.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/Environment.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/Environment.cpp index 48060107e2bc6c..eae5c73ebc8be8 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/Environment.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/Environment.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/Exceptions.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/Exceptions.cpp index 3dca10b76a7541..783f468c4de3f9 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/Exceptions.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/Exceptions.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/Hybrid.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/Hybrid.cpp index 9d7cdcbf16f6e6..dfcf858fd16da5 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/Hybrid.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/Hybrid.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "fb/fbjni.h" diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/LocalString.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/LocalString.cpp index 7e60d2642300c4..7679d09404b825 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/LocalString.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/LocalString.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/OnLoad.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/OnLoad.cpp index 0334729c8e20b6..228621cbd90f43 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/OnLoad.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/OnLoad.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/References.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/References.cpp index 0ef4b0d6d0525e..37160cdd1bb1e4 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/References.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/References.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/WeakReference.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/WeakReference.cpp index 1fd4e50ac2c06b..dfaa02f6c76fd2 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/WeakReference.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/WeakReference.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/android/ReferenceChecking.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/android/ReferenceChecking.cpp index 9893db41d3a97b..7d3fc5716d12bd 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/android/ReferenceChecking.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/android/ReferenceChecking.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #ifndef __ANDROID__ diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp index e595ea90f6495c..b455ad845199a3 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppException.java b/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppException.java index a0c845dd62878a..6308d5dc269310 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppException.java +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppException.java @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppSystemErrorException.java b/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppSystemErrorException.java index 13090a18ce30a3..942a617148a629 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppSystemErrorException.java +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/java/CppSystemErrorException.java @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/java/UnknownCppException.java b/ReactAndroid/src/main/jni/first-party/fb/jni/java/UnknownCppException.java index 45e9bfe0cee0dd..902159d9fcdf99 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/java/UnknownCppException.java +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/java/UnknownCppException.java @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.jni; diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/jni_helpers.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/jni_helpers.cpp index 8bf7c3542770a4..b6ad635450cdf1 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/jni/jni_helpers.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/jni/jni_helpers.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/log.cpp b/ReactAndroid/src/main/jni/first-party/fb/log.cpp index b58b7ac9452a03..b6baa2dad22b67 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/log.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/log.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/fb/onload.cpp b/ReactAndroid/src/main/jni/first-party/fb/onload.cpp index 2caebc37a4eb38..0594526d38167a 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/onload.cpp +++ b/ReactAndroid/src/main/jni/first-party/fb/onload.cpp @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK b/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK index 254602fbc56c70..79f4fce30259ce 100644 --- a/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK +++ b/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK @@ -1,11 +1,9 @@ load("//ReactNative:DEFS.bzl", "cxx_library") # Copyright (c) 2014-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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. cxx_library( name = "jni-hack", diff --git a/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h b/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h index d768a112771533..166908733ef313 100644 --- a/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h +++ b/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp index b8cfe0a620cc74..eb9d8120dc3dc4 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java b/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java index 80ebb0cee82897..baf9b9913b8bc8 100644 --- a/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java +++ b/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.common.logging; diff --git a/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java b/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java index d6eb5332797420..f12b8b178c168e 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java b/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java index 3bcdab6acdd5cb..c293858b4b6ade 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react; diff --git a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java index e1d1958613e6ee..3c31cb1cf00c12 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java index 6af5b690529935..637bd812b35c83 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java index df8e0002834400..6b0a18177a1740 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java index 1ce3971258051c..d2d95b197ae412 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/JsonWriterTest.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/JsonWriterTest.java index 2e6466a88ba848..353d743587d333 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/JsonWriterTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/JsonWriterTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/ModuleSpecTest.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/ModuleSpecTest.java index 772e506d68f765..4f01b2070ae051 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/ModuleSpecTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/ModuleSpecTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java b/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java index 1886a481b3dc1a..e35d7ea8f583a3 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +++ b/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; diff --git a/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java b/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java index ec8637c068e5d0..4763eabbed21a4 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java b/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java index e304694319b899..04a947a346403e 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java b/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java index 3ece540947fcef..b348bd14995dc3 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.devsupport; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java index 4339dcd5e4b3db..67283dc0e6e8b7 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.blob; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java index 5c618858d0bc7e..1ed67fb9434acb 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.camera; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java index adfa1e2eac1a21..a0d93c4db3bd3e 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.clipboard; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java index 0d5ff98fda22ec..847c71954a75bb 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.dialog; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java index 8ad39cd16e2070..29e3e6a27d9757 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java index a43a32c8752f64..09b2365513ec54 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.network; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java index f9d1b31e7037db..86f99cd9dc1928 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.share; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java index 291e1604819de3..472f9678f79008 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.storage; diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java index b98071d331e9f2..91c6484846f449 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.timing; diff --git a/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java b/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java index 9a2de1dbea1846..6d14bef454fcb3 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.packagerconnection; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java index f516e3b40586e7..3d78d5cf43140a 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java index 8df49c6f6e69ab..f989f62dd5c1ed 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java index 33e0b8892e8fce..d06f810e10b931 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java index 2c849051ea2f21..a4ee1a39056db8 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java index 04f57cda05e2ff..799018bfa4600d 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java index 8b9717dd7ebe9c..0120f7a0865106 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java index b97941d93f3e26..0b3ac61dfe3317 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java index 687440a1dc3ce0..40a8c68b46697f 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java index 70bfac8f3f77e4..6a90e84b628cd1 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java index 55ace7944c72fa..5bea9ba4d1fb33 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java index 0e051ab79fbd32..93dc7845007e09 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.image; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java index 7cb756121cd9ee..628b43c7c3f611 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.slider; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java index 7e5765d06c4638..2c14111e4acd8f 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.text; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java index cd2bc0e7c9607b..89e9b0a5bdfe43 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java index ae5a7d90f9c35c..988482eeabdeeb 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.textinput; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java index 9b79b2594f0acb..335458952a13c1 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.views.view; diff --git a/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java b/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java index 20f4aa035f43f2..427dd77b534134 100644 --- a/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java +++ b/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java @@ -1,10 +1,8 @@ /* * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package org.mockito.configuration; diff --git a/ReactCommon/jschelpers/JSCWrapper.cpp b/ReactCommon/jschelpers/JSCWrapper.cpp index 422fb7f8ea4e06..bc432eb05f624a 100644 --- a/ReactCommon/jschelpers/JSCWrapper.cpp +++ b/ReactCommon/jschelpers/JSCWrapper.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "JSCWrapper.h" diff --git a/ReactCommon/jschelpers/JSCWrapper.h b/ReactCommon/jschelpers/JSCWrapper.h index c722199c2dfd1a..19cc720f96b317 100644 --- a/ReactCommon/jschelpers/JSCWrapper.h +++ b/ReactCommon/jschelpers/JSCWrapper.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/jschelpers/JavaScriptCore.h b/ReactCommon/jschelpers/JavaScriptCore.h index 9cae11681117cc..056da7167fb875 100644 --- a/ReactCommon/jschelpers/JavaScriptCore.h +++ b/ReactCommon/jschelpers/JavaScriptCore.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/jschelpers/systemJSCWrapper.cpp b/ReactCommon/jschelpers/systemJSCWrapper.cpp index e050468b43f805..b2720923301309 100644 --- a/ReactCommon/jschelpers/systemJSCWrapper.cpp +++ b/ReactCommon/jschelpers/systemJSCWrapper.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include diff --git a/ReactCommon/jsinspector/InspectorInterfaces.cpp b/ReactCommon/jsinspector/InspectorInterfaces.cpp index bb20b8ad6b9472..326495d031162a 100644 --- a/ReactCommon/jsinspector/InspectorInterfaces.cpp +++ b/ReactCommon/jsinspector/InspectorInterfaces.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "InspectorInterfaces.h" diff --git a/ReactCommon/jsinspector/InspectorInterfaces.h b/ReactCommon/jsinspector/InspectorInterfaces.h index d62eab40117a36..c37c2d574d2ff8 100644 --- a/ReactCommon/jsinspector/InspectorInterfaces.h +++ b/ReactCommon/jsinspector/InspectorInterfaces.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/Utils.cpp b/ReactCommon/yoga/yoga/Utils.cpp index d7f548e61685ea..110c7f0d7022cb 100644 --- a/ReactCommon/yoga/yoga/Utils.cpp +++ b/ReactCommon/yoga/yoga/Utils.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "Utils.h" diff --git a/ReactCommon/yoga/yoga/Utils.h b/ReactCommon/yoga/yoga/Utils.h index 431fe315facb53..db52acd672c0a2 100644 --- a/ReactCommon/yoga/yoga/Utils.h +++ b/ReactCommon/yoga/yoga/Utils.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/YGEnums.cpp b/ReactCommon/yoga/yoga/YGEnums.cpp index af3c27cf387471..7f16628ce14910 100644 --- a/ReactCommon/yoga/yoga/YGEnums.cpp +++ b/ReactCommon/yoga/yoga/YGEnums.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "YGEnums.h" diff --git a/ReactCommon/yoga/yoga/YGEnums.h b/ReactCommon/yoga/yoga/YGEnums.h index 89567b162ab6f2..0976d78d947923 100644 --- a/ReactCommon/yoga/yoga/YGEnums.h +++ b/ReactCommon/yoga/yoga/YGEnums.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/YGMacros.h b/ReactCommon/yoga/yoga/YGMacros.h index 2b9c5193ec8abb..15ed81d3820a2d 100644 --- a/ReactCommon/yoga/yoga/YGMacros.h +++ b/ReactCommon/yoga/yoga/YGMacros.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/YGNode.cpp b/ReactCommon/yoga/yoga/YGNode.cpp index d9a8448094f08a..56ce1b4928c9d1 100644 --- a/ReactCommon/yoga/yoga/YGNode.cpp +++ b/ReactCommon/yoga/yoga/YGNode.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "YGNode.h" diff --git a/ReactCommon/yoga/yoga/YGNode.h b/ReactCommon/yoga/yoga/YGNode.h index 512b3baa9bee25..b3e31256961bf3 100644 --- a/ReactCommon/yoga/yoga/YGNode.h +++ b/ReactCommon/yoga/yoga/YGNode.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/YGNodePrint.cpp b/ReactCommon/yoga/yoga/YGNodePrint.cpp index 6e5047145aba45..395fe1819ad067 100644 --- a/ReactCommon/yoga/yoga/YGNodePrint.cpp +++ b/ReactCommon/yoga/yoga/YGNodePrint.cpp @@ -1,10 +1,8 @@ /* * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "YGNodePrint.h" diff --git a/ReactCommon/yoga/yoga/YGNodePrint.h b/ReactCommon/yoga/yoga/YGNodePrint.h index 18942b7bfd19a6..16259fcff7cf8e 100644 --- a/ReactCommon/yoga/yoga/YGNodePrint.h +++ b/ReactCommon/yoga/yoga/YGNodePrint.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once #include diff --git a/ReactCommon/yoga/yoga/Yoga-internal.h b/ReactCommon/yoga/yoga/Yoga-internal.h index 923e5a897744df..6432e6cfcc08e0 100644 --- a/ReactCommon/yoga/yoga/Yoga-internal.h +++ b/ReactCommon/yoga/yoga/Yoga-internal.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 8f1f5e04e84ecd..ff57e99f36a215 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #include "Yoga.h" diff --git a/ReactCommon/yoga/yoga/Yoga.h b/ReactCommon/yoga/yoga/Yoga.h index bca51da28d373a..689f9f3e4e717b 100644 --- a/ReactCommon/yoga/yoga/Yoga.h +++ b/ReactCommon/yoga/yoga/Yoga.h @@ -1,10 +1,8 @@ /** * Copyright (c) 2014-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #pragma once diff --git a/babel-preset/configs/hmr.js b/babel-preset/configs/hmr.js index 0fff0fc9a68fd4..91cb9a356c654b 100644 --- a/babel-preset/configs/hmr.js +++ b/babel-preset/configs/hmr.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/babel-preset/configs/main.js b/babel-preset/configs/main.js index 89ebef095b0f21..dca6ddebd8e216 100644 --- a/babel-preset/configs/main.js +++ b/babel-preset/configs/main.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/babel-preset/index.js b/babel-preset/index.js index a1e2956ed5631d..aaff5ba9f15c05 100644 --- a/babel-preset/index.js +++ b/babel-preset/index.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/babel-preset/lib/resolvePlugins.js b/babel-preset/lib/resolvePlugins.js index 438e5c74d4728f..05476f1a4d33ce 100644 --- a/babel-preset/lib/resolvePlugins.js +++ b/babel-preset/lib/resolvePlugins.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/babel-preset/plugins.js b/babel-preset/plugins.js index d629bd92cbbb1a..d572a11b042e54 100644 --- a/babel-preset/plugins.js +++ b/babel-preset/plugins.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/bots/code-analysis-bot.js b/bots/code-analysis-bot.js index 0c3a8bdda21585..4ab9af0779618d 100644 --- a/bots/code-analysis-bot.js +++ b/bots/code-analysis-bot.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/bots/dangerfile.js b/bots/dangerfile.js index 327e75ce54baca..52079c27df5e02 100644 --- a/bots/dangerfile.js +++ b/bots/dangerfile.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/cli.js b/cli.js index 88837275f14e00..272a78dfcdcf25 100644 --- a/cli.js +++ b/cli.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/flow-github/metro.js b/flow-github/metro.js index 12f50d287f61ef..ec84de96ddb216 100644 --- a/flow-github/metro.js +++ b/flow-github/metro.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/flow/Map.js b/flow/Map.js index da397dfd2dda35..f2021affd67a63 100644 --- a/flow/Map.js +++ b/flow/Map.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/flow/Position.js b/flow/Position.js index d72ff6aa02fca3..58e3330b0b926a 100644 --- a/flow/Position.js +++ b/flow/Position.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @nolint diff --git a/flow/Promise.js b/flow/Promise.js index 4f6fb3971eebcb..d69944eb4b47e2 100644 --- a/flow/Promise.js +++ b/flow/Promise.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/flow/Set.js b/flow/Set.js index 6239a530439c86..54b997a68a6f44 100644 --- a/flow/Set.js +++ b/flow/Set.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @nolint diff --git a/flow/console.js b/flow/console.js index bef6d036b20e4e..4e57ba953715c3 100644 --- a/flow/console.js +++ b/flow/console.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/flow/create-react-class.js b/flow/create-react-class.js index 238ff44cf01df7..571653b18de83b 100644 --- a/flow/create-react-class.js +++ b/flow/create-react-class.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @nolint diff --git a/flow/fbjs.js b/flow/fbjs.js index 5698508cc82460..f7b41b5a6a3ad8 100644 --- a/flow/fbjs.js +++ b/flow/fbjs.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ declare module 'fbjs/lib/invariant' { diff --git a/flow/prop-types.js b/flow/prop-types.js index 13f7a65d53df77..c79dab62ba9345 100644 --- a/flow/prop-types.js +++ b/flow/prop-types.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @nolint diff --git a/jest/assetFileTransformer.js b/jest/assetFileTransformer.js index 81bdee21e83a8c..e3a318aed3c187 100644 --- a/jest/assetFileTransformer.js +++ b/jest/assetFileTransformer.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2017-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/jest/mockComponent.js b/jest/mockComponent.js index bb63a3e3ea635b..84c162d867f4f4 100644 --- a/jest/mockComponent.js +++ b/jest/mockComponent.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/jest/preprocessor.js b/jest/preprocessor.js index a5b96062e0eedc..6bc4dc9c531d1e 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/jest/setup.js b/jest/setup.js index 2fa1075b6451df..6285550434e491 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/lib/InitializeJavaScriptAppEngine.js b/lib/InitializeJavaScriptAppEngine.js index c560dccac1b5cf..6709e0a27109d5 100644 --- a/lib/InitializeJavaScriptAppEngine.js +++ b/lib/InitializeJavaScriptAppEngine.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/RCTEventEmitter.js b/lib/RCTEventEmitter.js index b48677174a868c..8968fb8641df78 100644 --- a/lib/RCTEventEmitter.js +++ b/lib/RCTEventEmitter.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/TextInputState.js b/lib/TextInputState.js index 74f58bb27e36d3..37738ceb670a91 100644 --- a/lib/TextInputState.js +++ b/lib/TextInputState.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/UIManager.js b/lib/UIManager.js index bf87c346ca8ac0..6bd741903fb3c9 100644 --- a/lib/UIManager.js +++ b/lib/UIManager.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/UIManagerStatTracker.js b/lib/UIManagerStatTracker.js index 6c66a042033b10..9300a7c6f7eaa9 100644 --- a/lib/UIManagerStatTracker.js +++ b/lib/UIManagerStatTracker.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/View.js b/lib/View.js index 5174bdea4fe9c5..6e3f20a858556c 100644 --- a/lib/View.js +++ b/lib/View.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/deepDiffer.js b/lib/deepDiffer.js index e7584bc64cb850..ad3d3cb05329ba 100644 --- a/lib/deepDiffer.js +++ b/lib/deepDiffer.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/deepFreezeAndThrowOnMutationInDev.js b/lib/deepFreezeAndThrowOnMutationInDev.js index acee5bff5b7e5b..92d9f8f40e0b47 100644 --- a/lib/deepFreezeAndThrowOnMutationInDev.js +++ b/lib/deepFreezeAndThrowOnMutationInDev.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/lib/flattenStyle.js b/lib/flattenStyle.js index e4dfd467007bdc..3c5651fdc60250 100644 --- a/lib/flattenStyle.js +++ b/lib/flattenStyle.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/__mocks__/beeper.js b/local-cli/__mocks__/beeper.js index 79410a08cbd449..2bbac3717fbcad 100644 --- a/local-cli/__mocks__/beeper.js +++ b/local-cli/__mocks__/beeper.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/__mocks__/fs.js b/local-cli/__mocks__/fs.js index a9bd37c8df557b..bd4d5c10001c8e 100644 --- a/local-cli/__mocks__/fs.js +++ b/local-cli/__mocks__/fs.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/local-cli/__tests__/fs-mock-test.js b/local-cli/__tests__/fs-mock-test.js index 39f6e9e1248f49..46a3a9f96c9406 100644 --- a/local-cli/__tests__/fs-mock-test.js +++ b/local-cli/__tests__/fs-mock-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation * @flow diff --git a/local-cli/bundle/__mocks__/sign.js b/local-cli/bundle/__mocks__/sign.js index 80ff1860e3f736..a7f2bdb6fc8aad 100644 --- a/local-cli/bundle/__mocks__/sign.js +++ b/local-cli/bundle/__mocks__/sign.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/bundle/__tests__/filterPlatformAssetScales-test.js b/local-cli/bundle/__tests__/filterPlatformAssetScales-test.js index f9e3091ac3239c..d39058dc6ba073 100644 --- a/local-cli/bundle/__tests__/filterPlatformAssetScales-test.js +++ b/local-cli/bundle/__tests__/filterPlatformAssetScales-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/bundle/__tests__/getAssetDestPathAndroid-test.js b/local-cli/bundle/__tests__/getAssetDestPathAndroid-test.js index 35ce285e3328d4..bd8e78d18d0645 100644 --- a/local-cli/bundle/__tests__/getAssetDestPathAndroid-test.js +++ b/local-cli/bundle/__tests__/getAssetDestPathAndroid-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/bundle/__tests__/getAssetDestPathIOS-test.js b/local-cli/bundle/__tests__/getAssetDestPathIOS-test.js index 4de3b3051b5830..52e54530ba7fc8 100644 --- a/local-cli/bundle/__tests__/getAssetDestPathIOS-test.js +++ b/local-cli/bundle/__tests__/getAssetDestPathIOS-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/bundle/assetPathUtils.js b/local-cli/bundle/assetPathUtils.js index cc67d949ca69ce..891908eb480f31 100644 --- a/local-cli/bundle/assetPathUtils.js +++ b/local-cli/bundle/assetPathUtils.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 6265de5c21c930..0d1ea067998002 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/bundle/bundle.js b/local-cli/bundle/bundle.js index 3a177bd960de18..7bc7099b58fbb2 100644 --- a/local-cli/bundle/bundle.js +++ b/local-cli/bundle/bundle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/bundle/bundleCommandLineArgs.js b/local-cli/bundle/bundleCommandLineArgs.js index 8fbd2775af7277..cc63e32505a25d 100644 --- a/local-cli/bundle/bundleCommandLineArgs.js +++ b/local-cli/bundle/bundleCommandLineArgs.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/bundle/filterPlatformAssetScales.js b/local-cli/bundle/filterPlatformAssetScales.js index d9e8daa2e02ed8..0843b75dce6b76 100644 --- a/local-cli/bundle/filterPlatformAssetScales.js +++ b/local-cli/bundle/filterPlatformAssetScales.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/local-cli/bundle/getAssetDestPathAndroid.js b/local-cli/bundle/getAssetDestPathAndroid.js index c267aed8ba446b..bdd3c49e32e415 100644 --- a/local-cli/bundle/getAssetDestPathAndroid.js +++ b/local-cli/bundle/getAssetDestPathAndroid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/bundle/getAssetDestPathIOS.js b/local-cli/bundle/getAssetDestPathIOS.js index 4e6290748b2a61..61b935a1703aee 100644 --- a/local-cli/bundle/getAssetDestPathIOS.js +++ b/local-cli/bundle/getAssetDestPathIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/bundle/saveAssets.js b/local-cli/bundle/saveAssets.js index 32b18c5de9e30b..94fe559a2b49e2 100644 --- a/local-cli/bundle/saveAssets.js +++ b/local-cli/bundle/saveAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/bundle/types.flow.js b/local-cli/bundle/types.flow.js index ef6f5671236bab..5c164d1ad2cf7c 100644 --- a/local-cli/bundle/types.flow.js +++ b/local-cli/bundle/types.flow.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/bundle/unbundle.js b/local-cli/bundle/unbundle.js index 1081edc29ff293..bc7785fd0ee80b 100644 --- a/local-cli/bundle/unbundle.js +++ b/local-cli/bundle/unbundle.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/cli.js b/local-cli/cli.js index 14cf1a8d8d6bb0..3f31cbad4770be 100644 --- a/local-cli/cli.js +++ b/local-cli/cli.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/cliEntry.js b/local-cli/cliEntry.js index 3062394a866f1b..018dd8459a5f19 100644 --- a/local-cli/cliEntry.js +++ b/local-cli/cliEntry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/commands.js b/local-cli/commands.js index 9f27908e9d6dcf..1e1a2054738429 100644 --- a/local-cli/commands.js +++ b/local-cli/commands.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/core/Constants.js b/local-cli/core/Constants.js index 66d59f8e9d8937..73fddbbb1035aa 100644 --- a/local-cli/core/Constants.js +++ b/local-cli/core/Constants.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2016-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/local-cli/core/__tests__/android/findAndroidAppFolder.spec.js b/local-cli/core/__tests__/android/findAndroidAppFolder.spec.js index ea87ca03e4fbf9..dcbb8002d3c4c9 100644 --- a/local-cli/core/__tests__/android/findAndroidAppFolder.spec.js +++ b/local-cli/core/__tests__/android/findAndroidAppFolder.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/android/findManifest.spec.js b/local-cli/core/__tests__/android/findManifest.spec.js index 8aaeab85b53cdf..73834b61da6780 100644 --- a/local-cli/core/__tests__/android/findManifest.spec.js +++ b/local-cli/core/__tests__/android/findManifest.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/android/findPackageClassName.spec.js b/local-cli/core/__tests__/android/findPackageClassName.spec.js index e441b3afbdb83d..36da8b4df31dad 100644 --- a/local-cli/core/__tests__/android/findPackageClassName.spec.js +++ b/local-cli/core/__tests__/android/findPackageClassName.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/android/getDependencyConfig.spec.js b/local-cli/core/__tests__/android/getDependencyConfig.spec.js index 3ed4efe976391e..31ae35ad4f49ba 100644 --- a/local-cli/core/__tests__/android/getDependencyConfig.spec.js +++ b/local-cli/core/__tests__/android/getDependencyConfig.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/android/getProjectConfig.spec.js b/local-cli/core/__tests__/android/getProjectConfig.spec.js index c680f52d3849ab..02ee04512a4245 100644 --- a/local-cli/core/__tests__/android/getProjectConfig.spec.js +++ b/local-cli/core/__tests__/android/getProjectConfig.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/android/readManifest.spec.js b/local-cli/core/__tests__/android/readManifest.spec.js index 05aefb8b480cb1..8a1dead25f15d7 100644 --- a/local-cli/core/__tests__/android/readManifest.spec.js +++ b/local-cli/core/__tests__/android/readManifest.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/findAssets.spec.js b/local-cli/core/__tests__/findAssets.spec.js index 3cf93eca45f239..768be38029409f 100644 --- a/local-cli/core/__tests__/findAssets.spec.js +++ b/local-cli/core/__tests__/findAssets.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/findPlugins.spec.js b/local-cli/core/__tests__/findPlugins.spec.js index 3cc7488a30eade..aba8e95d5da142 100644 --- a/local-cli/core/__tests__/findPlugins.spec.js +++ b/local-cli/core/__tests__/findPlugins.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/ios/findPodfilePath.spec.js b/local-cli/core/__tests__/ios/findPodfilePath.spec.js index 4f4b8edd2367ff..b3390e9d14a4a5 100644 --- a/local-cli/core/__tests__/ios/findPodfilePath.spec.js +++ b/local-cli/core/__tests__/ios/findPodfilePath.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/core/__tests__/ios/findPodspecName.spec.js b/local-cli/core/__tests__/ios/findPodspecName.spec.js index 2f28fb228622b4..984441d927b1df 100644 --- a/local-cli/core/__tests__/ios/findPodspecName.spec.js +++ b/local-cli/core/__tests__/ios/findPodspecName.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/core/__tests__/ios/findProject.spec.js b/local-cli/core/__tests__/ios/findProject.spec.js index 33cc75ce89649e..78b4be1e3a0147 100644 --- a/local-cli/core/__tests__/ios/findProject.spec.js +++ b/local-cli/core/__tests__/ios/findProject.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/ios/getProjectConfig.spec.js b/local-cli/core/__tests__/ios/getProjectConfig.spec.js index 108a13e1eb7ca3..5d3c72caeef692 100644 --- a/local-cli/core/__tests__/ios/getProjectConfig.spec.js +++ b/local-cli/core/__tests__/ios/getProjectConfig.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/__tests__/makeCommand.spec.js b/local-cli/core/__tests__/makeCommand.spec.js index f269572a9b59cb..95110375cef10b 100644 --- a/local-cli/core/__tests__/makeCommand.spec.js +++ b/local-cli/core/__tests__/makeCommand.spec.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/core/android/findAndroidAppFolder.js b/local-cli/core/android/findAndroidAppFolder.js index 3a76f4d189b123..6eac1dea16c227 100644 --- a/local-cli/core/android/findAndroidAppFolder.js +++ b/local-cli/core/android/findAndroidAppFolder.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/android/findManifest.js b/local-cli/core/android/findManifest.js index bbe71696d02303..481a8a4745259a 100644 --- a/local-cli/core/android/findManifest.js +++ b/local-cli/core/android/findManifest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/android/findPackageClassName.js b/local-cli/core/android/findPackageClassName.js index 8d59aba2689c03..45e2706a4d2959 100644 --- a/local-cli/core/android/findPackageClassName.js +++ b/local-cli/core/android/findPackageClassName.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/android/index.js b/local-cli/core/android/index.js index 68d2a073c52e13..c21ca60d8f7e14 100644 --- a/local-cli/core/android/index.js +++ b/local-cli/core/android/index.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/android/readManifest.js b/local-cli/core/android/readManifest.js index 8a39c7d27a0459..7215c67b18e57b 100644 --- a/local-cli/core/android/readManifest.js +++ b/local-cli/core/android/readManifest.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/findAssets.js b/local-cli/core/findAssets.js index ddfa9beea388c9..1240f25e7ebc0f 100644 --- a/local-cli/core/findAssets.js +++ b/local-cli/core/findAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/findPlugins.js b/local-cli/core/findPlugins.js index 8a3c30a4253418..fbf3f064f703bf 100644 --- a/local-cli/core/findPlugins.js +++ b/local-cli/core/findPlugins.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/index.js b/local-cli/core/index.js index 0d43e87c24122f..e5f2ba33af6b37 100644 --- a/local-cli/core/index.js +++ b/local-cli/core/index.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/core/ios/findProject.js b/local-cli/core/ios/findProject.js index 71170337e50082..05b9e20b9b7ac1 100644 --- a/local-cli/core/ios/findProject.js +++ b/local-cli/core/ios/findProject.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/ios/index.js b/local-cli/core/ios/index.js index 0d69ac9f11129f..bb306f47846bbc 100644 --- a/local-cli/core/ios/index.js +++ b/local-cli/core/ios/index.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/makeCommand.js b/local-cli/core/makeCommand.js index 2eab6caf13922f..a386a0fba376ab 100644 --- a/local-cli/core/makeCommand.js +++ b/local-cli/core/makeCommand.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/core/wrapCommands.js b/local-cli/core/wrapCommands.js index c7a7fe1e51067d..f47cec265406b2 100644 --- a/local-cli/core/wrapCommands.js +++ b/local-cli/core/wrapCommands.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/dependencies/dependencies.js b/local-cli/dependencies/dependencies.js index 3558f576cffb4b..eb69d45af4f5fe 100644 --- a/local-cli/dependencies/dependencies.js +++ b/local-cli/dependencies/dependencies.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/eject/eject.js b/local-cli/eject/eject.js index e49b5a5ecd4caa..569299018d3a32 100644 --- a/local-cli/eject/eject.js +++ b/local-cli/eject/eject.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/generator/copyProjectTemplateAndReplace.js b/local-cli/generator/copyProjectTemplateAndReplace.js index 91a392ee49904b..5840e587e7ef16 100644 --- a/local-cli/generator/copyProjectTemplateAndReplace.js +++ b/local-cli/generator/copyProjectTemplateAndReplace.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/generator/printRunInstructions.js b/local-cli/generator/printRunInstructions.js index d553a73c90d008..cc39a61fd3e677 100644 --- a/local-cli/generator/printRunInstructions.js +++ b/local-cli/generator/printRunInstructions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/generator/templates.js b/local-cli/generator/templates.js index cc7145c2397d26..98e2897a5d0212 100644 --- a/local-cli/generator/templates.js +++ b/local-cli/generator/templates.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/info/info.js b/local-cli/info/info.js index ac423da27ba103..d5e4284fe0b65e 100644 --- a/local-cli/info/info.js +++ b/local-cli/info/info.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/init/init.js b/local-cli/init/init.js index 7ea2f363230259..d0233b1ab810db 100644 --- a/local-cli/init/init.js +++ b/local-cli/init/init.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/install/install.js b/local-cli/install/install.js index b3d55312a9096a..2efc64978d0541 100644 --- a/local-cli/install/install.js +++ b/local-cli/install/install.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/install/uninstall.js b/local-cli/install/uninstall.js index a45d11a06ae8d1..0d6fc5ed755bf9 100644 --- a/local-cli/install/uninstall.js +++ b/local-cli/install/uninstall.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/library/library.js b/local-cli/library/library.js index 9dacc1134eb969..e8246ff7a106fd 100644 --- a/local-cli/library/library.js +++ b/local-cli/library/library.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/__tests__/android/applyPatch.spec.js b/local-cli/link/__tests__/android/applyPatch.spec.js index 000743f1484d76..b1213dbf315faa 100644 --- a/local-cli/link/__tests__/android/applyPatch.spec.js +++ b/local-cli/link/__tests__/android/applyPatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/link/__tests__/android/isInstalled.spec.js b/local-cli/link/__tests__/android/isInstalled.spec.js index f87f0d14bf9cee..01ddc38219f67d 100644 --- a/local-cli/link/__tests__/android/isInstalled.spec.js +++ b/local-cli/link/__tests__/android/isInstalled.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/android/makeBuildPatch.spec.js b/local-cli/link/__tests__/android/makeBuildPatch.spec.js index e731bc4e477d2f..c37ecc8b8c20ea 100644 --- a/local-cli/link/__tests__/android/makeBuildPatch.spec.js +++ b/local-cli/link/__tests__/android/makeBuildPatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/android/makeImportPatch.spec.js b/local-cli/link/__tests__/android/makeImportPatch.spec.js index b41775c8c7d845..4e59f7bee6042f 100644 --- a/local-cli/link/__tests__/android/makeImportPatch.spec.js +++ b/local-cli/link/__tests__/android/makeImportPatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/android/makePackagePatch.spec.js b/local-cli/link/__tests__/android/makePackagePatch.spec.js index 8407fe6ed076ad..72b379d101c470 100644 --- a/local-cli/link/__tests__/android/makePackagePatch.spec.js +++ b/local-cli/link/__tests__/android/makePackagePatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/android/makeSettingsPatch.spec.js b/local-cli/link/__tests__/android/makeSettingsPatch.spec.js index 1ca5681217bfb6..223f0d6c405c14 100644 --- a/local-cli/link/__tests__/android/makeSettingsPatch.spec.js +++ b/local-cli/link/__tests__/android/makeSettingsPatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/android/makeStringsPatch.spec.js b/local-cli/link/__tests__/android/makeStringsPatch.spec.js index 4232ba789f6bbc..faa8f8681f0901 100644 --- a/local-cli/link/__tests__/android/makeStringsPatch.spec.js +++ b/local-cli/link/__tests__/android/makeStringsPatch.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/getDependencyConfig.spec.js b/local-cli/link/__tests__/getDependencyConfig.spec.js index 87cf12755d4a6d..f8abb0192bb338 100644 --- a/local-cli/link/__tests__/getDependencyConfig.spec.js +++ b/local-cli/link/__tests__/getDependencyConfig.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/getProjectDependencies.spec.js b/local-cli/link/__tests__/getProjectDependencies.spec.js index 28ad2a61ac0b89..fc7dd3cd91dd69 100644 --- a/local-cli/link/__tests__/getProjectDependencies.spec.js +++ b/local-cli/link/__tests__/getProjectDependencies.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/link/__tests__/groupFilesByType.spec.js b/local-cli/link/__tests__/groupFilesByType.spec.js index 2154583d5b4211..49d57daf9ef9cf 100644 --- a/local-cli/link/__tests__/groupFilesByType.spec.js +++ b/local-cli/link/__tests__/groupFilesByType.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/addFileToProject.spec.js b/local-cli/link/__tests__/ios/addFileToProject.spec.js index 335e53e37954c0..a82c99db475acb 100644 --- a/local-cli/link/__tests__/ios/addFileToProject.spec.js +++ b/local-cli/link/__tests__/ios/addFileToProject.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js b/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js index 4c7858f4eda302..4d20621e0afd24 100644 --- a/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js +++ b/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/link/__tests__/ios/addSharedLibraries.spec.js b/local-cli/link/__tests__/ios/addSharedLibraries.spec.js index 58bff8c6abc55b..dd628c45ca74f7 100644 --- a/local-cli/link/__tests__/ios/addSharedLibraries.spec.js +++ b/local-cli/link/__tests__/ios/addSharedLibraries.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/createGroup.spec.js b/local-cli/link/__tests__/ios/createGroup.spec.js index 5f1bf4424608a2..a997d4e5b5368a 100644 --- a/local-cli/link/__tests__/ios/createGroup.spec.js +++ b/local-cli/link/__tests__/ios/createGroup.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getBuildProperty.spec.js b/local-cli/link/__tests__/ios/getBuildProperty.spec.js index fbe9fd49b2de42..ed4ab075b0f7a1 100644 --- a/local-cli/link/__tests__/ios/getBuildProperty.spec.js +++ b/local-cli/link/__tests__/ios/getBuildProperty.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getGroup.spec.js b/local-cli/link/__tests__/ios/getGroup.spec.js index 9569a998f08751..cbc241821f8fab 100644 --- a/local-cli/link/__tests__/ios/getGroup.spec.js +++ b/local-cli/link/__tests__/ios/getGroup.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js b/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js index e63de35cb3bf24..49d27084ae925f 100644 --- a/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js +++ b/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js b/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js index 8d2830ed834dc2..19f53bca545d22 100644 --- a/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js +++ b/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getPlist.spec.js b/local-cli/link/__tests__/ios/getPlist.spec.js index df900c19224525..36ae648ce63b82 100644 --- a/local-cli/link/__tests__/ios/getPlist.spec.js +++ b/local-cli/link/__tests__/ios/getPlist.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getPlistPath.spec.js b/local-cli/link/__tests__/ios/getPlistPath.spec.js index 783cbb26c0c486..346da6872e64eb 100644 --- a/local-cli/link/__tests__/ios/getPlistPath.spec.js +++ b/local-cli/link/__tests__/ios/getPlistPath.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getProducts.spec.js b/local-cli/link/__tests__/ios/getProducts.spec.js index 93bc0fcca66d41..f304d106982e77 100644 --- a/local-cli/link/__tests__/ios/getProducts.spec.js +++ b/local-cli/link/__tests__/ios/getProducts.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/getTargets.spec.js b/local-cli/link/__tests__/ios/getTargets.spec.js index 77bdf39bce4ec9..a2917a26ee1a83 100644 --- a/local-cli/link/__tests__/ios/getTargets.spec.js +++ b/local-cli/link/__tests__/ios/getTargets.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/hasLibraryImported.spec.js b/local-cli/link/__tests__/ios/hasLibraryImported.spec.js index 8882ac2f8dd619..4a2b9789240408 100644 --- a/local-cli/link/__tests__/ios/hasLibraryImported.spec.js +++ b/local-cli/link/__tests__/ios/hasLibraryImported.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/isInstalled.spec.js b/local-cli/link/__tests__/ios/isInstalled.spec.js index 45c9a05d2280f4..d55970e8d3aa9e 100644 --- a/local-cli/link/__tests__/ios/isInstalled.spec.js +++ b/local-cli/link/__tests__/ios/isInstalled.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js b/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js index 0f2b743d21261b..9a480c4c1affe6 100644 --- a/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js +++ b/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/removeProjectFromLibraries.js b/local-cli/link/__tests__/ios/removeProjectFromLibraries.js index 5328291a1f3e42..18baf84b4af126 100644 --- a/local-cli/link/__tests__/ios/removeProjectFromLibraries.js +++ b/local-cli/link/__tests__/ios/removeProjectFromLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js b/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js index adb4eac7fd016c..02dbdf02eba0c0 100644 --- a/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js +++ b/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js b/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js index ece8b176ef1d16..455c8d9ec89024 100644 --- a/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js +++ b/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/ios/writePlist.spec.js b/local-cli/link/__tests__/ios/writePlist.spec.js index 29ea0bfd7d72e4..0d2e086d00132e 100644 --- a/local-cli/link/__tests__/ios/writePlist.spec.js +++ b/local-cli/link/__tests__/ios/writePlist.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/link/__tests__/link.spec.js b/local-cli/link/__tests__/link.spec.js index f15fc3fee43a58..5ff3ab73a19ebe 100644 --- a/local-cli/link/__tests__/link.spec.js +++ b/local-cli/link/__tests__/link.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/link/__tests__/pods/findLineToAddPod.spec.js b/local-cli/link/__tests__/pods/findLineToAddPod.spec.js index 3940136a9920de..1c8d33956c76b9 100644 --- a/local-cli/link/__tests__/pods/findLineToAddPod.spec.js +++ b/local-cli/link/__tests__/pods/findLineToAddPod.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js b/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js index 9e2a8bed8e4c2e..a62e69b915a8d5 100644 --- a/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js +++ b/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/pods/findPodTargetLine.spec.js b/local-cli/link/__tests__/pods/findPodTargetLine.spec.js index 1d382315d7cad2..e9d3371c897432 100644 --- a/local-cli/link/__tests__/pods/findPodTargetLine.spec.js +++ b/local-cli/link/__tests__/pods/findPodTargetLine.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/pods/isInstalled.spec.js b/local-cli/link/__tests__/pods/isInstalled.spec.js index 1060baa456199f..4a9a1f43b006c5 100644 --- a/local-cli/link/__tests__/pods/isInstalled.spec.js +++ b/local-cli/link/__tests__/pods/isInstalled.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/pods/removePodEntry.spec.js b/local-cli/link/__tests__/pods/removePodEntry.spec.js index aa8fd5a26a34b8..1c9032be647dd5 100644 --- a/local-cli/link/__tests__/pods/removePodEntry.spec.js +++ b/local-cli/link/__tests__/pods/removePodEntry.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/__tests__/promiseWaterfall.spec.js b/local-cli/link/__tests__/promiseWaterfall.spec.js index ca1d30db1a427d..0675e6e58db4f7 100644 --- a/local-cli/link/__tests__/promiseWaterfall.spec.js +++ b/local-cli/link/__tests__/promiseWaterfall.spec.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * All rights reserved. * diff --git a/local-cli/link/android/copyAssets.js b/local-cli/link/android/copyAssets.js index 6b3702fa7afeec..f4bd67ff6a1e54 100644 --- a/local-cli/link/android/copyAssets.js +++ b/local-cli/link/android/copyAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs-extra'); diff --git a/local-cli/link/android/fs.js b/local-cli/link/android/fs.js index b485a9ebfbd168..9ace2aba924f03 100644 --- a/local-cli/link/android/fs.js +++ b/local-cli/link/android/fs.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs-extra'); diff --git a/local-cli/link/android/isInstalled.js b/local-cli/link/android/isInstalled.js index c191c0f68c5fdd..2accb2a0160d21 100644 --- a/local-cli/link/android/isInstalled.js +++ b/local-cli/link/android/isInstalled.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs'); diff --git a/local-cli/link/android/patches/applyParams.js b/local-cli/link/android/patches/applyParams.js index 4574399d22d4b9..5f57f3cb8fa891 100644 --- a/local-cli/link/android/patches/applyParams.js +++ b/local-cli/link/android/patches/applyParams.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const toCamelCase = require('lodash').camelCase; diff --git a/local-cli/link/android/patches/applyPatch.js b/local-cli/link/android/patches/applyPatch.js index bc6396602dac78..df9680c507236e 100644 --- a/local-cli/link/android/patches/applyPatch.js +++ b/local-cli/link/android/patches/applyPatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs'); diff --git a/local-cli/link/android/patches/makeBuildPatch.js b/local-cli/link/android/patches/makeBuildPatch.js index 473ab291cf0646..67f7d8aac3f1d2 100644 --- a/local-cli/link/android/patches/makeBuildPatch.js +++ b/local-cli/link/android/patches/makeBuildPatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = function makeBuildPatch(name) { diff --git a/local-cli/link/android/patches/makeImportPatch.js b/local-cli/link/android/patches/makeImportPatch.js index 219242e6dcd036..9cb9aaddc995e2 100644 --- a/local-cli/link/android/patches/makeImportPatch.js +++ b/local-cli/link/android/patches/makeImportPatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = function makeImportPatch(packageImportPath) { diff --git a/local-cli/link/android/patches/makePackagePatch.js b/local-cli/link/android/patches/makePackagePatch.js index 7789cbc4deae0a..054c2ac5649b79 100644 --- a/local-cli/link/android/patches/makePackagePatch.js +++ b/local-cli/link/android/patches/makePackagePatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const applyParams = require('./applyParams'); diff --git a/local-cli/link/android/patches/makeSettingsPatch.js b/local-cli/link/android/patches/makeSettingsPatch.js index 5b0983a9304d9d..a8a6e148333f04 100644 --- a/local-cli/link/android/patches/makeSettingsPatch.js +++ b/local-cli/link/android/patches/makeSettingsPatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const path = require('path'); diff --git a/local-cli/link/android/patches/makeStringsPatch.js b/local-cli/link/android/patches/makeStringsPatch.js index a8a2981a12970c..281582afb97167 100644 --- a/local-cli/link/android/patches/makeStringsPatch.js +++ b/local-cli/link/android/patches/makeStringsPatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const toCamelCase = require('lodash').camelCase; diff --git a/local-cli/link/android/patches/revokePatch.js b/local-cli/link/android/patches/revokePatch.js index 037e2a13052fa3..9437e56cb08834 100644 --- a/local-cli/link/android/patches/revokePatch.js +++ b/local-cli/link/android/patches/revokePatch.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs'); diff --git a/local-cli/link/android/registerNativeModule.js b/local-cli/link/android/registerNativeModule.js index f6d37b5519c36b..0ce77c4e6ed4da 100644 --- a/local-cli/link/android/registerNativeModule.js +++ b/local-cli/link/android/registerNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const applyPatch = require('./patches/applyPatch'); diff --git a/local-cli/link/android/unlinkAssets.js b/local-cli/link/android/unlinkAssets.js index dbaae6f7bcc9ba..b0eeefed93c357 100644 --- a/local-cli/link/android/unlinkAssets.js +++ b/local-cli/link/android/unlinkAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs-extra'); diff --git a/local-cli/link/android/unregisterNativeModule.js b/local-cli/link/android/unregisterNativeModule.js index 51eb157858036c..b6b8d166531841 100644 --- a/local-cli/link/android/unregisterNativeModule.js +++ b/local-cli/link/android/unregisterNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs'); diff --git a/local-cli/link/commandStub.js b/local-cli/link/commandStub.js index 7529fe4ed9fcbd..13078bd3404f10 100644 --- a/local-cli/link/commandStub.js +++ b/local-cli/link/commandStub.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = (cb) => cb(); diff --git a/local-cli/link/getDependencyConfig.js b/local-cli/link/getDependencyConfig.js index 751f746a8881c9..71ce26590906ea 100644 --- a/local-cli/link/getDependencyConfig.js +++ b/local-cli/link/getDependencyConfig.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/getProjectDependencies.js b/local-cli/link/getProjectDependencies.js index 1d670574ef1f97..1d5b0781a9b866 100644 --- a/local-cli/link/getProjectDependencies.js +++ b/local-cli/link/getProjectDependencies.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const path = require('path'); diff --git a/local-cli/link/groupFilesByType.js b/local-cli/link/groupFilesByType.js index 0a5dce030e1395..786c71532e9feb 100644 --- a/local-cli/link/groupFilesByType.js +++ b/local-cli/link/groupFilesByType.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const groupBy = require('lodash').groupBy; diff --git a/local-cli/link/ios/addFileToProject.js b/local-cli/link/ios/addFileToProject.js index 3ed3340afb21cd..168220f8038187 100644 --- a/local-cli/link/ios/addFileToProject.js +++ b/local-cli/link/ios/addFileToProject.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const PbxFile = require('xcode/lib/pbxFile'); diff --git a/local-cli/link/ios/addProjectToLibraries.js b/local-cli/link/ios/addProjectToLibraries.js index d79f643aaf9226..045697dec1f74d 100644 --- a/local-cli/link/ios/addProjectToLibraries.js +++ b/local-cli/link/ios/addProjectToLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/addSharedLibraries.js b/local-cli/link/ios/addSharedLibraries.js index ad29ef9a2dda8f..a0c6f16e649d9f 100644 --- a/local-cli/link/ios/addSharedLibraries.js +++ b/local-cli/link/ios/addSharedLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const createGroupWithMessage = require('./createGroupWithMessage'); diff --git a/local-cli/link/ios/addToHeaderSearchPaths.js b/local-cli/link/ios/addToHeaderSearchPaths.js index b3d3e56e21c9a6..579007ecf81c21 100644 --- a/local-cli/link/ios/addToHeaderSearchPaths.js +++ b/local-cli/link/ios/addToHeaderSearchPaths.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const mapHeaderSearchPaths = require('./mapHeaderSearchPaths'); diff --git a/local-cli/link/ios/copyAssets.js b/local-cli/link/ios/copyAssets.js index dec1cb0c9962c2..8f6d2b86eb1309 100644 --- a/local-cli/link/ios/copyAssets.js +++ b/local-cli/link/ios/copyAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs-extra'); diff --git a/local-cli/link/ios/createGroup.js b/local-cli/link/ios/createGroup.js index 586e933b8c9e0d..62f79e1c9742c1 100644 --- a/local-cli/link/ios/createGroup.js +++ b/local-cli/link/ios/createGroup.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const getGroup = require('./getGroup'); diff --git a/local-cli/link/ios/createGroupWithMessage.js b/local-cli/link/ios/createGroupWithMessage.js index e782813009d8ad..4b598940da95a8 100644 --- a/local-cli/link/ios/createGroupWithMessage.js +++ b/local-cli/link/ios/createGroupWithMessage.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const log = require('npmlog'); diff --git a/local-cli/link/ios/getBuildProperty.js b/local-cli/link/ios/getBuildProperty.js index 6fc82fe496da54..bb1c7b78b88fa7 100644 --- a/local-cli/link/ios/getBuildProperty.js +++ b/local-cli/link/ios/getBuildProperty.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/getGroup.js b/local-cli/link/ios/getGroup.js index dd64332a42fa32..c66205be0117b8 100644 --- a/local-cli/link/ios/getGroup.js +++ b/local-cli/link/ios/getGroup.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const getFirstProject = (project) => project.getFirstProject().firstProject; diff --git a/local-cli/link/ios/getHeaderSearchPath.js b/local-cli/link/ios/getHeaderSearchPath.js index 9857bb62f46c36..c5f2572c622165 100644 --- a/local-cli/link/ios/getHeaderSearchPath.js +++ b/local-cli/link/ios/getHeaderSearchPath.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const path = require('path'); diff --git a/local-cli/link/ios/getHeadersInFolder.js b/local-cli/link/ios/getHeadersInFolder.js index b0426f01a4775a..a4c2250ab47c05 100644 --- a/local-cli/link/ios/getHeadersInFolder.js +++ b/local-cli/link/ios/getHeadersInFolder.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const glob = require('glob'); diff --git a/local-cli/link/ios/getPlist.js b/local-cli/link/ios/getPlist.js index adc530310fb602..61c877258e9018 100644 --- a/local-cli/link/ios/getPlist.js +++ b/local-cli/link/ios/getPlist.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const plistParser = require('plist'); diff --git a/local-cli/link/ios/getPlistPath.js b/local-cli/link/ios/getPlistPath.js index a82d086fd3ae1e..0609f5f581f95b 100644 --- a/local-cli/link/ios/getPlistPath.js +++ b/local-cli/link/ios/getPlistPath.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const path = require('path'); diff --git a/local-cli/link/ios/getProducts.js b/local-cli/link/ios/getProducts.js index 590ff831431906..7e24f15826beea 100644 --- a/local-cli/link/ios/getProducts.js +++ b/local-cli/link/ios/getProducts.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/getTargets.js b/local-cli/link/ios/getTargets.js index b2441e9acf2c8b..c85bcd16a2ebca 100644 --- a/local-cli/link/ios/getTargets.js +++ b/local-cli/link/ios/getTargets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/hasLibraryImported.js b/local-cli/link/ios/hasLibraryImported.js index 077591a7c991c0..0372f0b4b920e2 100644 --- a/local-cli/link/ios/hasLibraryImported.js +++ b/local-cli/link/ios/hasLibraryImported.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/isInstalled.js b/local-cli/link/ios/isInstalled.js index 095925688c4e37..7b0e4a94672ab8 100644 --- a/local-cli/link/ios/isInstalled.js +++ b/local-cli/link/ios/isInstalled.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const xcode = require('xcode'); diff --git a/local-cli/link/ios/mapHeaderSearchPaths.js b/local-cli/link/ios/mapHeaderSearchPaths.js index f31c2d1507c325..cb2a583f25f450 100644 --- a/local-cli/link/ios/mapHeaderSearchPaths.js +++ b/local-cli/link/ios/mapHeaderSearchPaths.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/registerNativeModule.js b/local-cli/link/ios/registerNativeModule.js index 74b828548f4cb9..470776898c2f6f 100644 --- a/local-cli/link/ios/registerNativeModule.js +++ b/local-cli/link/ios/registerNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const xcode = require('xcode'); diff --git a/local-cli/link/ios/removeFromHeaderSearchPaths.js b/local-cli/link/ios/removeFromHeaderSearchPaths.js index 9dbe99e3643710..f662991210c251 100644 --- a/local-cli/link/ios/removeFromHeaderSearchPaths.js +++ b/local-cli/link/ios/removeFromHeaderSearchPaths.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const mapHeaderSearchPaths = require('./mapHeaderSearchPaths'); diff --git a/local-cli/link/ios/removeFromPbxItemContainerProxySection.js b/local-cli/link/ios/removeFromPbxItemContainerProxySection.js index ee5e31777efb98..44a3fb2db83fdb 100644 --- a/local-cli/link/ios/removeFromPbxItemContainerProxySection.js +++ b/local-cli/link/ios/removeFromPbxItemContainerProxySection.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/removeFromPbxReferenceProxySection.js b/local-cli/link/ios/removeFromPbxReferenceProxySection.js index 09561896e2a012..ba3626b796cb36 100644 --- a/local-cli/link/ios/removeFromPbxReferenceProxySection.js +++ b/local-cli/link/ios/removeFromPbxReferenceProxySection.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/removeFromProjectReferences.js b/local-cli/link/ios/removeFromProjectReferences.js index b0c9eada9cebda..5edc858807f991 100644 --- a/local-cli/link/ios/removeFromProjectReferences.js +++ b/local-cli/link/ios/removeFromProjectReferences.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/removeFromStaticLibraries.js b/local-cli/link/ios/removeFromStaticLibraries.js index 861d319f14415c..391088c15702f4 100644 --- a/local-cli/link/ios/removeFromStaticLibraries.js +++ b/local-cli/link/ios/removeFromStaticLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const PbxFile = require('xcode/lib/pbxFile'); diff --git a/local-cli/link/ios/removeProductGroup.js b/local-cli/link/ios/removeProductGroup.js index 6326540b638b0d..888f2a44200601 100644 --- a/local-cli/link/ios/removeProductGroup.js +++ b/local-cli/link/ios/removeProductGroup.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = function removeProductGroup(project, productGroupId) { diff --git a/local-cli/link/ios/removeProjectFromLibraries.js b/local-cli/link/ios/removeProjectFromLibraries.js index 48b356c81a7529..9eaee4758bf87f 100644 --- a/local-cli/link/ios/removeProjectFromLibraries.js +++ b/local-cli/link/ios/removeProjectFromLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/ios/removeProjectFromProject.js b/local-cli/link/ios/removeProjectFromProject.js index e9f2379a051679..cb7c1711497439 100644 --- a/local-cli/link/ios/removeProjectFromProject.js +++ b/local-cli/link/ios/removeProjectFromProject.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const PbxFile = require('xcode/lib/pbxFile'); diff --git a/local-cli/link/ios/removeSharedLibraries.js b/local-cli/link/ios/removeSharedLibraries.js index 6da91f119668a8..dd2629ebb03c6b 100644 --- a/local-cli/link/ios/removeSharedLibraries.js +++ b/local-cli/link/ios/removeSharedLibraries.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = function removeSharedLibraries(project, libraries) { diff --git a/local-cli/link/ios/unlinkAssets.js b/local-cli/link/ios/unlinkAssets.js index 083519e38fe816..a7c38446f4ce61 100644 --- a/local-cli/link/ios/unlinkAssets.js +++ b/local-cli/link/ios/unlinkAssets.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const fs = require('fs-extra'); diff --git a/local-cli/link/ios/unregisterNativeModule.js b/local-cli/link/ios/unregisterNativeModule.js index 8f09484cff9434..b35a6c31aefa13 100644 --- a/local-cli/link/ios/unregisterNativeModule.js +++ b/local-cli/link/ios/unregisterNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const xcode = require('xcode'); diff --git a/local-cli/link/ios/writePlist.js b/local-cli/link/ios/writePlist.js index c7d424fcddb627..0c025d2e9d2277 100644 --- a/local-cli/link/ios/writePlist.js +++ b/local-cli/link/ios/writePlist.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const plistParser = require('plist'); diff --git a/local-cli/link/link.js b/local-cli/link/link.js index 8711f278bd08cc..7799b5c171f6e8 100644 --- a/local-cli/link/link.js +++ b/local-cli/link/link.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/link/pods/addPodEntry.js b/local-cli/link/pods/addPodEntry.js index bc9e2ced1739a7..ea9218623678ed 100644 --- a/local-cli/link/pods/addPodEntry.js +++ b/local-cli/link/pods/addPodEntry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/findLineToAddPod.js b/local-cli/link/pods/findLineToAddPod.js index f275f1c3f79855..dca2e391cc482a 100644 --- a/local-cli/link/pods/findLineToAddPod.js +++ b/local-cli/link/pods/findLineToAddPod.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/findMarkedLinesInPodfile.js b/local-cli/link/pods/findMarkedLinesInPodfile.js index 8d084987e7b87b..42ef7c8bedd44b 100644 --- a/local-cli/link/pods/findMarkedLinesInPodfile.js +++ b/local-cli/link/pods/findMarkedLinesInPodfile.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/findPodTargetLine.js b/local-cli/link/pods/findPodTargetLine.js index fea3b38c835c03..d5a8c97fb2b31c 100644 --- a/local-cli/link/pods/findPodTargetLine.js +++ b/local-cli/link/pods/findPodTargetLine.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/isInstalled.js b/local-cli/link/pods/isInstalled.js index 59072a2762e61e..251376541d14c7 100644 --- a/local-cli/link/pods/isInstalled.js +++ b/local-cli/link/pods/isInstalled.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/readPodfile.js b/local-cli/link/pods/readPodfile.js index a0b85cc3d27955..85ac7ed9bf3dee 100644 --- a/local-cli/link/pods/readPodfile.js +++ b/local-cli/link/pods/readPodfile.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/registerNativeModule.js b/local-cli/link/pods/registerNativeModule.js index 37041cf78322c8..b00d93c6f2d6d8 100644 --- a/local-cli/link/pods/registerNativeModule.js +++ b/local-cli/link/pods/registerNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/removePodEntry.js b/local-cli/link/pods/removePodEntry.js index 490a2300a1a957..8af044734d3121 100644 --- a/local-cli/link/pods/removePodEntry.js +++ b/local-cli/link/pods/removePodEntry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/savePodFile.js b/local-cli/link/pods/savePodFile.js index dbd98686f6f166..5572311105d591 100644 --- a/local-cli/link/pods/savePodFile.js +++ b/local-cli/link/pods/savePodFile.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pods/unregisterNativeModule.js b/local-cli/link/pods/unregisterNativeModule.js index 10da38f158a7dd..3b2408bf992c8c 100644 --- a/local-cli/link/pods/unregisterNativeModule.js +++ b/local-cli/link/pods/unregisterNativeModule.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/link/pollParams.js b/local-cli/link/pollParams.js index b5e0da823436a6..4c084a6d3ffec7 100644 --- a/local-cli/link/pollParams.js +++ b/local-cli/link/pollParams.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ var inquirer = require('inquirer'); diff --git a/local-cli/link/promiseWaterfall.js b/local-cli/link/promiseWaterfall.js index d88135535938bc..fa8b621a9f5a76 100644 --- a/local-cli/link/promiseWaterfall.js +++ b/local-cli/link/promiseWaterfall.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /** diff --git a/local-cli/link/promisify.js b/local-cli/link/promisify.js index 38c0237843d316..665b640f216f7a 100644 --- a/local-cli/link/promisify.js +++ b/local-cli/link/promisify.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ module.exports = (func) => new Promise((resolve, reject) => diff --git a/local-cli/link/unlink.js b/local-cli/link/unlink.js index ed3772c4b45c39..54e6df37401d57 100644 --- a/local-cli/link/unlink.js +++ b/local-cli/link/unlink.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const log = require('npmlog'); diff --git a/local-cli/logAndroid/logAndroid.js b/local-cli/logAndroid/logAndroid.js index be3cc12f647af3..7a1aace4bf78b1 100644 --- a/local-cli/logAndroid/logAndroid.js +++ b/local-cli/logAndroid/logAndroid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/logIOS/logIOS.js b/local-cli/logIOS/logIOS.js index 0a9fb14615bc7d..3e7b1ffb7c25f2 100644 --- a/local-cli/logIOS/logIOS.js +++ b/local-cli/logIOS/logIOS.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/runAndroid/adb.js b/local-cli/runAndroid/adb.js index 221b710af55bed..8206093e3fa867 100644 --- a/local-cli/runAndroid/adb.js +++ b/local-cli/runAndroid/adb.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/runAndroid/runAndroid.js b/local-cli/runAndroid/runAndroid.js index d88235d1c40a18..eb17d38210ebb7 100644 --- a/local-cli/runAndroid/runAndroid.js +++ b/local-cli/runAndroid/runAndroid.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/runIOS/__tests__/findMatchingSimulator-test.js b/local-cli/runIOS/__tests__/findMatchingSimulator-test.js index 8c355b462d15f1..6433605beb9017 100644 --- a/local-cli/runIOS/__tests__/findMatchingSimulator-test.js +++ b/local-cli/runIOS/__tests__/findMatchingSimulator-test.js @@ -1,11 +1,9 @@ /** * /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/runIOS/__tests__/findXcodeProject-test.js b/local-cli/runIOS/__tests__/findXcodeProject-test.js index 21203d9655fa4d..305605feab23ef 100644 --- a/local-cli/runIOS/__tests__/findXcodeProject-test.js +++ b/local-cli/runIOS/__tests__/findXcodeProject-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/runIOS/__tests__/parseIOSDevicesList-test.js b/local-cli/runIOS/__tests__/parseIOSDevicesList-test.js index 6e18b1ec98e327..aea241c8fe374d 100644 --- a/local-cli/runIOS/__tests__/parseIOSDevicesList-test.js +++ b/local-cli/runIOS/__tests__/parseIOSDevicesList-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @emails oncall+javascript_foundation */ diff --git a/local-cli/runIOS/findXcodeProject.js b/local-cli/runIOS/findXcodeProject.js index 0d6cd302c6d0a6..ecb80b3d3da1d5 100644 --- a/local-cli/runIOS/findXcodeProject.js +++ b/local-cli/runIOS/findXcodeProject.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/runIOS/parseIOSDevicesList.js b/local-cli/runIOS/parseIOSDevicesList.js index 3ccbeac33059d4..d0c10a3a5ea8e7 100644 --- a/local-cli/runIOS/parseIOSDevicesList.js +++ b/local-cli/runIOS/parseIOSDevicesList.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index d2ec2b82d63df1..22fbf6ef5f183e 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -1,10 +1,8 @@ /** * 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. +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/checkNodeVersion.js b/local-cli/server/checkNodeVersion.js index b589304fec1f35..46ec6cdc2f78e5 100644 --- a/local-cli/server/checkNodeVersion.js +++ b/local-cli/server/checkNodeVersion.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/copyToClipBoardMiddleware.js b/local-cli/server/middleware/copyToClipBoardMiddleware.js index 4a630c335b2d31..723fbd30c881df 100644 --- a/local-cli/server/middleware/copyToClipBoardMiddleware.js +++ b/local-cli/server/middleware/copyToClipBoardMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/getDevToolsMiddleware.js b/local-cli/server/middleware/getDevToolsMiddleware.js index e6621ac57e8383..4a01d964d3fd76 100644 --- a/local-cli/server/middleware/getDevToolsMiddleware.js +++ b/local-cli/server/middleware/getDevToolsMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/local-cli/server/middleware/indexPage.js b/local-cli/server/middleware/indexPage.js index 1ba7dca5b77c3d..dee12456db2ab2 100644 --- a/local-cli/server/middleware/indexPage.js +++ b/local-cli/server/middleware/indexPage.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/loadRawBodyMiddleware.js b/local-cli/server/middleware/loadRawBodyMiddleware.js index 2b59195f415aa7..924275009ebe28 100644 --- a/local-cli/server/middleware/loadRawBodyMiddleware.js +++ b/local-cli/server/middleware/loadRawBodyMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/openStackFrameInEditorMiddleware.js b/local-cli/server/middleware/openStackFrameInEditorMiddleware.js index b94598f216f6f5..471c8ed8bbef17 100644 --- a/local-cli/server/middleware/openStackFrameInEditorMiddleware.js +++ b/local-cli/server/middleware/openStackFrameInEditorMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/statusPageMiddleware.js b/local-cli/server/middleware/statusPageMiddleware.js index fb793468ff0e0a..cd8fb80200c1e7 100644 --- a/local-cli/server/middleware/statusPageMiddleware.js +++ b/local-cli/server/middleware/statusPageMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/systraceProfileMiddleware.js b/local-cli/server/middleware/systraceProfileMiddleware.js index a06f0100a9ddd9..fc1669468f8034 100644 --- a/local-cli/server/middleware/systraceProfileMiddleware.js +++ b/local-cli/server/middleware/systraceProfileMiddleware.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/middleware/unless.js b/local-cli/server/middleware/unless.js index c074a6c13f5830..acf0643cf3a05c 100644 --- a/local-cli/server/middleware/unless.js +++ b/local-cli/server/middleware/unless.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 1288d769b73102..870652fc956ddc 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/local-cli/server/server.js b/local-cli/server/server.js index df4fd22a2c7f85..f188a3e82dd48d 100644 --- a/local-cli/server/server.js +++ b/local-cli/server/server.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/server/util/attachWebsocketServer.js b/local-cli/server/util/attachWebsocketServer.js index fcbe0f7198da97..66f8fe953a4ad0 100644 --- a/local-cli/server/util/attachWebsocketServer.js +++ b/local-cli/server/util/attachWebsocketServer.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @flow diff --git a/local-cli/server/util/copyToClipBoard.js b/local-cli/server/util/copyToClipBoard.js index e0113ce5a413bd..bb2259e8150389 100644 --- a/local-cli/server/util/copyToClipBoard.js +++ b/local-cli/server/util/copyToClipBoard.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/util/debugger-ui/DeltaPatcher.js b/local-cli/server/util/debugger-ui/DeltaPatcher.js index 1787307b99a396..c137894942c51c 100644 --- a/local-cli/server/util/debugger-ui/DeltaPatcher.js +++ b/local-cli/server/util/debugger-ui/DeltaPatcher.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format */ diff --git a/local-cli/server/util/debugger-ui/debuggerWorker.js b/local-cli/server/util/debugger-ui/debuggerWorker.js index c05f558d87962b..e70ca0ec973547 100644 --- a/local-cli/server/util/debugger-ui/debuggerWorker.js +++ b/local-cli/server/util/debugger-ui/debuggerWorker.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /* global __fbBatchedBridge, self, importScripts, postMessage, onmessage: true */ diff --git a/local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js b/local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js index 5a206ce2281809..afc1dd5caea3d6 100644 --- a/local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js +++ b/local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/local-cli/server/util/debugger-ui/index.html b/local-cli/server/util/debugger-ui/index.html index c21a21892ba313..57d377629abd79 100644 --- a/local-cli/server/util/debugger-ui/index.html +++ b/local-cli/server/util/debugger-ui/index.html @@ -1,11 +1,9 @@ diff --git a/local-cli/server/util/jsPackagerClient.js b/local-cli/server/util/jsPackagerClient.js index 582e74416a29e6..3b449db160e404 100644 --- a/local-cli/server/util/jsPackagerClient.js +++ b/local-cli/server/util/jsPackagerClient.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/local-cli/server/util/launchChrome.js b/local-cli/server/util/launchChrome.js index 8dd1900a8f3610..6999a3d0bdd0bd 100644 --- a/local-cli/server/util/launchChrome.js +++ b/local-cli/server/util/launchChrome.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/server/util/launchEditor.js b/local-cli/server/util/launchEditor.js index 3ea5e9621a71c5..f78927d82d6e47 100644 --- a/local-cli/server/util/launchEditor.js +++ b/local-cli/server/util/launchEditor.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/util/messageSocket.js b/local-cli/server/util/messageSocket.js index d8b0236dd78036..bceb72fab01c5d 100644 --- a/local-cli/server/util/messageSocket.js +++ b/local-cli/server/util/messageSocket.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/server/util/webSocketProxy.js b/local-cli/server/util/webSocketProxy.js index f862c34bf8bd60..2a854c6d81d571 100644 --- a/local-cli/server/util/webSocketProxy.js +++ b/local-cli/server/util/webSocketProxy.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/setup_env.bat b/local-cli/setup_env.bat index 9cd1e826648fc9..e5c135e5abff82 100755 --- a/local-cli/setup_env.bat +++ b/local-cli/setup_env.bat @@ -1,6 +1,4 @@ :: 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. +:: This source code is licensed under the MIT license found in the +:: LICENSE file in the root directory of this source tree. diff --git a/local-cli/setup_env.sh b/local-cli/setup_env.sh index 87a722b5c154e5..0087df50c04aa4 100755 --- a/local-cli/setup_env.sh +++ b/local-cli/setup_env.sh @@ -1,10 +1,8 @@ #!/usr/bin/env bash # 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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. # 2048 is the max for non root users on Mac ulimit -n 2048 diff --git a/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js b/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js index f38567ea3ae206..72e10391757c57 100644 --- a/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js +++ b/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.h b/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.h index a9654d5e01b18c..d4f2580b1ea1b8 100644 --- a/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.h +++ b/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.h @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.m b/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.m index 7807738016e386..23a3b137c46c99 100644 --- a/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.m +++ b/local-cli/templates/HelloWorld/ios/HelloWorld/AppDelegate.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import "AppDelegate.h" diff --git a/local-cli/templates/HelloWorld/ios/HelloWorld/main.m b/local-cli/templates/HelloWorld/ios/HelloWorld/main.m index 3d767fcbb9fced..c73e006253a31d 100644 --- a/local-cli/templates/HelloWorld/ios/HelloWorld/main.m +++ b/local-cli/templates/HelloWorld/ios/HelloWorld/main.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/local-cli/templates/HelloWorld/ios/HelloWorldTests/HelloWorldTests.m b/local-cli/templates/HelloWorld/ios/HelloWorldTests/HelloWorldTests.m index 161aba80468287..45fba113383af7 100644 --- a/local-cli/templates/HelloWorld/ios/HelloWorldTests/HelloWorldTests.m +++ b/local-cli/templates/HelloWorld/ios/HelloWorldTests/HelloWorldTests.m @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #import diff --git a/local-cli/upgrade/upgrade.js b/local-cli/upgrade/upgrade.js index 2feb3f3149271b..93e3a7815d1f6a 100644 --- a/local-cli/upgrade/upgrade.js +++ b/local-cli/upgrade/upgrade.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/Config.js b/local-cli/util/Config.js index 132ef3e286ec67..ac7e3bf2cef038 100644 --- a/local-cli/util/Config.js +++ b/local-cli/util/Config.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @flow diff --git a/local-cli/util/PackageManager.js b/local-cli/util/PackageManager.js index 6d866a0505aa23..89024ff2712baf 100644 --- a/local-cli/util/PackageManager.js +++ b/local-cli/util/PackageManager.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/__mocks__/log.js b/local-cli/util/__mocks__/log.js index 5fff767d2e025a..742b2c03701e49 100644 --- a/local-cli/util/__mocks__/log.js +++ b/local-cli/util/__mocks__/log.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/__tests__/findSymlinkedModules-test.js b/local-cli/util/__tests__/findSymlinkedModules-test.js index 8a1900453aa27a..25c1b52d27ad99 100644 --- a/local-cli/util/__tests__/findSymlinkedModules-test.js +++ b/local-cli/util/__tests__/findSymlinkedModules-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+javascript_foundation diff --git a/local-cli/util/assertRequiredOptions.js b/local-cli/util/assertRequiredOptions.js index 28bbc9b34e2ce2..877caf0583b9c7 100644 --- a/local-cli/util/assertRequiredOptions.js +++ b/local-cli/util/assertRequiredOptions.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/copyAndReplace.js b/local-cli/util/copyAndReplace.js index c48c80b8e9a25f..543bc6ecf012ee 100644 --- a/local-cli/util/copyAndReplace.js +++ b/local-cli/util/copyAndReplace.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/findReactNativeScripts.js b/local-cli/util/findReactNativeScripts.js index a66bb110d90e1a..28317cd60f2f9d 100644 --- a/local-cli/util/findReactNativeScripts.js +++ b/local-cli/util/findReactNativeScripts.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/local-cli/util/findSymlinkedModules.js b/local-cli/util/findSymlinkedModules.js index 64191b585864f5..428ed3ead05607 100644 --- a/local-cli/util/findSymlinkedModules.js +++ b/local-cli/util/findSymlinkedModules.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @format * @flow diff --git a/local-cli/util/findSymlinksPaths.js b/local-cli/util/findSymlinksPaths.js index 61edda340ed368..e9d2d5670bfd26 100644 --- a/local-cli/util/findSymlinksPaths.js +++ b/local-cli/util/findSymlinksPaths.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const path = require('path'); diff --git a/local-cli/util/isPackagerRunning.js b/local-cli/util/isPackagerRunning.js index fbdebd08d255f9..1384e6be953544 100644 --- a/local-cli/util/isPackagerRunning.js +++ b/local-cli/util/isPackagerRunning.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/isValidPackageName.js b/local-cli/util/isValidPackageName.js index 89be87fbee78fb..6bf1fdf91671d0 100644 --- a/local-cli/util/isValidPackageName.js +++ b/local-cli/util/isValidPackageName.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/log.js b/local-cli/util/log.js index 16bbbae58e7a64..6215de5e76e86d 100644 --- a/local-cli/util/log.js +++ b/local-cli/util/log.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/parseCommandLine.js b/local-cli/util/parseCommandLine.js index 10b8d3537aaf5b..d216959d68c9ab 100644 --- a/local-cli/util/parseCommandLine.js +++ b/local-cli/util/parseCommandLine.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * Wrapper on-top of `optimist` in order to properly support boolean flags * and have a slightly less awkward API. diff --git a/local-cli/util/walk.js b/local-cli/util/walk.js index fae2fc2000b322..5ca1c8d52f32d3 100644 --- a/local-cli/util/walk.js +++ b/local-cli/util/walk.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/util/yarn.js b/local-cli/util/yarn.js index 8bef7804eb9b09..f2edb1c382df3c 100644 --- a/local-cli/util/yarn.js +++ b/local-cli/util/yarn.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/local-cli/wrong-react-native.js b/local-cli/wrong-react-native.js index 2555fa04546983..57f04feadc39d4 100755 --- a/local-cli/wrong-react-native.js +++ b/local-cli/wrong-react-native.js @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ const isWindows = process.platform === 'win32'; diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 4de761a7ff4653..5cde164967a715 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/react-native-git-upgrade/checks.js b/react-native-git-upgrade/checks.js index 3be8f7b7a0cdfc..1660addd00e2b8 100644 --- a/react-native-git-upgrade/checks.js +++ b/react-native-git-upgrade/checks.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/react-native-git-upgrade/cli.js b/react-native-git-upgrade/cli.js index f664d9583e5c7c..94647fd16c48da 100644 --- a/react-native-git-upgrade/cli.js +++ b/react-native-git-upgrade/cli.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/react-native-git-upgrade/cliEntry.js b/react-native-git-upgrade/cliEntry.js index 757852e61bbc67..a9cbfa5641f369 100644 --- a/react-native-git-upgrade/cliEntry.js +++ b/react-native-git-upgrade/cliEntry.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/react-native-git-upgrade/index.js b/react-native-git-upgrade/index.js index c676a7a65ee93b..dea50c344e9ab8 100644 --- a/react-native-git-upgrade/index.js +++ b/react-native-git-upgrade/index.js @@ -2,11 +2,9 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ var argv = require('minimist')(process.argv.slice(2)); diff --git a/react-native-git-upgrade/yarn.js b/react-native-git-upgrade/yarn.js index 7dda2501dc64e7..9e461190e458cd 100644 --- a/react-native-git-upgrade/yarn.js +++ b/react-native-git-upgrade/yarn.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/rn-cli.config.js b/rn-cli.config.js index 2f6f5f2031f74d..694fd8d6399ee6 100644 --- a/rn-cli.config.js +++ b/rn-cli.config.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @format diff --git a/rn-get-polyfills.js b/rn-get-polyfills.js index a228d6f1f91875..e7dd869c6f4ef6 100644 --- a/rn-get-polyfills.js +++ b/rn-get-polyfills.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/scripts/android-e2e-test.js b/scripts/android-e2e-test.js index 1feda1e4fe35a1..bb0e109607defd 100644 --- a/scripts/android-e2e-test.js +++ b/scripts/android-e2e-test.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * Used in run-ci-e2e-test.js and executed in Circle CI. * E2e test that verifies that init app can be installed, compiled, started and Hot Module reloading and Chrome debugging work. diff --git a/scripts/bump-oss-version.js b/scripts/bump-oss-version.js index b8fe500a621383..03f5ec19093df2 100755 --- a/scripts/bump-oss-version.js +++ b/scripts/bump-oss-version.js @@ -1,11 +1,9 @@ #!/usr/bin/env node /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/scripts/launchPackager.bat b/scripts/launchPackager.bat index 00ac056a362b83..09f1de98737002 100644 --- a/scripts/launchPackager.bat +++ b/scripts/launchPackager.bat @@ -1,9 +1,7 @@ :: 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. +:: This source code is licensed under the MIT license found in the +:: LICENSE file in the root directory of this source tree. @echo off title Metro Bundler diff --git a/scripts/launchPackager.command b/scripts/launchPackager.command index 20bbf8e06f9a21..b4570cd3c63027 100755 --- a/scripts/launchPackager.command +++ b/scripts/launchPackager.command @@ -1,11 +1,9 @@ #!/usr/bin/env bash # 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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. # Set terminal title echo -en "\033]0;Metro Bundler\a" diff --git a/scripts/packager.sh b/scripts/packager.sh index f7ce245a42403d..ee3966923a2bb0 100755 --- a/scripts/packager.sh +++ b/scripts/packager.sh @@ -1,11 +1,9 @@ #!/usr/bin/env bash # 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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. THIS_DIR=$(dirname "$0") source "${THIS_DIR}/.packager.env" diff --git a/scripts/publish-npm.js b/scripts/publish-npm.js index 96e37318108a64..269fc7014dd3ff 100644 --- a/scripts/publish-npm.js +++ b/scripts/publish-npm.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 04a309f38bdf92..1e259741276241 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -1,10 +1,8 @@ #!/bin/bash # 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. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. # Bundle React Native app's code and image assets. # This script is supposed to be invoked as part of Xcode build process diff --git a/scripts/run-android-ci-instrumentation-tests.js b/scripts/run-android-ci-instrumentation-tests.js index 9cf72b9763aa5e..17d382a32e1525 100644 --- a/scripts/run-android-ci-instrumentation-tests.js +++ b/scripts/run-android-ci-instrumentation-tests.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index 5c38ae676c3a06..cd1163f0ba2443 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/scripts/try-n-times.js b/scripts/try-n-times.js index 66cfb71a139b7e..51cba900c22b72 100644 --- a/scripts/try-n-times.js +++ b/scripts/try-n-times.js @@ -1,10 +1,8 @@ /** * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /* globals echo:false */ diff --git a/scripts/versiontemplates/RCTVersion.h.template b/scripts/versiontemplates/RCTVersion.h.template index f188ae8a2ba71d..1ab81aacc44aec 100644 --- a/scripts/versiontemplates/RCTVersion.h.template +++ b/scripts/versiontemplates/RCTVersion.h.template @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ #define RCT_REACT_NATIVE_VERSION @{ \ diff --git a/scripts/versiontemplates/ReactNativeVersion.java.template b/scripts/versiontemplates/ReactNativeVersion.java.template index 7ae1cecc8b120d..12d55c3db4df0f 100644 --- a/scripts/versiontemplates/ReactNativeVersion.java.template +++ b/scripts/versiontemplates/ReactNativeVersion.java.template @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ package com.facebook.react.modules.systeminfo; diff --git a/scripts/versiontemplates/ReactNativeVersion.js.template b/scripts/versiontemplates/ReactNativeVersion.js.template index 357625b87230c7..1f1ccdd741dd32 100644 --- a/scripts/versiontemplates/ReactNativeVersion.js.template +++ b/scripts/versiontemplates/ReactNativeVersion.js.template @@ -2,11 +2,9 @@ * @generated by scripts/bump-oss-version.js * * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ReactNativeVersion diff --git a/setupBabel.js b/setupBabel.js index b581e0d3c16114..15e0f19a458bb2 100644 --- a/setupBabel.js +++ b/setupBabel.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; From 26684cf3adf4094eb6c405d345a75bf8c7c0bf88 Mon Sep 17 00:00:00 2001 From: Sophie Alpert Date: Fri, 16 Feb 2018 18:25:02 -0800 Subject: [PATCH 053/267] Update to MIT license Summary: Manual changes. Reviewed By: TheSavior, yungsters Differential Revision: D7012152 fbshipit-source-id: de7459be3db13c687868b45059856f125c4f2eb1 --- CONTRIBUTING.md | 2 +- LICENSE | 43 ++++++++----------- Libraries/Animated/release/gulpfile.js | 9 ++-- Libraries/Animated/release/package.json | 2 +- PATENTS | 33 -------------- README.md | 2 +- React.podspec | 2 +- ReactAndroid/release.gradle | 2 +- ReactCommon/yoga/yoga.podspec | 2 +- babel-preset/package.json | 2 +- local-cli/runIOS/findMatchingSimulator.js | 6 +-- package.json | 3 +- react-native-cli/package.json | 2 +- react-native-git-upgrade/package.json | 2 +- scripts/sync-css-layout.sh | 7 ++- third-party-podspecs/DoubleConversion.podspec | 2 +- 16 files changed, 36 insertions(+), 85 deletions(-) delete mode 100644 PATENTS diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 96152932684a48..bc151d02603d62 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -208,5 +208,5 @@ However, there are still some styles that the linter cannot pick up. ## License -By contributing to React Native, you agree that your contributions will be licensed under its BSD license. +By contributing to React Native, you agree that your contributions will be licensed under its MIT license. diff --git a/LICENSE b/LICENSE index 8085fec497caf6..9e051010d82dc6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,30 +1,21 @@ -BSD License +MIT License -For React Native software +Copyright (c) 2015-present, Facebook, Inc. -Copyright (c) 2015-present, Facebook, Inc. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Libraries/Animated/release/gulpfile.js b/Libraries/Animated/release/gulpfile.js index 5787276888a516..b454ea790c2731 100644 --- a/Libraries/Animated/release/gulpfile.js +++ b/Libraries/Animated/release/gulpfile.js @@ -30,13 +30,10 @@ var PRODUCTION_HEADER = [ '/**', ' * Animated v<%= version %>', ' *', - ' * Copyright 2013-2015, 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.', + ' * Copyright (c) 2013-present, Facebook, Inc.', ' *', + ' * This source code is licensed under the MIT license found in the', + ' * LICENSE file in the root directory of this source tree.', ' */' ].join('\n') + '\n'; diff --git a/Libraries/Animated/release/package.json b/Libraries/Animated/release/package.json index 33654f7eae10e2..74f457a4dcd33c 100644 --- a/Libraries/Animated/release/package.json +++ b/Libraries/Animated/release/package.json @@ -7,7 +7,7 @@ "animated", "animation" ], - "license": "BSD-3-Clause", + "license": "MIT", "main": "Animated.js", "dependencies": { "fbjs": "^0.2.1" diff --git a/PATENTS b/PATENTS deleted file mode 100644 index f26186660aa7b0..00000000000000 --- a/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the React Native software distributed by Facebook, Inc. - -Facebook, Inc. (“Facebook”) hereby grants to each recipient of the Software -(“you”) a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/README.md b/README.md index 05aafba3ca7806..a9c12562f1a698 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ We have a list of [beginner friendly issues](https://github.com/facebook/react-n ## License -React Native is [BSD licensed](./LICENSE). We also provide an additional [patent grant](./PATENTS). +React Native is [MIT licensed](./LICENSE). React Native documentation is [Creative Commons licensed](./LICENSE-docs). diff --git a/React.podspec b/React.podspec index eb9b0c979a9ddb..9d222499f38414 100644 --- a/React.podspec +++ b/React.podspec @@ -39,7 +39,7 @@ Pod::Spec.new do |s| s.requires_arc = true s.platforms = { :ios => "8.0", :tvos => "9.2" } s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" } - s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs", "PATENTS" + s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" s.cocoapods_version = ">= 1.2.0" s.subspec "Core" do |ss| diff --git a/ReactAndroid/release.gradle b/ReactAndroid/release.gradle index 51e431a98e9a22..13cfbaf826ad3f 100644 --- a/ReactAndroid/release.gradle +++ b/ReactAndroid/release.gradle @@ -39,7 +39,7 @@ def configureReactNativePom(def pom) { licenses { license { - name 'BSD License' + name 'MIT License' url 'https://github.com/facebook/react-native/blob/master/LICENSE' distribution 'repo' } diff --git a/ReactCommon/yoga/yoga.podspec b/ReactCommon/yoga/yoga.podspec index 4d0577e80dbec5..c38f4c09796cb6 100644 --- a/ReactCommon/yoga/yoga.podspec +++ b/ReactCommon/yoga/yoga.podspec @@ -12,7 +12,7 @@ end Pod::Spec.new do |spec| spec.name = 'yoga' spec.version = "#{version}.React" - spec.license = { :type => 'BSD' } + spec.license = { :type => 'MIT' } spec.homepage = 'https://facebook.github.io/yoga/' spec.documentation_url = 'https://facebook.github.io/yoga/docs/api/c/' diff --git a/babel-preset/package.json b/babel-preset/package.json index 77e1090ed1754a..3181ee146f24a4 100644 --- a/babel-preset/package.json +++ b/babel-preset/package.json @@ -9,7 +9,7 @@ "preset", "react-native" ], - "license": "BSD-3-Clause", + "license": "MIT", "bugs": { "url": "https://github.com/facebook/react-native/issues" }, diff --git a/local-cli/runIOS/findMatchingSimulator.js b/local-cli/runIOS/findMatchingSimulator.js index eb14e4b843685f..ceef5c669ee337 100644 --- a/local-cli/runIOS/findMatchingSimulator.js +++ b/local-cli/runIOS/findMatchingSimulator.js @@ -1,10 +1,8 @@ /** * 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.* + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/package.json b/package.json index 631a0394dcdac7..f57e73a70e80b0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-native", "version": "1000.0.0", "description": "A framework for building native apps using React", - "license": "BSD-3-Clause", + "license": "MIT", "repository": { "type": "git", "url": "git@github.com:facebook/react-native.git" @@ -112,7 +112,6 @@ "LICENSE", "local-cli", "packager", - "PATENTS", "react.gradle", "React.podspec", "React", diff --git a/react-native-cli/package.json b/react-native-cli/package.json index 1d7498c49a6757..fb966fa17c4b34 100644 --- a/react-native-cli/package.json +++ b/react-native-cli/package.json @@ -1,7 +1,7 @@ { "name": "react-native-cli", "version": "2.0.1", - "license": "BSD-3-Clause", + "license": "MIT", "description": "The React Native CLI tools", "main": "index.js", "engines": { diff --git a/react-native-git-upgrade/package.json b/react-native-git-upgrade/package.json index 9556cc277a082a..21cfa896188626 100644 --- a/react-native-git-upgrade/package.json +++ b/react-native-git-upgrade/package.json @@ -1,7 +1,7 @@ { "name": "react-native-git-upgrade", "version": "0.2.7", - "license": "BSD-3-Clause", + "license": "MIT", "description": "The React Native upgrade tool", "main": "cli.js", "bin": { diff --git a/scripts/sync-css-layout.sh b/scripts/sync-css-layout.sh index fcd5bb525a0090..6c2f2f3c01f2a4 100755 --- a/scripts/sync-css-layout.sh +++ b/scripts/sync-css-layout.sh @@ -8,10 +8,9 @@ function patchfile { # Add React Native copyright printf "/**\n" > /tmp/yogasync.tmp printf " * Copyright (c) 2014-present, Facebook, Inc.\n" >> /tmp/yogasync.tmp - printf " * All rights reserved.\n" >> /tmp/yogasync.tmp - printf " * This source code is licensed under the BSD-style license found in the\n" >> /tmp/yogasync.tmp - printf " * LICENSE file in the root directory of this source tree. An additional grant\n" >> /tmp/yogasync.tmp - printf " * of patent rights can be found in the PATENTS file in the same directory.\n" >> /tmp/yogasync.tmp + printf " *\n" >> /tmp/yogasync.tmp + printf " * This source code is licensed under the MIT license found in the\n" >> /tmp/yogasync.tmp + printf " * LICENSE file in the root directory of this source tree.\n" >> /tmp/yogasync.tmp printf " */\n\n" >> /tmp/yogasync.tmp printf "// NOTE: this file is auto-copied from https://github.com/facebook/css-layout\n" >> /tmp/yogasync.tmp # The following is split over four lines so Phabricator doesn't think this file is generated diff --git a/third-party-podspecs/DoubleConversion.podspec b/third-party-podspecs/DoubleConversion.podspec index 514194ed61040a..52f7ec1279f9c8 100644 --- a/third-party-podspecs/DoubleConversion.podspec +++ b/third-party-podspecs/DoubleConversion.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = 'DoubleConversion' spec.version = '1.1.5' - spec.license = { :type => 'BSD' } + spec.license = { :type => 'MIT' } spec.homepage = 'https://github.com/google/double-conversion' spec.summary = 'Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles' spec.authors = 'Google' From da3424c929220304ff01032a9bf473fb251375f1 Mon Sep 17 00:00:00 2001 From: Caleb Meredith Date: Fri, 16 Feb 2018 19:59:54 -0800 Subject: [PATCH 054/267] @allow-large-files Upgrade xplat/js to Flow v0.66 Reviewed By: gabelevi Differential Revision: D7016717 fbshipit-source-id: 2bd2fd67074ba5d405ecd63a1aeb37354f8634c9 --- .flowconfig | 2 +- Libraries/CameraRoll/CameraRoll.js | 4 +++- Libraries/Components/TextInput/TextInput.js | 3 --- Libraries/Core/InitializeCore.js | 3 --- .../Experimental/SwipeableRow/SwipeableRow.js | 3 --- Libraries/Lists/FlatList.js | 6 ++++++ Libraries/Lists/MetroListView.js | 2 -- Libraries/Lists/SectionList.js | 3 +++ Libraries/Lists/VirtualizedList.js | 4 +++- Libraries/ReactNative/requireNativeComponent.js | 3 --- RNTester/js/CameraRollView.js | 1 - jest/preprocessor.js | 6 ------ local-cli/__tests__/fs-mock-test.js | 12 ------------ local-cli/bundle/buildBundle.js | 15 --------------- local-cli/bundle/types.flow.js | 3 --- local-cli/server/runServer.js | 9 --------- local-cli/templates/HelloWorld/_flowconfig | 2 +- package.json | 2 +- 18 files changed, 18 insertions(+), 65 deletions(-) diff --git a/.flowconfig b/.flowconfig index 735e7816a35829..b7aa19446d88dc 100644 --- a/.flowconfig +++ b/.flowconfig @@ -52,4 +52,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.65.0 +^0.66.0 diff --git a/Libraries/CameraRoll/CameraRoll.js b/Libraries/CameraRoll/CameraRoll.js index 0c91dc7fd0233b..3bc48664f35db1 100644 --- a/Libraries/CameraRoll/CameraRoll.js +++ b/Libraries/CameraRoll/CameraRoll.js @@ -113,8 +113,10 @@ type GetPhotosReturn = Promise<{ * Shape of the return value of the `getPhotos` function. */ const getPhotosReturnChecker = createStrictShapeTypeChecker({ - // $FlowFixMe(>=0.41.0) edges: PropTypes.arrayOf( + /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.66 was deployed. To see the error delete this + * comment and run Flow. */ createStrictShapeTypeChecker({ node: createStrictShapeTypeChecker({ type: PropTypes.string.isRequired, diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index ab685dc75060c4..b9eb03bd67526e 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -31,9 +31,6 @@ const UIManager = require('UIManager'); const ViewPropTypes = require('ViewPropTypes'); const {ViewContextTypes} = require('ViewContext'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const emptyFunction = require('fbjs/lib/emptyFunction'); const invariant = require('fbjs/lib/invariant'); const requireNativeComponent = require('requireNativeComponent'); diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 3e09e566078cca..3e6ebb680732bb 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -195,9 +195,6 @@ if (__DEV__) { // Set up inspector const JSInspector = require('JSInspector'); - /* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an - * error found when Flow v0.56 was deployed. To see the error delete this - * comment and run Flow. */ /* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This comment * suppresses an error found when Flow v0.56 was deployed. To see the error * delete this comment and run Flow. */ diff --git a/Libraries/Experimental/SwipeableRow/SwipeableRow.js b/Libraries/Experimental/SwipeableRow/SwipeableRow.js index e03970c637fa8b..80e627376e8482 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableRow.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableRow.js @@ -22,9 +22,6 @@ const TimerMixin = require('react-timer-mixin'); const View = require('View'); const createReactClass = require('create-react-class'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const emptyFunction = require('fbjs/lib/emptyFunction'); const IS_RTL = I18nManager.isRTL; diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index dc0f5db8b5f8d3..e5b4a8310330c7 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -627,8 +627,14 @@ class FlatList extends React.PureComponent, void> { render() { if (this.props.legacyImplementation) { return ( + /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.66 was deployed. To see the error delete + * this comment and run Flow. */ =0.66.0 site=react_native_fb) This comment suppresses + * an error found when Flow v0.66 was deployed. To see the error + * delete this comment and run Flow. */ items={this.props.data} ref={this._captureRef} /> diff --git a/Libraries/Lists/MetroListView.js b/Libraries/Lists/MetroListView.js index 906164fa9e88f6..5f22eb264ee85b 100644 --- a/Libraries/Lists/MetroListView.js +++ b/Libraries/Lists/MetroListView.js @@ -50,8 +50,6 @@ type NormalProps = { type DefaultProps = { keyExtractor: (item: Item, index: number) => string, }; -/* $FlowFixMe - the renderItem passed in from SectionList is optional there but - * required here */ type Props = NormalProps & DefaultProps; /** diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 3dfc99bd3a17dd..2404d26f54c72a 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -326,6 +326,9 @@ class SectionList> extends React.PureComponent< const List = this.props.legacyImplementation ? MetroListView : VirtualizedSectionList; + /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.66 was deployed. To see the error delete this + * comment and run Flow. */ return ; } diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 7ca090e88e1809..f40b44e404c4f6 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -52,7 +52,9 @@ type ViewabilityHelperCallbackTuple = { }; type RequiredProps = { - renderItem: renderItemType, + // TODO: Conflicts with the optional `renderItem` in + // `VirtualizedSectionList`'s props. + renderItem: $FlowFixMe, /** * The default accessor functions assume this is an Array<{key: string}> but you can override * getItem, getItemCount, and keyExtractor to handle any type of index-based data. diff --git a/Libraries/ReactNative/requireNativeComponent.js b/Libraries/ReactNative/requireNativeComponent.js index c4320c0a84b998..2a6c7c8ca71e8d 100644 --- a/Libraries/ReactNative/requireNativeComponent.js +++ b/Libraries/ReactNative/requireNativeComponent.js @@ -23,9 +23,6 @@ const processColor = require('processColor'); const resolveAssetSource = require('resolveAssetSource'); const sizesDiffer = require('sizesDiffer'); const verifyPropTypes = require('verifyPropTypes'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const invariant = require('fbjs/lib/invariant'); const warning = require('fbjs/lib/warning'); diff --git a/RNTester/js/CameraRollView.js b/RNTester/js/CameraRollView.js index fc1f063b2560c1..f69a4feed65fcb 100644 --- a/RNTester/js/CameraRollView.js +++ b/RNTester/js/CameraRollView.js @@ -72,7 +72,6 @@ var propTypes = { var CameraRollView = createReactClass({ displayName: 'CameraRollView', - // $FlowFixMe(>=0.41.0) propTypes: propTypes, getDefaultProps: function(): Object { diff --git a/jest/preprocessor.js b/jest/preprocessor.js index 6bc4dc9c531d1e..05b87ad5860015 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -11,9 +11,6 @@ 'use strict'; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const babel = require('babel-core'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error * found when Flow v0.54 was deployed. To see the error delete this comment and @@ -33,9 +30,6 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]); babelRegisterOnly([]); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const transformer = require('metro/src/transformer.js'); module.exports = { process(src/*: string*/, file/*: string*/) { diff --git a/local-cli/__tests__/fs-mock-test.js b/local-cli/__tests__/fs-mock-test.js index 46a3a9f96c9406..4928f3bd9ecf23 100644 --- a/local-cli/__tests__/fs-mock-test.js +++ b/local-cli/__tests__/fs-mock-test.js @@ -30,16 +30,10 @@ describe('fs mock', () => { it('stores content correctly', () => { fs.writeFileSync('/test', 'foobar', 'utf8'); const content = fs.readFileSync('/test', 'utf8'); - /* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an - * error found when Flow v0.56 was deployed. To see the error delete this - * comment and run Flow. */ expect(content).toEqual('foobar'); }); it('fails on missing path', () => { - /* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an - * error found when Flow v0.56 was deployed. To see the error delete this - * comment and run Flow. */ expect(() => fs.writeFileSync('/dir/test', 'foobar', 'utf8'), ).toThrowError('ENOENT: no such file or directory'); @@ -57,9 +51,6 @@ describe('fs mock', () => { fs.mkdirSync('/dir', 0o777); fs.writeFileSync('/dir/test', 'foobar', 'utf8'); const content = fs.readFileSync('/dir/test', 'utf8'); - /* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an - * error found when Flow v0.56 was deployed. To see the error delete this - * comment and run Flow. */ expect(content).toEqual('foobar'); }); @@ -68,9 +59,6 @@ describe('fs mock', () => { fs.writeFileSync('/dir/test', 'foobar', 'utf8'); fs.mkdirSync('/dir', 0o777); const content = fs.readFileSync('/dir/test', 'utf8'); - /* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an - * error found when Flow v0.56 was deployed. To see the error delete this - * comment and run Flow. */ expect(content).toEqual('foobar'); }); }); diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 0d1ea067998002..524c1ac84eabf8 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -10,24 +10,12 @@ 'use strict'; const log = require('../util/log').out('bundle'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const Server = require('metro/src/Server'); const {Terminal} = require('metro-core'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const TerminalReporter = require('metro/src/lib/TerminalReporter'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const TransformCaching = require('metro/src/lib/TransformCaching'); const {defaults} = require('metro'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const outputBundle = require('metro/src/shared/output/bundle'); const path = require('path'); const saveAssets = require('./saveAssets'); @@ -40,9 +28,6 @@ import type {ConfigT} from 'metro'; const defaultAssetExts = defaults.assetExts; const defaultSourceExts = defaults.sourceExts; const defaultPlatforms = defaults.platforms; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const defaultProvidesModuleNodeModules = defaults.providesModuleNodeModules; async function buildBundle( diff --git a/local-cli/bundle/types.flow.js b/local-cli/bundle/types.flow.js index 5c164d1ad2cf7c..4008030640d068 100644 --- a/local-cli/bundle/types.flow.js +++ b/local-cli/bundle/types.flow.js @@ -8,7 +8,4 @@ */ 'use strict'; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ export type {OutputOptions, RequestOptions} from 'metro/src/shared/types.flow'; diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 870652fc956ddc..4c821465d2248b 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -25,9 +25,6 @@ const copyToClipBoardMiddleware = require('./middleware/copyToClipBoardMiddlewar const defaultAssetExts = Metro.defaults.assetExts; const defaultSourceExts = Metro.defaults.sourceExts; const defaultPlatforms = Metro.defaults.platforms; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const defaultProvidesModuleNodeModules = Metro.defaults.providesModuleNodeModules; const errorhandler = require('errorhandler'); @@ -46,17 +43,11 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js'); const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js'); const webSocketProxy = require('./util/webSocketProxy.js'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const TransformCaching = require('metro/src/lib/TransformCaching'); const {ASSET_REGISTRY_PATH} = require('../core/Constants'); import type {ConfigT} from 'metro'; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ import type {Reporter} from 'metro/src/lib/reporting'; export type Args = {| diff --git a/local-cli/templates/HelloWorld/_flowconfig b/local-cli/templates/HelloWorld/_flowconfig index 10cb8d509a45a8..080b459b22fd77 100644 --- a/local-cli/templates/HelloWorld/_flowconfig +++ b/local-cli/templates/HelloWorld/_flowconfig @@ -51,4 +51,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.65.0 +^0.66.0 diff --git a/package.json b/package.json index f57e73a70e80b0..db9bd84bfa8df4 100644 --- a/package.json +++ b/package.json @@ -214,7 +214,7 @@ "eslint-plugin-jest": "21.8.0", "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.6.1", - "flow-bin": "^0.65.0", + "flow-bin": "^0.66.0", "jest": "22.3.0", "jest-junit": "3.6.0", "prettier": "1.9.1", From 54dc11a5fbafaccc9c0a781f1151225909717597 Mon Sep 17 00:00:00 2001 From: Tadeu Valentt Date: Fri, 16 Feb 2018 20:39:27 -0800 Subject: [PATCH 055/267] Fix #17610, Add fixtures to metro blacklist Summary: Include a default blacklist into the build settings to prevent processing of incorrect fixture files by Metro. Fix #17610 issue, preventing metro from processing fixture files 1. Have a working demo 2. Install https://github.com/oblador/react-native-vector-icons 3. Use in a component 4. Start the app 5. The app starts successfully and display the icons [ GENERAL ] [ BUGFIX ] [local-cli/util/Config.js] - Add default file blacklist Closes https://github.com/facebook/react-native/pull/17672 Differential Revision: D7014627 Pulled By: hramos fbshipit-source-id: 20974e6fdd0977eeeb1048c29c9d621c803c26e9 --- local-cli/util/Config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/local-cli/util/Config.js b/local-cli/util/Config.js index ac7e3bf2cef038..9fc4487fe83ee8 100644 --- a/local-cli/util/Config.js +++ b/local-cli/util/Config.js @@ -15,7 +15,7 @@ const getPolyfills = require('../../rn-get-polyfills'); const invariant = require('fbjs/lib/invariant'); const path = require('path'); -const {Config: MetroConfig} = require('metro'); +const {Config: MetroConfig, createBlacklist} = require('metro'); const RN_CLI_CONFIG = 'rn-cli.config.js'; @@ -54,6 +54,10 @@ const getProjectRoots = () => { return resolveSymlinksForRoots([getProjectPath()]); }; +const getBlacklistRE = () => { + return createBlacklist([/.*\/__fixtures__\/.*/]); +}; + /** * Module capable of getting the configuration out of a given file. * @@ -65,6 +69,7 @@ const getProjectRoots = () => { const Config = { DEFAULT: ({ ...MetroConfig.DEFAULT, + getBlacklistRE, getProjectRoots, getPolyfills, getModulesRunBeforeMainModule: () => [ From 4454fdc219a7ea9e45c126a776d9fe07658328e6 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Mon, 19 Feb 2018 10:29:01 -0800 Subject: [PATCH 056/267] fix Flow typing for OSS Summary: Add ignores for these requires, some of them mistakenly removed by https://github.com/facebook/react-native/commit/da3424c929220304ff01032a9bf473fb251375f1. ``` yarn flow ``` CircleCI should be green again. Closes https://github.com/facebook/react-native/pull/18021 Differential Revision: D7025304 Pulled By: jeanlauliac fbshipit-source-id: 731232093ae3ab39b3eff6fb2004ff4e7090d5ae --- jest/preprocessor.js | 1 + local-cli/bundle/buildBundle.js | 4 ++++ local-cli/bundle/types.flow.js | 1 + local-cli/server/runServer.js | 3 +++ 4 files changed, 9 insertions(+) diff --git a/jest/preprocessor.js b/jest/preprocessor.js index 05b87ad5860015..e6a897f8e02abc 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -30,6 +30,7 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]); babelRegisterOnly([]); +/* $FlowFixMe(site=react_native_oss) */ const transformer = require('metro/src/transformer.js'); module.exports = { process(src/*: string*/, file/*: string*/) { diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 524c1ac84eabf8..66fad891ae77f8 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -10,12 +10,16 @@ 'use strict'; const log = require('../util/log').out('bundle'); +/* $FlowFixMe(site=react_native_oss) */ const Server = require('metro/src/Server'); const {Terminal} = require('metro-core'); +/* $FlowFixMe(site=react_native_oss) */ const TerminalReporter = require('metro/src/lib/TerminalReporter'); +/* $FlowFixMe(site=react_native_oss) */ const TransformCaching = require('metro/src/lib/TransformCaching'); const {defaults} = require('metro'); +/* $FlowFixMe(site=react_native_oss) */ const outputBundle = require('metro/src/shared/output/bundle'); const path = require('path'); const saveAssets = require('./saveAssets'); diff --git a/local-cli/bundle/types.flow.js b/local-cli/bundle/types.flow.js index 4008030640d068..ecf86af407ee6b 100644 --- a/local-cli/bundle/types.flow.js +++ b/local-cli/bundle/types.flow.js @@ -8,4 +8,5 @@ */ 'use strict'; +/* $FlowFixMe(site=react_native_oss) */ export type {OutputOptions, RequestOptions} from 'metro/src/shared/types.flow'; diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 4c821465d2248b..396c57ce6741b7 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -43,11 +43,14 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js'); const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js'); const webSocketProxy = require('./util/webSocketProxy.js'); +/* $FlowFixMe(site=react_native_oss) */ const TransformCaching = require('metro/src/lib/TransformCaching'); const {ASSET_REGISTRY_PATH} = require('../core/Constants'); +/* $FlowFixMe(site=react_native_oss) */ import type {ConfigT} from 'metro'; +/* $FlowFixMe(site=react_native_oss) */ import type {Reporter} from 'metro/src/lib/reporting'; export type Args = {| From 973ef9728cd196f6853c24449af28569fa592462 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 19 Feb 2018 22:30:36 -0800 Subject: [PATCH 057/267] RN: Remove React Stack Systrace Logic Reviewed By: sophiebits Differential Revision: D7027263 fbshipit-source-id: f4eb3fab402eda337f464e4ebb0771202a9b93f2 --- Libraries/Core/InitializeCore.js | 2 +- Libraries/Performance/Systrace.js | 61 +++---------------------------- 2 files changed, 6 insertions(+), 57 deletions(-) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 3e6ebb680732bb..e2a624e468ab51 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -54,7 +54,7 @@ if (!global.process.env.NODE_ENV) { // Setup the Systrace profiling hooks if necessary if (global.__RCTProfileIsProfiling) { const Systrace = require('Systrace'); - Systrace.installReactHook(true); + Systrace.installReactHook(); Systrace.setEnabled(true); } diff --git a/Libraries/Performance/Systrace.js b/Libraries/Performance/Systrace.js index 002c12f34fa7b4..1abedee7c1734b 100644 --- a/Libraries/Performance/Systrace.js +++ b/Libraries/Performance/Systrace.js @@ -32,7 +32,6 @@ let _asyncCookie = 0; const _markStack = []; let _markStackIndex = -1; let _canInstallReactHook = false; -let _useFiber = false; // Implements a subset of User Timing API necessary for React measurements. // https://developer.mozilla.org/en-US/docs/Web/API/User_Timing_API @@ -98,54 +97,13 @@ const userTimingPolyfill = __DEV__ ? { }, } : null; -// A hook to get React Stack markers in Systrace. -const reactDebugToolHook = __DEV__ ? { - onBeforeMountComponent(debugID) { - const ReactComponentTreeHook = require('ReactGlobalSharedState').ReactComponentTreeHook; - const displayName = ReactComponentTreeHook.getDisplayName(debugID); - Systrace.beginEvent(`ReactReconciler.mountComponent(${displayName})`); - }, - onMountComponent(debugID) { - Systrace.endEvent(); - }, - onBeforeUpdateComponent(debugID) { - const ReactComponentTreeHook = require('ReactGlobalSharedState').ReactComponentTreeHook; - const displayName = ReactComponentTreeHook.getDisplayName(debugID); - Systrace.beginEvent(`ReactReconciler.updateComponent(${displayName})`); - }, - onUpdateComponent(debugID) { - Systrace.endEvent(); - }, - onBeforeUnmountComponent(debugID) { - const ReactComponentTreeHook = require('ReactGlobalSharedState').ReactComponentTreeHook; - const displayName = ReactComponentTreeHook.getDisplayName(debugID); - Systrace.beginEvent(`ReactReconciler.unmountComponent(${displayName})`); - }, - onUnmountComponent(debugID) { - Systrace.endEvent(); - }, - onBeginLifeCycleTimer(debugID, timerType) { - const ReactComponentTreeHook = require('ReactGlobalSharedState').ReactComponentTreeHook; - const displayName = ReactComponentTreeHook.getDisplayName(debugID); - Systrace.beginEvent(`${displayName}.${timerType}()`); - }, - onEndLifeCycleTimer(debugID, timerType) { - Systrace.endEvent(); - }, -} : null; - const Systrace = { - installReactHook(useFiber: boolean) { + installReactHook() { if (_enabled) { if (__DEV__) { - if (useFiber) { - global.performance = userTimingPolyfill; - } else { - require('ReactDebugTool').addHook(reactDebugToolHook); - } + global.performance = userTimingPolyfill; } } - _useFiber = useFiber; _canInstallReactHook = true; }, @@ -158,17 +116,8 @@ const Systrace = { global.nativeTraceEndLegacy && global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS); } if (_canInstallReactHook) { - if (_useFiber) { - if (enabled && global.performance === undefined) { - global.performance = userTimingPolyfill; - } - } else { - const ReactDebugTool = require('ReactDebugTool'); - if (enabled) { - ReactDebugTool.addHook(reactDebugToolHook); - } else { - ReactDebugTool.removeHook(reactDebugToolHook); - } + if (enabled && global.performance === undefined) { + global.performance = userTimingPolyfill; } } } @@ -240,7 +189,7 @@ const Systrace = { attachToRelayProfiler(relayProfiler: RelayProfiler) { relayProfiler.attachProfileHandler('*', (name, state?) => { if (state != null && state.queryName !== undefined) { - name += '_' + state.queryName + name += '_' + state.queryName; } const cookie = Systrace.beginAsyncEvent(name); return () => { From b9991d33e323f59af4071cb2c42ed411d89354b3 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 20 Feb 2018 05:41:48 -0800 Subject: [PATCH 058/267] Move YGStyle to seperate file and add constructors Reviewed By: emilsjolander Differential Revision: D7016575 fbshipit-source-id: eb28df0ffb4cc813b23edaff80d7d4ebc56ce6af --- React/React.xcodeproj/project.pbxproj | 12 ++ ReactCommon/yoga/yoga/YGNode.cpp | 2 +- ReactCommon/yoga/yoga/YGNode.h | 2 +- ReactCommon/yoga/yoga/YGStyle.cpp | 78 ++++++++++++ ReactCommon/yoga/yoga/YGStyle.h | 43 +++++++ ReactCommon/yoga/yoga/Yoga-internal.h | 170 +++----------------------- scripts/.packager.env | 1 + 7 files changed, 153 insertions(+), 155 deletions(-) create mode 100644 ReactCommon/yoga/yoga/YGStyle.cpp create mode 100644 ReactCommon/yoga/yoga/YGStyle.h create mode 100644 scripts/.packager.env diff --git a/React/React.xcodeproj/project.pbxproj b/React/React.xcodeproj/project.pbxproj index 4d9c41ed13d0a8..539f62fc672662 100644 --- a/React/React.xcodeproj/project.pbxproj +++ b/React/React.xcodeproj/project.pbxproj @@ -952,6 +952,10 @@ 3DFE0D1C1DF8575800459392 /* Yoga.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 130A77081DF767AF001F9587 /* Yoga.h */; }; 3EDCA8A51D3591E700450C31 /* RCTErrorInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */; }; 5335D5411FE81A4700883D58 /* RCTShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5335D5401FE81A4700883D58 /* RCTShadowView.m */; }; + 5352C5752038FF9500A3B97E /* YGStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5352C5722038FF8D00A3B97E /* YGStyle.cpp */; }; + 5352C5762038FF9700A3B97E /* YGStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5352C5722038FF8D00A3B97E /* YGStyle.cpp */; }; + 5352C5772038FF9A00A3B97E /* YGStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5352C5712038FF8D00A3B97E /* YGStyle.h */; }; + 5352C5782038FF9B00A3B97E /* YGStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5352C5712038FF8D00A3B97E /* YGStyle.h */; }; 53756E3B2004FFFA00FBBD99 /* Utils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 53756E372004FFF700FBBD99 /* Utils.cpp */; }; 53756E3C2004FFFC00FBBD99 /* Utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 53756E382004FFF700FBBD99 /* Utils.h */; }; 53756E3D2004FFFE00FBBD99 /* Utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 53756E382004FFF700FBBD99 /* Utils.h */; }; @@ -2144,6 +2148,8 @@ 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorInfo.h; sourceTree = ""; }; 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTErrorInfo.m; sourceTree = ""; }; 5335D5401FE81A4700883D58 /* RCTShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowView.m; sourceTree = ""; }; + 5352C5712038FF8D00A3B97E /* YGStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGStyle.h; sourceTree = ""; }; + 5352C5722038FF8D00A3B97E /* YGStyle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = YGStyle.cpp; sourceTree = ""; }; 53756E372004FFF700FBBD99 /* Utils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Utils.cpp; sourceTree = ""; }; 53756E382004FFF700FBBD99 /* Utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Utils.h; sourceTree = ""; }; 5376C5E01FC6DDB20083513D /* YGNodePrint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGNodePrint.h; sourceTree = ""; }; @@ -2332,6 +2338,8 @@ 130A77021DF767AF001F9587 /* yoga */ = { isa = PBXGroup; children = ( + 5352C5722038FF8D00A3B97E /* YGStyle.cpp */, + 5352C5712038FF8D00A3B97E /* YGStyle.h */, 53756E372004FFF700FBBD99 /* Utils.cpp */, 53756E382004FFF700FBBD99 /* Utils.h */, 53EC85DF1FDEC75A0051B2B5 /* YGNode.cpp */, @@ -3268,6 +3276,7 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 5352C5782038FF9B00A3B97E /* YGStyle.h in Headers */, 53EC85E41FDEC7630051B2B5 /* YGNode.h in Headers */, 53D1239F1FBF1EFB001B8A10 /* Yoga-internal.h in Headers */, 3DFE0D161DF8574D00459392 /* YGEnums.h in Headers */, @@ -3346,6 +3355,7 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 5352C5772038FF9A00A3B97E /* YGStyle.h in Headers */, 53EC85E51FDEC7630051B2B5 /* YGNode.h in Headers */, 53D1239E1FBF1EFB001B8A10 /* Yoga-internal.h in Headers */, 133957881DF76D3500EC27BE /* YGEnums.h in Headers */, @@ -4292,6 +4302,7 @@ buildActionMask = 2147483647; files = ( 53D123A01FBF1EFF001B8A10 /* Yoga.cpp in Sources */, + 5352C5752038FF9500A3B97E /* YGStyle.cpp in Sources */, 53EC85E21FDEC75F0051B2B5 /* YGNode.cpp in Sources */, 53D1239A1FBF1EF2001B8A10 /* YGEnums.cpp in Sources */, 53756E3B2004FFFA00FBBD99 /* Utils.cpp in Sources */, @@ -4304,6 +4315,7 @@ buildActionMask = 2147483647; files = ( 53D123A11FBF1EFF001B8A10 /* Yoga.cpp in Sources */, + 5352C5762038FF9700A3B97E /* YGStyle.cpp in Sources */, 53EC85E31FDEC75F0051B2B5 /* YGNode.cpp in Sources */, 53D1239B1FBF1EF4001B8A10 /* YGEnums.cpp in Sources */, 53756E3E2005000300FBBD99 /* Utils.cpp in Sources */, diff --git a/ReactCommon/yoga/yoga/YGNode.cpp b/ReactCommon/yoga/yoga/YGNode.cpp index 56ce1b4928c9d1..24a00a883f7053 100644 --- a/ReactCommon/yoga/yoga/YGNode.cpp +++ b/ReactCommon/yoga/yoga/YGNode.cpp @@ -382,7 +382,7 @@ YGNode::YGNode() measure_(nullptr), baseline_(nullptr), dirtied_(nullptr), - style_(gYGNodeStyleDefaults), + style_(YGStyle()), layout_(gYGNodeLayoutDefaults), lineIndex_(0), parent_(nullptr), diff --git a/ReactCommon/yoga/yoga/YGNode.h b/ReactCommon/yoga/yoga/YGNode.h index b3e31256961bf3..452b8f31065036 100644 --- a/ReactCommon/yoga/yoga/YGNode.h +++ b/ReactCommon/yoga/yoga/YGNode.h @@ -7,7 +7,7 @@ #pragma once #include - +#include "YGStyle.h" #include "Yoga-internal.h" struct YGNode { diff --git a/ReactCommon/yoga/yoga/YGStyle.cpp b/ReactCommon/yoga/yoga/YGStyle.cpp new file mode 100644 index 00000000000000..516ce061818af6 --- /dev/null +++ b/ReactCommon/yoga/yoga/YGStyle.cpp @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2014-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. + */ +#include "YGStyle.h" + +YGStyle::YGStyle() + : direction(YGDirectionInherit), + flexDirection(YGFlexDirectionColumn), + justifyContent(YGJustifyFlexStart), + alignContent(YGAlignFlexStart), + alignItems(YGAlignStretch), + alignSelf(YGAlignAuto), + positionType(YGPositionTypeRelative), + flexWrap(YGWrapNoWrap), + overflow(YGOverflowVisible), + display(YGDisplayFlex), + flex(YGUndefined), + flexGrow(YGUndefined), + flexShrink(YGUndefined), + flexBasis(kYGValueAuto), + margin(kYGDefaultEdgeValuesUnit), + position(kYGDefaultEdgeValuesUnit), + padding(kYGDefaultEdgeValuesUnit), + border(kYGDefaultEdgeValuesUnit), + dimensions(kYGDefaultDimensionValuesAutoUnit), + minDimensions(kYGDefaultDimensionValuesUnit), + maxDimensions(kYGDefaultDimensionValuesUnit), + aspectRatio(YGUndefined) {} + +// Yoga specific properties, not compatible with flexbox specification +bool YGStyle::operator==(const YGStyle& style) { + bool areNonFloatValuesEqual = direction == style.direction && + flexDirection == style.flexDirection && + justifyContent == style.justifyContent && + alignContent == style.alignContent && alignItems == style.alignItems && + alignSelf == style.alignSelf && positionType == style.positionType && + flexWrap == style.flexWrap && overflow == style.overflow && + display == style.display && YGValueEqual(flexBasis, style.flexBasis) && + YGValueArrayEqual(margin, style.margin) && + YGValueArrayEqual(position, style.position) && + YGValueArrayEqual(padding, style.padding) && + YGValueArrayEqual(border, style.border) && + YGValueArrayEqual(dimensions, style.dimensions) && + YGValueArrayEqual(minDimensions, style.minDimensions) && + YGValueArrayEqual(maxDimensions, style.maxDimensions); + + if (!(std::isnan(flex) && std::isnan(style.flex))) { + areNonFloatValuesEqual = areNonFloatValuesEqual && flex == style.flex; + } + + if (!(std::isnan(flexGrow) && std::isnan(style.flexGrow))) { + areNonFloatValuesEqual = + areNonFloatValuesEqual && flexGrow == style.flexGrow; + } + + if (!(std::isnan(flexShrink) && std::isnan(style.flexShrink))) { + areNonFloatValuesEqual = + areNonFloatValuesEqual && flexShrink == style.flexShrink; + } + + if (!(std::isnan(aspectRatio) && std::isnan(style.aspectRatio))) { + areNonFloatValuesEqual = + areNonFloatValuesEqual && aspectRatio == style.aspectRatio; + } + + return areNonFloatValuesEqual; +} + +bool YGStyle::operator!=(YGStyle style) { + return !(*this == style); +} + +YGStyle::~YGStyle() {} diff --git a/ReactCommon/yoga/yoga/YGStyle.h b/ReactCommon/yoga/yoga/YGStyle.h new file mode 100644 index 00000000000000..a95b4a297e7667 --- /dev/null +++ b/ReactCommon/yoga/yoga/YGStyle.h @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2014-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. + */ +#pragma once +#include "Yoga-internal.h" +#include "Yoga.h" + +struct YGStyle { + YGDirection direction; + YGFlexDirection flexDirection; + YGJustify justifyContent; + YGAlign alignContent; + YGAlign alignItems; + YGAlign alignSelf; + YGPositionType positionType; + YGWrap flexWrap; + YGOverflow overflow; + YGDisplay display; + float flex; + float flexGrow; + float flexShrink; + YGValue flexBasis; + std::array margin; + std::array position; + std::array padding; + std::array border; + std::array dimensions; + std::array minDimensions; + std::array maxDimensions; + float aspectRatio; + + YGStyle(); + // Yoga specific properties, not compatible with flexbox specification + bool operator==(const YGStyle& style); + + bool operator!=(YGStyle style); + ~YGStyle(); +}; diff --git a/ReactCommon/yoga/yoga/Yoga-internal.h b/ReactCommon/yoga/yoga/Yoga-internal.h index 6432e6cfcc08e0..b1bb0de3ded6e4 100644 --- a/ReactCommon/yoga/yoga/Yoga-internal.h +++ b/ReactCommon/yoga/yoga/Yoga-internal.h @@ -10,7 +10,6 @@ #include #include #include - #include "Yoga.h" using YGVector = std::vector; @@ -42,6 +41,23 @@ bool YGValueArrayEqual( return areEqual; } +const YGValue kYGValueUndefined = {YGUndefined, YGUnitUndefined}; +const YGValue kYGValueAuto = {YGUndefined, YGUnitAuto}; +const std::array kYGDefaultEdgeValuesUnit = { + {kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined}}; +const std::array kYGDefaultDimensionValuesAutoUnit = { + {kYGValueAuto, kYGValueAuto}}; +const std::array kYGDefaultDimensionValuesUnit = { + {kYGValueUndefined, kYGValueUndefined}}; + struct YGCachedMeasurement { float availableWidth; float availableHeight; @@ -141,74 +157,6 @@ struct YGLayout { } }; -struct YGStyle { - YGDirection direction; - YGFlexDirection flexDirection; - YGJustify justifyContent; - YGAlign alignContent; - YGAlign alignItems; - YGAlign alignSelf; - YGPositionType positionType; - YGWrap flexWrap; - YGOverflow overflow; - YGDisplay display; - float flex; - float flexGrow; - float flexShrink; - YGValue flexBasis; - std::array margin; - std::array position; - std::array padding; - std::array border; - std::array dimensions; - std::array minDimensions; - std::array maxDimensions; - - // Yoga specific properties, not compatible with flexbox specification - float aspectRatio; - bool operator==(YGStyle style) { - bool areNonFloatValuesEqual = direction == style.direction && - flexDirection == style.flexDirection && - justifyContent == style.justifyContent && - alignContent == style.alignContent && alignItems == style.alignItems && - alignSelf == style.alignSelf && positionType == style.positionType && - flexWrap == style.flexWrap && overflow == style.overflow && - display == style.display && YGValueEqual(flexBasis, style.flexBasis) && - YGValueArrayEqual(margin, style.margin) && - YGValueArrayEqual(position, style.position) && - YGValueArrayEqual(padding, style.padding) && - YGValueArrayEqual(border, style.border) && - YGValueArrayEqual(dimensions, style.dimensions) && - YGValueArrayEqual(minDimensions, style.minDimensions) && - YGValueArrayEqual(maxDimensions, style.maxDimensions); - - if (!(std::isnan(flex) && std::isnan(style.flex))) { - areNonFloatValuesEqual = areNonFloatValuesEqual && flex == style.flex; - } - - if (!(std::isnan(flexGrow) && std::isnan(style.flexGrow))) { - areNonFloatValuesEqual = - areNonFloatValuesEqual && flexGrow == style.flexGrow; - } - - if (!(std::isnan(flexShrink) && std::isnan(style.flexShrink))) { - areNonFloatValuesEqual = - areNonFloatValuesEqual && flexShrink == style.flexShrink; - } - - if (!(std::isnan(aspectRatio) && std::isnan(style.aspectRatio))) { - areNonFloatValuesEqual = - areNonFloatValuesEqual && aspectRatio == style.aspectRatio; - } - - return areNonFloatValuesEqual; - } - - bool operator!=(YGStyle style) { - return !(*this == style); - } -}; - struct YGConfig { bool experimentalFeatures[YGExperimentalFeatureCount + 1]; bool useWebDefaults; @@ -220,94 +168,10 @@ struct YGConfig { void* context; }; -#define YG_UNDEFINED_VALUES \ - { .value = YGUndefined, .unit = YGUnitUndefined } - -#define YG_AUTO_VALUES \ - { .value = YGUndefined, .unit = YGUnitAuto } - -#define YG_DEFAULT_EDGE_VALUES_UNIT \ - { \ - [YGEdgeLeft] = YG_UNDEFINED_VALUES, [YGEdgeTop] = YG_UNDEFINED_VALUES, \ - [YGEdgeRight] = YG_UNDEFINED_VALUES, [YGEdgeBottom] = YG_UNDEFINED_VALUES, \ - [YGEdgeStart] = YG_UNDEFINED_VALUES, [YGEdgeEnd] = YG_UNDEFINED_VALUES, \ - [YGEdgeHorizontal] = YG_UNDEFINED_VALUES, \ - [YGEdgeVertical] = YG_UNDEFINED_VALUES, [YGEdgeAll] = YG_UNDEFINED_VALUES, \ - } - -#define YG_DEFAULT_DIMENSION_VALUES \ - { [YGDimensionWidth] = YGUndefined, [YGDimensionHeight] = YGUndefined, } - -#define YG_DEFAULT_DIMENSION_VALUES_UNIT \ - { \ - [YGDimensionWidth] = YG_UNDEFINED_VALUES, \ - [YGDimensionHeight] = YG_UNDEFINED_VALUES, \ - } - -#define YG_DEFAULT_DIMENSION_VALUES_AUTO_UNIT \ - { [YGDimensionWidth] = YG_AUTO_VALUES, [YGDimensionHeight] = YG_AUTO_VALUES, } - static const float kDefaultFlexGrow = 0.0f; static const float kDefaultFlexShrink = 0.0f; static const float kWebDefaultFlexShrink = 1.0f; -static const YGStyle gYGNodeStyleDefaults = { - .direction = YGDirectionInherit, - .flexDirection = YGFlexDirectionColumn, - .justifyContent = YGJustifyFlexStart, - .alignContent = YGAlignFlexStart, - .alignItems = YGAlignStretch, - .alignSelf = YGAlignAuto, - .positionType = YGPositionTypeRelative, - .flexWrap = YGWrapNoWrap, - .overflow = YGOverflowVisible, - .display = YGDisplayFlex, - .flex = YGUndefined, - .flexGrow = YGUndefined, - .flexShrink = YGUndefined, - .flexBasis = YG_AUTO_VALUES, - .margin = {{YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES}}, - .position = {{YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES}}, - .padding = {{YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES}}, - .border = {{YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES, - YG_UNDEFINED_VALUES}}, - .dimensions = {{YG_AUTO_VALUES, YG_AUTO_VALUES}}, - .minDimensions = {{YG_UNDEFINED_VALUES, YG_UNDEFINED_VALUES}}, - .maxDimensions = {{YG_UNDEFINED_VALUES, YG_UNDEFINED_VALUES}}, - .aspectRatio = YGUndefined, -}; - static const YGLayout gYGNodeLayoutDefaults = { .position = {}, .dimensions = {{YGUndefined, YGUndefined}}, diff --git a/scripts/.packager.env b/scripts/.packager.env new file mode 100644 index 00000000000000..361f5fb47d34ac --- /dev/null +++ b/scripts/.packager.env @@ -0,0 +1 @@ +export RCT_METRO_PORT=8081 From c75ce8146f9366b9d1ea7cdc6fc73c87fb518430 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 20 Feb 2018 05:41:50 -0800 Subject: [PATCH 059/267] Add constructor in YGLayout Reviewed By: emilsjolander Differential Revision: D7019653 fbshipit-source-id: 5a2655626db0915fcebe7d4517e2d0b2e2484460 --- React/React.xcodeproj/project.pbxproj | 12 +++ ReactCommon/yoga/yoga/YGLayout.cpp | 73 ++++++++++++++++++ ReactCommon/yoga/yoga/YGLayout.h | 42 ++++++++++ ReactCommon/yoga/yoga/YGNode.cpp | 2 +- ReactCommon/yoga/yoga/YGNode.h | 1 + ReactCommon/yoga/yoga/YGStyle.cpp | 21 +++++ ReactCommon/yoga/yoga/Yoga-internal.h | 107 -------------------------- 7 files changed, 150 insertions(+), 108 deletions(-) create mode 100644 ReactCommon/yoga/yoga/YGLayout.cpp create mode 100644 ReactCommon/yoga/yoga/YGLayout.h diff --git a/React/React.xcodeproj/project.pbxproj b/React/React.xcodeproj/project.pbxproj index 539f62fc672662..0f79353b3f2dea 100644 --- a/React/React.xcodeproj/project.pbxproj +++ b/React/React.xcodeproj/project.pbxproj @@ -952,6 +952,10 @@ 3DFE0D1C1DF8575800459392 /* Yoga.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 130A77081DF767AF001F9587 /* Yoga.h */; }; 3EDCA8A51D3591E700450C31 /* RCTErrorInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */; }; 5335D5411FE81A4700883D58 /* RCTShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5335D5401FE81A4700883D58 /* RCTShadowView.m */; }; + 53438962203905BB008E0CB3 /* YGLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5343895E203905B6008E0CB3 /* YGLayout.cpp */; }; + 53438963203905BC008E0CB3 /* YGLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5343895E203905B6008E0CB3 /* YGLayout.cpp */; }; + 53438964203905BF008E0CB3 /* YGLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5343895F203905B6008E0CB3 /* YGLayout.h */; }; + 53438965203905C0008E0CB3 /* YGLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 5343895F203905B6008E0CB3 /* YGLayout.h */; }; 5352C5752038FF9500A3B97E /* YGStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5352C5722038FF8D00A3B97E /* YGStyle.cpp */; }; 5352C5762038FF9700A3B97E /* YGStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5352C5722038FF8D00A3B97E /* YGStyle.cpp */; }; 5352C5772038FF9A00A3B97E /* YGStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5352C5712038FF8D00A3B97E /* YGStyle.h */; }; @@ -2148,6 +2152,8 @@ 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorInfo.h; sourceTree = ""; }; 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTErrorInfo.m; sourceTree = ""; }; 5335D5401FE81A4700883D58 /* RCTShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowView.m; sourceTree = ""; }; + 5343895E203905B6008E0CB3 /* YGLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = YGLayout.cpp; sourceTree = ""; }; + 5343895F203905B6008E0CB3 /* YGLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGLayout.h; sourceTree = ""; }; 5352C5712038FF8D00A3B97E /* YGStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGStyle.h; sourceTree = ""; }; 5352C5722038FF8D00A3B97E /* YGStyle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = YGStyle.cpp; sourceTree = ""; }; 53756E372004FFF700FBBD99 /* Utils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Utils.cpp; sourceTree = ""; }; @@ -2338,6 +2344,8 @@ 130A77021DF767AF001F9587 /* yoga */ = { isa = PBXGroup; children = ( + 5343895E203905B6008E0CB3 /* YGLayout.cpp */, + 5343895F203905B6008E0CB3 /* YGLayout.h */, 5352C5722038FF8D00A3B97E /* YGStyle.cpp */, 5352C5712038FF8D00A3B97E /* YGStyle.h */, 53756E372004FFF700FBBD99 /* Utils.cpp */, @@ -3284,6 +3292,7 @@ 53756E3D2004FFFE00FBBD99 /* Utils.h in Headers */, 5376C5E71FC6DDC20083513D /* YGNodePrint.h in Headers */, 3DFE0D191DF8574D00459392 /* Yoga.h in Headers */, + 53438965203905C0008E0CB3 /* YGLayout.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3363,6 +3372,7 @@ 53756E3C2004FFFC00FBBD99 /* Utils.h in Headers */, 5376C5E61FC6DDC10083513D /* YGNodePrint.h in Headers */, 133957891DF76D3500EC27BE /* YGMacros.h in Headers */, + 53438964203905BF008E0CB3 /* YGLayout.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4306,6 +4316,7 @@ 53EC85E21FDEC75F0051B2B5 /* YGNode.cpp in Sources */, 53D1239A1FBF1EF2001B8A10 /* YGEnums.cpp in Sources */, 53756E3B2004FFFA00FBBD99 /* Utils.cpp in Sources */, + 53438962203905BB008E0CB3 /* YGLayout.cpp in Sources */, 5376C5E41FC6DDBC0083513D /* YGNodePrint.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -4319,6 +4330,7 @@ 53EC85E31FDEC75F0051B2B5 /* YGNode.cpp in Sources */, 53D1239B1FBF1EF4001B8A10 /* YGEnums.cpp in Sources */, 53756E3E2005000300FBBD99 /* Utils.cpp in Sources */, + 53438963203905BC008E0CB3 /* YGLayout.cpp in Sources */, 5376C5E51FC6DDBD0083513D /* YGNodePrint.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/ReactCommon/yoga/yoga/YGLayout.cpp b/ReactCommon/yoga/yoga/YGLayout.cpp new file mode 100644 index 00000000000000..8f00c0f3ef42bd --- /dev/null +++ b/ReactCommon/yoga/yoga/YGLayout.cpp @@ -0,0 +1,73 @@ +/** + * Copyright (c) 2014-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. + */ +#include "YGLayout.h" + +const std::array kYGDefaultDimensionValues = { + {YGUndefined, YGUndefined}}; + +YGLayout::YGLayout() + : position(), + dimensions(kYGDefaultDimensionValues), + margin(), + border(), + padding(), + direction(YGDirectionInherit), + computedFlexBasisGeneration(0), + computedFlexBasis(YGUndefined), + hadOverflow(false), + generationCount(0), + lastParentDirection((YGDirection)-1), + nextCachedMeasurementsIndex(0), + cachedMeasurements(), + measuredDimensions(kYGDefaultDimensionValues), + cachedLayout({ + .availableWidth = 0, + .availableHeight = 0, + .widthMeasureMode = (YGMeasureMode)-1, + .heightMeasureMode = (YGMeasureMode)-1, + .computedWidth = -1, + .computedHeight = -1, + }), + didUseLegacyFlag(false), + doesLegacyStretchFlagAffectsLayout(false) {} + +bool YGLayout::operator==(YGLayout layout) const { + bool isEqual = position == layout.position && + dimensions == layout.dimensions && margin == layout.margin && + border == layout.border && padding == layout.padding && + direction == layout.direction && hadOverflow == layout.hadOverflow && + lastParentDirection == layout.lastParentDirection && + nextCachedMeasurementsIndex == layout.nextCachedMeasurementsIndex && + cachedLayout == layout.cachedLayout; + + for (uint32_t i = 0; i < YG_MAX_CACHED_RESULT_COUNT && isEqual; ++i) { + isEqual = isEqual && cachedMeasurements[i] == layout.cachedMeasurements[i]; + } + + if (!YGFloatIsUndefined(computedFlexBasis) || + !YGFloatIsUndefined(layout.computedFlexBasis)) { + isEqual = isEqual && (computedFlexBasis == layout.computedFlexBasis); + } + if (!YGFloatIsUndefined(measuredDimensions[0]) || + !YGFloatIsUndefined(layout.measuredDimensions[0])) { + isEqual = + isEqual && (measuredDimensions[0] == layout.measuredDimensions[0]); + } + if (!YGFloatIsUndefined(measuredDimensions[1]) || + !YGFloatIsUndefined(layout.measuredDimensions[1])) { + isEqual = + isEqual && (measuredDimensions[1] == layout.measuredDimensions[1]); + } + + return isEqual; +} + +bool YGLayout::operator!=(YGLayout layout) const { + return !(*this == layout); +} diff --git a/ReactCommon/yoga/yoga/YGLayout.h b/ReactCommon/yoga/yoga/YGLayout.h new file mode 100644 index 00000000000000..125a6d0b03ed0a --- /dev/null +++ b/ReactCommon/yoga/yoga/YGLayout.h @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2014-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. + */ +#pragma once +#include "Yoga-internal.h" + +struct YGLayout { + std::array position; + std::array dimensions; + std::array margin; + std::array border; + std::array padding; + YGDirection direction; + + uint32_t computedFlexBasisGeneration; + float computedFlexBasis; + bool hadOverflow; + + // Instead of recomputing the entire layout every single time, we + // cache some information to break early when nothing changed + uint32_t generationCount; + YGDirection lastParentDirection; + + uint32_t nextCachedMeasurementsIndex; + std::array + cachedMeasurements; + std::array measuredDimensions; + + YGCachedMeasurement cachedLayout; + bool didUseLegacyFlag; + bool doesLegacyStretchFlagAffectsLayout; + + YGLayout(); + + bool operator==(YGLayout layout) const; + bool operator!=(YGLayout layout) const; +}; diff --git a/ReactCommon/yoga/yoga/YGNode.cpp b/ReactCommon/yoga/yoga/YGNode.cpp index 24a00a883f7053..89be5bfe3bb5e0 100644 --- a/ReactCommon/yoga/yoga/YGNode.cpp +++ b/ReactCommon/yoga/yoga/YGNode.cpp @@ -383,7 +383,7 @@ YGNode::YGNode() baseline_(nullptr), dirtied_(nullptr), style_(YGStyle()), - layout_(gYGNodeLayoutDefaults), + layout_(YGLayout()), lineIndex_(0), parent_(nullptr), children_(YGVector()), diff --git a/ReactCommon/yoga/yoga/YGNode.h b/ReactCommon/yoga/yoga/YGNode.h index 452b8f31065036..27a1ed68fac113 100644 --- a/ReactCommon/yoga/yoga/YGNode.h +++ b/ReactCommon/yoga/yoga/YGNode.h @@ -7,6 +7,7 @@ #pragma once #include +#include "YGLayout.h" #include "YGStyle.h" #include "Yoga-internal.h" diff --git a/ReactCommon/yoga/yoga/YGStyle.cpp b/ReactCommon/yoga/yoga/YGStyle.cpp index 516ce061818af6..a73cb3ce6dd6ad 100644 --- a/ReactCommon/yoga/yoga/YGStyle.cpp +++ b/ReactCommon/yoga/yoga/YGStyle.cpp @@ -8,6 +8,27 @@ */ #include "YGStyle.h" +const YGValue kYGValueUndefined = {YGUndefined, YGUnitUndefined}; + +const YGValue kYGValueAuto = {YGUndefined, YGUnitAuto}; + +const std::array kYGDefaultEdgeValuesUnit = { + {kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined, + kYGValueUndefined}}; + +const std::array kYGDefaultDimensionValuesAutoUnit = { + {kYGValueAuto, kYGValueAuto}}; + +const std::array kYGDefaultDimensionValuesUnit = { + {kYGValueUndefined, kYGValueUndefined}}; + YGStyle::YGStyle() : direction(YGDirectionInherit), flexDirection(YGFlexDirectionColumn), diff --git a/ReactCommon/yoga/yoga/Yoga-internal.h b/ReactCommon/yoga/yoga/Yoga-internal.h index b1bb0de3ded6e4..43723df087db65 100644 --- a/ReactCommon/yoga/yoga/Yoga-internal.h +++ b/ReactCommon/yoga/yoga/Yoga-internal.h @@ -41,23 +41,6 @@ bool YGValueArrayEqual( return areEqual; } -const YGValue kYGValueUndefined = {YGUndefined, YGUnitUndefined}; -const YGValue kYGValueAuto = {YGUndefined, YGUnitAuto}; -const std::array kYGDefaultEdgeValuesUnit = { - {kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined, - kYGValueUndefined}}; -const std::array kYGDefaultDimensionValuesAutoUnit = { - {kYGValueAuto, kYGValueAuto}}; -const std::array kYGDefaultDimensionValuesUnit = { - {kYGValueUndefined, kYGValueUndefined}}; - struct YGCachedMeasurement { float availableWidth; float availableHeight; @@ -95,68 +78,6 @@ struct YGCachedMeasurement { // layouts should not require more than 16 entries to fit within the cache. #define YG_MAX_CACHED_RESULT_COUNT 16 -struct YGLayout { - std::array position; - std::array dimensions; - std::array margin; - std::array border; - std::array padding; - YGDirection direction; - - uint32_t computedFlexBasisGeneration; - float computedFlexBasis; - bool hadOverflow; - - // Instead of recomputing the entire layout every single time, we - // cache some information to break early when nothing changed - uint32_t generationCount; - YGDirection lastParentDirection; - - uint32_t nextCachedMeasurementsIndex; - YGCachedMeasurement cachedMeasurements[YG_MAX_CACHED_RESULT_COUNT]; - std::array measuredDimensions; - - YGCachedMeasurement cachedLayout; - bool didUseLegacyFlag; - bool doesLegacyStretchFlagAffectsLayout; - - bool operator==(YGLayout layout) const { - bool isEqual = position == layout.position && - dimensions == layout.dimensions && margin == layout.margin && - border == layout.border && padding == layout.padding && - direction == layout.direction && hadOverflow == layout.hadOverflow && - lastParentDirection == layout.lastParentDirection && - nextCachedMeasurementsIndex == layout.nextCachedMeasurementsIndex && - cachedLayout == layout.cachedLayout; - - for (uint32_t i = 0; i < YG_MAX_CACHED_RESULT_COUNT && isEqual; ++i) { - isEqual = - isEqual && cachedMeasurements[i] == layout.cachedMeasurements[i]; - } - - if (!YGFloatIsUndefined(computedFlexBasis) || - !YGFloatIsUndefined(layout.computedFlexBasis)) { - isEqual = isEqual && (computedFlexBasis == layout.computedFlexBasis); - } - if (!YGFloatIsUndefined(measuredDimensions[0]) || - !YGFloatIsUndefined(layout.measuredDimensions[0])) { - isEqual = - isEqual && (measuredDimensions[0] == layout.measuredDimensions[0]); - } - if (!YGFloatIsUndefined(measuredDimensions[1]) || - !YGFloatIsUndefined(layout.measuredDimensions[1])) { - isEqual = - isEqual && (measuredDimensions[1] == layout.measuredDimensions[1]); - } - - return isEqual; - } - - bool operator!=(YGLayout layout) const { - return !(*this == layout); - } -}; - struct YGConfig { bool experimentalFeatures[YGExperimentalFeatureCount + 1]; bool useWebDefaults; @@ -172,34 +93,6 @@ static const float kDefaultFlexGrow = 0.0f; static const float kDefaultFlexShrink = 0.0f; static const float kWebDefaultFlexShrink = 1.0f; -static const YGLayout gYGNodeLayoutDefaults = { - .position = {}, - .dimensions = {{YGUndefined, YGUndefined}}, - .margin = {}, - .border = {}, - .padding = {}, - .direction = YGDirectionInherit, - .computedFlexBasisGeneration = 0, - .computedFlexBasis = YGUndefined, - .hadOverflow = false, - .generationCount = 0, - .lastParentDirection = (YGDirection)-1, - .nextCachedMeasurementsIndex = 0, - .cachedMeasurements = {}, - .measuredDimensions = {{YGUndefined, YGUndefined}}, - .cachedLayout = - { - .availableWidth = 0, - .availableHeight = 0, - .widthMeasureMode = (YGMeasureMode)-1, - .heightMeasureMode = (YGMeasureMode)-1, - .computedWidth = -1, - .computedHeight = -1, - }, - .didUseLegacyFlag = false, - .doesLegacyStretchFlagAffectsLayout = false, -}; - extern bool YGFloatsEqual(const float a, const float b); extern bool YGValueEqual(const YGValue a, const YGValue b); extern const YGValue* YGComputedEdgeValue( From 22cf81571b2ae3ffb0b754fe4ed4afcfc50e74d5 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 20 Feb 2018 05:41:52 -0800 Subject: [PATCH 060/267] Added default constructor for YGCachedMeasurement Reviewed By: emilsjolander Differential Revision: D7020337 fbshipit-source-id: e084e234bf6a2ae22e53e739959683abca169b88 --- ReactCommon/yoga/yoga/YGLayout.cpp | 9 +-------- ReactCommon/yoga/yoga/Yoga-internal.h | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ReactCommon/yoga/yoga/YGLayout.cpp b/ReactCommon/yoga/yoga/YGLayout.cpp index 8f00c0f3ef42bd..66348fc29c055c 100644 --- a/ReactCommon/yoga/yoga/YGLayout.cpp +++ b/ReactCommon/yoga/yoga/YGLayout.cpp @@ -26,14 +26,7 @@ YGLayout::YGLayout() nextCachedMeasurementsIndex(0), cachedMeasurements(), measuredDimensions(kYGDefaultDimensionValues), - cachedLayout({ - .availableWidth = 0, - .availableHeight = 0, - .widthMeasureMode = (YGMeasureMode)-1, - .heightMeasureMode = (YGMeasureMode)-1, - .computedWidth = -1, - .computedHeight = -1, - }), + cachedLayout(YGCachedMeasurement()), didUseLegacyFlag(false), doesLegacyStretchFlagAffectsLayout(false) {} diff --git a/ReactCommon/yoga/yoga/Yoga-internal.h b/ReactCommon/yoga/yoga/Yoga-internal.h index 43723df087db65..21b14b239fc870 100644 --- a/ReactCommon/yoga/yoga/Yoga-internal.h +++ b/ReactCommon/yoga/yoga/Yoga-internal.h @@ -50,6 +50,14 @@ struct YGCachedMeasurement { float computedWidth; float computedHeight; + YGCachedMeasurement() + : availableWidth(0), + availableHeight(0), + widthMeasureMode((YGMeasureMode)-1), + heightMeasureMode((YGMeasureMode)-1), + computedWidth(-1), + computedHeight(-1) {} + bool operator==(YGCachedMeasurement measurement) const { bool isEqual = widthMeasureMode == measurement.widthMeasureMode && heightMeasureMode == measurement.heightMeasureMode; From 9dd7608c975077121253f032e38c7c4bf0b2bff1 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 20 Feb 2018 17:35:29 -0800 Subject: [PATCH 061/267] Replaced unstable_AsyncComponent with unstable_AsyncMode Reviewed By: gaearon Differential Revision: D7025510 fbshipit-source-id: 1aff984ce7479e5fdff71259d0f552193a6cdcea --- Libraries/ReactNative/renderApplication.js | 11 ++--------- Libraries/ReactNative/renderFabricSurface.js | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/Libraries/ReactNative/renderApplication.js b/Libraries/ReactNative/renderApplication.js index ed9bf46a34198c..e72853e8e459c0 100644 --- a/Libraries/ReactNative/renderApplication.js +++ b/Libraries/ReactNative/renderApplication.js @@ -42,15 +42,8 @@ function renderApplication( RootComponent.prototype.unstable_isAsyncReactComponent === true ) { // $FlowFixMe This is not yet part of the official public API - class AppContainerAsyncWrapper extends React.unstable_AsyncComponent { - render() { - return this.props.children; - } - } - - renderable = ( - {renderable} - ); + const AsyncMode = React.unstable_AsyncMode; + renderable = {renderable}; } ReactNative.render(renderable, rootTag); diff --git a/Libraries/ReactNative/renderFabricSurface.js b/Libraries/ReactNative/renderFabricSurface.js index 59eb2f2926aa8a..f8acdd2c8dcb1f 100644 --- a/Libraries/ReactNative/renderFabricSurface.js +++ b/Libraries/ReactNative/renderFabricSurface.js @@ -43,15 +43,8 @@ function renderFabricSurface( RootComponent.prototype.unstable_isAsyncReactComponent === true ) { // $FlowFixMe This is not yet part of the official public API - class AppContainerAsyncWrapper extends React.unstable_AsyncComponent { - render() { - return this.props.children; - } - } - - renderable = ( - {renderable} - ); + const AsyncMode = React.unstable_AsyncMode; + renderable = {renderable}; } ReactFabric.render(renderable, rootTag); From ad06403c3e693b804193ed029893a4853e8bd8ba Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 20 Feb 2018 19:03:59 -0800 Subject: [PATCH 062/267] Introduce cloning mechanism for React Shadow Node Reviewed By: achen1 Differential Revision: D7018869 fbshipit-source-id: beca45b1df9602ebbc9172091b24a2bf44e103f4 --- .../react/uimanager/ReactShadowNode.java | 10 +++ .../react/uimanager/ReactShadowNodeImpl.java | 65 ++++++++++++++++--- .../react/uimanager/YogaNodePool.java | 2 +- 3 files changed, 66 insertions(+), 11 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java index 87950f69f0c4b0..92e5badc695830 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java @@ -67,6 +67,11 @@ public interface ReactShadowNode { */ boolean isYogaLeafNode(); + /** + * @return a mutable copy of the {@link ReactShadowNode} + */ + T mutableCopy(); + String getViewClass(); boolean hasUpdates(); @@ -127,8 +132,11 @@ public interface ReactShadowNode { T getRootNode(); + @Deprecated() //Replaced by setRootTag method. void setRootNode(T rootNode); + void setRootTag(int rootTag); + void setViewClassName(String viewClassName); @Nullable @@ -159,6 +167,8 @@ public interface ReactShadowNode { T removeNativeChildAt(int i); + void removeAllChildren(); + void removeAllNativeChildren(); int getNativeChildCount(); diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index e6bb9a5865878c..1029519ec4d3f9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -6,6 +6,8 @@ */ package com.facebook.react.uimanager; +import static java.lang.System.arraycopy; + import com.facebook.infer.annotation.Assertions; import com.facebook.react.uimanager.annotations.ReactPropertyHolder; import com.facebook.yoga.YogaAlign; @@ -53,9 +55,17 @@ @ReactPropertyHolder public class ReactShadowNodeImpl implements ReactShadowNode { + private static final YogaConfig sYogaConfig; + static { + sYogaConfig = new YogaConfig(); + sYogaConfig.setPointScaleFactor(0f); + sYogaConfig.setUseLegacyStretchBehaviour(true); + } + private int mReactTag; private @Nullable String mViewClassName; private @Nullable ReactShadowNodeImpl mRootNode; + private int mRootTag; private @Nullable ThemedReactContext mThemedContext; private boolean mShouldNotifyOnLayout; private boolean mNodeUpdated = true; @@ -75,26 +85,50 @@ public class ReactShadowNodeImpl implements ReactShadowNode private final float[] mPadding = new float[Spacing.ALL + 1]; private final boolean[] mPaddingIsPercent = new boolean[Spacing.ALL + 1]; private final YogaNode mYogaNode; - private static YogaConfig sYogaConfig; public ReactShadowNodeImpl() { if (!isVirtual()) { YogaNode node = YogaNodePool.get().acquire(); - if (sYogaConfig == null) { - sYogaConfig = new YogaConfig(); - sYogaConfig.setPointScaleFactor(0f); - sYogaConfig.setUseLegacyStretchBehaviour(true); - } - if (node == null) { - node = new YogaNode(sYogaConfig); - } - mYogaNode = node; + mYogaNode = node == null ? new YogaNode(sYogaConfig) : node; Arrays.fill(mPadding, YogaConstants.UNDEFINED); } else { mYogaNode = null; } } + public ReactShadowNodeImpl(ReactShadowNodeImpl original) { + try { + mReactTag = original.mReactTag; + mRootTag = original.mRootTag; + mViewClassName = original.mViewClassName; + mRootNode = original.mRootNode; + mThemedContext = original.mThemedContext; + mShouldNotifyOnLayout = original.mShouldNotifyOnLayout; + mNodeUpdated = original.mNodeUpdated; + mChildren = original.mChildren == null ? null : new ArrayList<>(original.mChildren); + mParent = original.mParent; + mIsLayoutOnly = original.mIsLayoutOnly; + mTotalNativeChildren = original.mTotalNativeChildren; + mNativeParent = original.mNativeParent; + mNativeChildren = original.mNativeChildren == null ? null : new ArrayList<>(original.mNativeChildren); + mNativeParent = original.mNativeParent; + mScreenX = original.mScreenX; + mScreenY = original.mScreenY; + mScreenWidth = original.mScreenWidth; + mScreenHeight = original.mScreenHeight; + arraycopy(original.mPadding, 0, mPadding, 0, original.mPadding.length); + arraycopy(original.mPaddingIsPercent, 0, mPaddingIsPercent, 0, original.mPaddingIsPercent.length); + mYogaNode = original.mYogaNode.clone(); + } catch (CloneNotSupportedException e) { + // it should never happen + throw new IllegalArgumentException(); + } + } + + public ReactShadowNodeImpl mutableCopy() { + return new ReactShadowNodeImpl(this); + } + /** * Nodes that return {@code true} will be treated as "virtual" nodes. That is, nodes that are not * mapped into native views (e.g. nested text node). By default this method returns {@code false}. @@ -378,6 +412,11 @@ public final void setRootNode(ReactShadowNodeImpl rootNode) { mRootNode = rootNode; } + @Override + public void setRootTag(int rootTag) { + mRootTag = rootTag; + } + @Override public final void setViewClassName(String viewClassName) { mViewClassName = viewClassName; @@ -451,6 +490,12 @@ public final ReactShadowNodeImpl removeNativeChildAt(int i) { return removed; } + @Override + public final void removeAllChildren() { + removeAllNativeChildren(); + mChildren.clear(); + } + @Override public final void removeAllNativeChildren() { if (mNativeChildren != null) { diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java index c71b2612376d95..ac6f5b380b3b33 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java @@ -20,7 +20,7 @@ public static ClearableSynchronizedPool get() { synchronized (sInitLock) { if (sPool == null) { - sPool = new ClearableSynchronizedPool(1024); + sPool = new ClearableSynchronizedPool<>(1024); } return sPool; } From 8c036ce090529dee3d44c23edf2dd965284e3df7 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 20 Feb 2018 20:13:22 -0800 Subject: [PATCH 063/267] RN: Remove Animated -> ScrollView -> Animated Cycle Reviewed By: sahrens Differential Revision: D7027223 fbshipit-source-id: 59924fada0f29a5e2ce1ae9a3694a94cfb26367c --- Libraries/Animated/src/Animated.js | 25 ++++++++----------- .../src/__tests__/AnimatedNative-test.js | 1 + Libraries/Components/ScrollView/ScrollView.js | 8 +++--- .../ScrollView/ScrollViewStickyHeader.js | 11 +++++--- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/Libraries/Animated/src/Animated.js b/Libraries/Animated/src/Animated.js index cfe2be06876811..32ec9ff8046954 100644 --- a/Libraries/Animated/src/Animated.js +++ b/Libraries/Animated/src/Animated.js @@ -6,30 +6,25 @@ * * @providesModule Animated * @flow + * @format */ -'use strict'; - -var AnimatedImplementation = require('AnimatedImplementation'); -var Image = require('Image'); -var Text = require('Text'); -var View = require('View'); +'use strict'; -let AnimatedScrollView; +const AnimatedImplementation = require('AnimatedImplementation'); +const Image = require('Image'); +const ScrollView = require('ScrollView'); +const Text = require('Text'); +const View = require('View'); const Animated = { View: AnimatedImplementation.createAnimatedComponent(View), Text: AnimatedImplementation.createAnimatedComponent(Text), Image: AnimatedImplementation.createAnimatedComponent(Image), - get ScrollView() { - // Make this lazy to avoid circular reference. - if (!AnimatedScrollView) { - AnimatedScrollView = AnimatedImplementation.createAnimatedComponent(require('ScrollView')); - } - return AnimatedScrollView; - }, + ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView), }; Object.assign((Animated: Object), AnimatedImplementation); -module.exports = ((Animated: any): (typeof AnimatedImplementation) & typeof Animated); +module.exports = ((Animated: any): typeof AnimatedImplementation & + typeof Animated); diff --git a/Libraries/Animated/src/__tests__/AnimatedNative-test.js b/Libraries/Animated/src/__tests__/AnimatedNative-test.js index 77306dd8fffd05..1c6700e4dc0652 100644 --- a/Libraries/Animated/src/__tests__/AnimatedNative-test.js +++ b/Libraries/Animated/src/__tests__/AnimatedNative-test.js @@ -16,6 +16,7 @@ jest .setMock('Text', ClassComponentMock) .setMock('View', ClassComponentMock) .setMock('Image', ClassComponentMock) + .setMock('ScrollView', ClassComponentMock) .setMock('React', {Component: class {}}) .setMock('NativeModules', { NativeAnimatedModule: {}, diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 354fd952b8191e..5d0d007fe29f3f 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -9,7 +9,7 @@ */ 'use strict'; -const Animated = require('Animated'); +const AnimatedImplementation = require('AnimatedImplementation'); const ColorPropType = require('ColorPropType'); const EdgeInsetsPropType = require('EdgeInsetsPropType'); const Platform = require('Platform'); @@ -497,7 +497,7 @@ const ScrollView = createReactClass({ mixins: [ScrollResponder.Mixin], - _scrollAnimatedValue: (new Animated.Value(0): Animated.Value), + _scrollAnimatedValue: (new AnimatedImplementation.Value(0): AnimatedImplementation.Value), _scrollAnimatedValueAttachment: (null: ?{detach: () => void}), _stickyHeaderRefs: (new Map(): Map), _headerLayoutYs: (new Map(): Map), @@ -509,7 +509,7 @@ const ScrollView = createReactClass({ }, UNSAFE_componentWillMount: function() { - this._scrollAnimatedValue = new Animated.Value(this.props.contentOffset ? this.props.contentOffset.y : 0); + this._scrollAnimatedValue = new AnimatedImplementation.Value(this.props.contentOffset ? this.props.contentOffset.y : 0); this._scrollAnimatedValue.setOffset(this.props.contentInset ? this.props.contentInset.top : 0); this._stickyHeaderRefs = new Map(); this._headerLayoutYs = new Map(); @@ -623,7 +623,7 @@ const ScrollView = createReactClass({ this._scrollAnimatedValueAttachment.detach(); } if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { - this._scrollAnimatedValueAttachment = Animated.attachNativeEvent( + this._scrollAnimatedValueAttachment = AnimatedImplementation.attachNativeEvent( this._scrollViewRef, 'onScroll', [{nativeEvent: {contentOffset: {y: this._scrollAnimatedValue}}}] diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index 597bbbb432b217..af9dc9b8b63549 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -10,17 +10,20 @@ */ 'use strict'; -const Animated = require('Animated'); +const AnimatedImplementation = require('AnimatedImplementation'); const React = require('React'); const StyleSheet = require('StyleSheet'); +const View = require('View'); import type {LayoutEvent} from 'CoreEventTypes'; +const AnimatedView = AnimatedImplementation.createAnimatedComponent(View); + type Props = { children?: React.Element, nextHeaderLayoutY: ?number, onLayout: (event: LayoutEvent) => void, - scrollAnimatedValue: Animated.Value, + scrollAnimatedValue: AnimatedImplementation.Value, // Will cause sticky headers to stick at the bottom of the ScrollView instead // of the top. inverted: ?boolean, @@ -136,7 +139,7 @@ class ScrollViewStickyHeader extends React.Component { const child = React.Children.only(this.props.children); return ( - @@ -144,7 +147,7 @@ class ScrollViewStickyHeader extends React.Component { style: styles.fill, // We transfer the child style to the wrapper. onLayout: undefined, // we call this manually through our this._onLayout })} - + ); } } From b90c1cf6c30454859579278be18ac650c66f516b Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 20 Feb 2018 22:11:51 -0800 Subject: [PATCH 064/267] RCTSurface: Optional sync ShadowView/View registing Summary: See the comment in code. If we on the main thread on registering time, we can/will break sequentiality of registering and mounting processes doing registration asynchronously. We need this to make sync mouting eventually possible. Reviewed By: fkgozali Differential Revision: D7014176 fbshipit-source-id: 110ad5e5d86e3422eac15c3b1bdb29ae04acd7e6 --- React/Base/Surface/RCTSurface.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/React/Base/Surface/RCTSurface.mm b/React/Base/Surface/RCTSurface.mm index 80d04b363e1f6f..f217c66b5681ac 100644 --- a/React/Base/Surface/RCTSurface.mm +++ b/React/Base/Surface/RCTSurface.mm @@ -321,7 +321,9 @@ - (void)_registerRootView RCTUIManager *uiManager = batchedBridge.uiManager; - RCTExecuteOnUIManagerQueue(^{ + // If we are on the main queue now, we have to proceed synchronously. + // Otherwise, we cannot perform synchronous waiting for some stages later. + (RCTIsMainQueue() ? RCTUnsafeExecuteOnUIManagerQueueSync : RCTExecuteOnUIManagerQueue)(^{ [uiManager registerRootViewTag:self->_rootViewTag]; RCTSurfaceRootShadowView *rootShadowView = From 60c000022e13753c8c766f2b452ec64315d07f6b Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 20 Feb 2018 22:11:53 -0800 Subject: [PATCH 065/267] Enforcing sequential ordering of creating view and applying props in UIManager Summary: See the comment in code. Reviewed By: fkgozali Differential Revision: D7014177 fbshipit-source-id: c58db856d7701a285564470eb1f024b5012dd451 --- React/Modules/RCTUIManager.m | 37 +++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index eea58fcb22b1cd..1ea715c944d06a 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -923,21 +923,36 @@ - (void)_manageChildren:(NSNumber *)containerTag // Dispatch view creation directly to the main thread instead of adding to // UIBlocks array. This way, it doesn't get deferred until after layout. - __weak RCTUIManager *weakManager = self; - RCTExecuteOnMainQueue(^{ - RCTUIManager *uiManager = weakManager; - if (!uiManager) { + __block UIView *preliminaryCreatedView = nil; + + void (^createViewBlock)(void) = ^{ + // Do nothing on the second run. + if (preliminaryCreatedView) { return; } - UIView *view = [componentData createViewWithTag:reactTag]; - if (view) { - uiManager->_viewRegistry[reactTag] = view; + + preliminaryCreatedView = [componentData createViewWithTag:reactTag]; + + if (preliminaryCreatedView) { + self->_viewRegistry[reactTag] = preliminaryCreatedView; } - }); + }; - [self addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary *viewRegistry) { - UIView *view = viewRegistry[reactTag]; - [componentData setProps:props forView:view]; + // We cannot guarantee that asynchronously scheduled block will be executed + // *before* a block is added to the regular mounting process (simply because + // mounting process can be managed externally while the main queue is + // locked). + // So, we positively dispatch it asynchronously and double check inside + // the regular mounting block. + + RCTExecuteOnMainQueue(createViewBlock); + + [self addUIBlock:^(__unused RCTUIManager *uiManager, __unused NSDictionary *viewRegistry) { + createViewBlock(); + + if (preliminaryCreatedView) { + [componentData setProps:props forView:preliminaryCreatedView]; + } }]; [self _shadowView:shadowView didReceiveUpdatedProps:[props allKeys]]; From 402ae2f01fd91051be5b717b0578e18b863854af Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 20 Feb 2018 22:11:55 -0800 Subject: [PATCH 066/267] New UIManager API allowing intercept/delay mounting process Summary: In some embedding/interop cases (RN inside, something else outside), the interop layer has to have the ability to control (intercept, delay, perform synchronously with another stuff) mounting process. This API allows doing that. Reviewed By: fkgozali Differential Revision: D7014179 fbshipit-source-id: 04036095f7e60a5ff7e69025ff6066fea92eb361 --- React/Modules/RCTUIManager.m | 31 ++++++++++++++----- .../Modules/RCTUIManagerObserverCoordinator.h | 9 ++++++ .../RCTUIManagerObserverCoordinator.mm | 14 +++++++++ 3 files changed, 46 insertions(+), 8 deletions(-) diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 1ea715c944d06a..5dcce46588ba58 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -1081,21 +1081,36 @@ - (void)flushUIBlocksWithCompletion:(void (^)(void))completion; return; } - // Execute the previously queued UI blocks - RCTProfileBeginFlowEvent(); - RCTExecuteOnMainQueue(^{ - RCTProfileEndFlowEvent(); - RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"-[UIManager flushUIBlocks]", (@{ - @"count": [@(previousPendingUIBlocks.count) stringValue], - })); + __weak typeof(self) weakSelf = self; + + void (^mountingBlock)(void) = ^{ + typeof(self) strongSelf = weakSelf; + @try { for (RCTViewManagerUIBlock block in previousPendingUIBlocks) { - block(self, self->_viewRegistry); + block(strongSelf, strongSelf->_viewRegistry); } } @catch (NSException *exception) { RCTLogError(@"Exception thrown while executing UI block: %@", exception); } + }; + + if ([self.observerCoordinator uiManager:self performMountingWithBlock:mountingBlock]) { + completion(); + return; + } + + // Execute the previously queued UI blocks + RCTProfileBeginFlowEvent(); + RCTExecuteOnMainQueue(^{ + RCTProfileEndFlowEvent(); + RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"-[UIManager flushUIBlocks]", (@{ + @"count": [@(previousPendingUIBlocks.count) stringValue], + })); + + mountingBlock(); + RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @""); RCTExecuteOnUIManagerQueue(completion); diff --git a/React/Modules/RCTUIManagerObserverCoordinator.h b/React/Modules/RCTUIManagerObserverCoordinator.h index 83478b60268ab3..fc40640270af37 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.h +++ b/React/Modules/RCTUIManagerObserverCoordinator.h @@ -9,6 +9,8 @@ #import +typedef dispatch_block_t RCTUIManagerMountingBlock; + /** * Allows hooking into UIManager internals. This can be used to execute code at * specific points during the view updating process. @@ -43,6 +45,13 @@ */ - (void)uiManagerWillPerformMounting:(RCTUIManager *)manager; +/** + * Called right before flushing UI blocks and allows to intercept the mounting process. + * Return `YES` to cancel default execution of the `block` (and perform the + * execution later). + */ +- (BOOL)uiManager:(RCTUIManager *)manager performMountingWithBlock:(RCTUIManagerMountingBlock)block; + /** * Called just after flushing UI blocks. * This is called from the UIManager queue. diff --git a/React/Modules/RCTUIManagerObserverCoordinator.mm b/React/Modules/RCTUIManagerObserverCoordinator.mm index 90e0255c930909..a8fa5f6db3b048 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.mm +++ b/React/Modules/RCTUIManagerObserverCoordinator.mm @@ -72,6 +72,20 @@ - (void)uiManagerWillPerformMounting:(RCTUIManager *)manager } } +- (BOOL)uiManager:(RCTUIManager *)manager performMountingWithBlock:(RCTUIManagerMountingBlock)block +{ + std::lock_guard lock(_mutex); + + for (id observer in _observers) { + if ([observer respondsToSelector:@selector(uiManager:performMountingWithBlock:)]) { + if ([observer uiManager:manager performMountingWithBlock:block]) { + return YES; + } + } + } + return NO; +} + - (void)uiManagerDidPerformMounting:(RCTUIManager *)manager { std::lock_guard lock(_mutex); From b7fbeb253ac03b39c1f2432ebcb66bb86a442a78 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 20 Feb 2018 22:11:56 -0800 Subject: [PATCH 067/267] RCTSurface: Support for synchronous waiting for mounting stage Summary: So, all initial operations can now be done synchronously (and on the main thread). To do so, instancitate `RCTSurface` object and call `synchronouslyWaitForStage:timeout:` method like that: RCTSurface *surface = [[RCTSurface alloc] initWithBridge:... moduleName:... initialProperties:...]; BOOL success = [surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout]; or RCTSurfaceHostingView *surfaceHostingView = [[RCTSurfaceHostingView alloc] initWithBridge:... moduleName:... initialProperties:...]; BOOL success = [surfaceHostingView.surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout]; Reviewed By: fkgozali Differential Revision: D7014178 fbshipit-source-id: c3c13904a3587ff2a222fa71623c40c8f30bc8af --- React/Base/Surface/RCTSurface.mm | 82 +++++++++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 7 deletions(-) diff --git a/React/Base/Surface/RCTSurface.mm b/React/Base/Surface/RCTSurface.mm index f217c66b5681ac..3581ac1e7f0520 100644 --- a/React/Base/Surface/RCTSurface.mm +++ b/React/Base/Surface/RCTSurface.mm @@ -9,6 +9,7 @@ #import "RCTSurfaceView+Internal.h" #import +#import #import "RCTAssert.h" #import "RCTBridge+Private.h" @@ -21,9 +22,10 @@ #import "RCTSurfaceView.h" #import "RCTTouchHandler.h" #import "RCTUIManager.h" +#import "RCTUIManagerObserverCoordinator.h" #import "RCTUIManagerUtils.h" -@interface RCTSurface () +@interface RCTSurface () @end @implementation RCTSurface { @@ -40,6 +42,7 @@ @implementation RCTSurface { CGSize _minimumSize; CGSize _maximumSize; CGSize _intrinsicSize; + RCTUIManagerMountingBlock _mountingBlock; // The Main thread only RCTSurfaceView *_Nullable _view; @@ -48,6 +51,10 @@ @implementation RCTSurface { // Semaphores dispatch_semaphore_t _rootShadowViewDidStartRenderingSemaphore; dispatch_semaphore_t _rootShadowViewDidStartLayingOutSemaphore; + dispatch_semaphore_t _uiManagerDidPerformMountingSemaphore; + + // Atomics + atomic_bool _waitingForMountingStageOnMainQueue; } - (instancetype)initWithBridge:(RCTBridge *)bridge @@ -62,8 +69,10 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _moduleName = moduleName; _properties = [initialProperties copy]; _rootViewTag = RCTAllocateRootViewTag(); + _rootShadowViewDidStartRenderingSemaphore = dispatch_semaphore_create(0); _rootShadowViewDidStartLayingOutSemaphore = dispatch_semaphore_create(0); + _uiManagerDidPerformMountingSemaphore = dispatch_semaphore_create(0); _minimumSize = CGSizeZero; _maximumSize = CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX); @@ -84,6 +93,8 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge _stage = _stage | RCTSurfaceStageBridgeDidLoad; } + [_bridge.uiManager.observerCoordinator addObserver:self]; + [self _registerRootView]; [self _run]; } @@ -435,16 +446,20 @@ - (CGSize)intrinsicSize - (BOOL)synchronouslyWaitForStage:(RCTSurfaceStage)stage timeout:(NSTimeInterval)timeout { - if (RCTIsMainQueue() && (stage == RCTSurfaceStageSurfaceDidInitialRendering)) { - // This case *temporary* does not supported. - stage = RCTSurfaceStageSurfaceDidInitialLayout; - } - if (RCTIsUIManagerQueue()) { RCTLogInfo(@"Synchronous waiting is not supported on UIManager queue."); return NO; } + if (RCTIsMainQueue() && (stage == RCTSurfaceStageSurfaceDidInitialMounting)) { + // All main-threaded execution (especially mounting process) has to be + // intercepted, captured and performed synchnously at the end of this method + // right after the semaphore signals. + + // Atomic variant of `_waitingForMountingStageOnMainQueue = YES;` + atomic_fetch_or(&_waitingForMountingStageOnMainQueue, 1); + } + dispatch_semaphore_t semaphore; switch (stage) { case RCTSurfaceStageSurfaceDidInitialLayout: @@ -453,17 +468,39 @@ - (BOOL)synchronouslyWaitForStage:(RCTSurfaceStage)stage timeout:(NSTimeInterval case RCTSurfaceStageSurfaceDidInitialRendering: semaphore = _rootShadowViewDidStartRenderingSemaphore; break; + case RCTSurfaceStageSurfaceDidInitialMounting: + semaphore = _uiManagerDidPerformMountingSemaphore; + break; default: - RCTAssert(NO, @"Only waiting for `RCTSurfaceStageSurfaceDidInitialRendering` and `RCTSurfaceStageSurfaceDidInitialLayout` stages is supported."); + RCTAssert(NO, @"Only waiting for `RCTSurfaceStageSurfaceDidInitialRendering`, `RCTSurfaceStageSurfaceDidInitialLayout` and `RCTSurfaceStageSurfaceDidInitialMounting` stages are supported."); } BOOL timeoutOccurred = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC)); + + // Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`. + atomic_fetch_and(&_waitingForMountingStageOnMainQueue, 0); + if (!timeoutOccurred) { // Balancing the semaphore. // Note: `dispatch_semaphore_wait` reverts the decrement in case when timeout occurred. dispatch_semaphore_signal(semaphore); } + if (RCTIsMainQueue() && (stage == RCTSurfaceStageSurfaceDidInitialMounting)) { + // Time to apply captured mounting block. + RCTUIManagerMountingBlock mountingBlock; + { + std::lock_guard lock(_mutex); + mountingBlock = _mountingBlock; + _mountingBlock = nil; + } + + if (mountingBlock) { + mountingBlock(); + [self _mountRootViewIfNeeded]; + } + } + return !timeoutOccurred; } @@ -493,4 +530,35 @@ - (void)rootShadowViewDidStartLayingOut:(RCTSurfaceRootShadowView *)rootShadowVi }); } +#pragma mark - RCTUIManagerObserver + +- (BOOL)uiManager:(RCTUIManager *)manager performMountingWithBlock:(RCTUIManagerMountingBlock)block +{ + if (atomic_load(&_waitingForMountingStageOnMainQueue) && (self.stage & RCTSurfaceStageSurfaceDidInitialLayout)) { + // Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`. + atomic_fetch_and(&_waitingForMountingStageOnMainQueue, 0); + + { + std::lock_guard lock(_mutex); + _mountingBlock = block; + } + return YES; + } + + return NO; +} + +- (void)uiManagerDidPerformMounting:(RCTUIManager *)manager +{ + if (self.stage & RCTSurfaceStageSurfaceDidInitialLayout) { + [self _setStage:RCTSurfaceStageSurfaceDidInitialMounting]; + dispatch_semaphore_signal(_uiManagerDidPerformMountingSemaphore); + + // No need to listen to UIManager anymore. + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ + [self->_bridge.uiManager.observerCoordinator removeObserver:self]; + }); + } +} + @end From 47addd8e34a8ee1233694f250e9badae8b86defa Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Wed, 21 Feb 2018 09:01:35 -0800 Subject: [PATCH 068/267] Remove unused reference in Text.js Summary: Previously, the Platform module was used to detect when RCTVirtualText should be used. Recently, this has changed to detecting the availability of a native virtual text component on the UIManager. The import for the Platform module can be deleted. I was cleaning up source code copied in react-native-windows and noticed this reference is no longer used in Text.js. Run jest tests. N/A Closes https://github.com/facebook/react-native/pull/18039 Differential Revision: D7042473 Pulled By: hramos fbshipit-source-id: d318cfdfd2d052bd1662ac469dd51633f6d59d17 --- Libraries/Text/Text.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index c2ded14887e533..9a31838f5aa8fe 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -13,7 +13,6 @@ const ColorPropType = require('ColorPropType'); const EdgeInsetsPropType = require('EdgeInsetsPropType'); const NativeMethodsMixin = require('NativeMethodsMixin'); -const Platform = require('Platform'); const React = require('React'); const PropTypes = require('prop-types'); const ReactNativeViewAttributes = require('ReactNativeViewAttributes'); From 4371d1e1d0318c3aa03738583a24b833f0a33ba1 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 21 Feb 2018 09:21:34 -0800 Subject: [PATCH 069/267] Implement FabricUIManagerModule in Android Reviewed By: achen1 Differential Revision: D7031902 fbshipit-source-id: a8d9d505f981ac4268760efa32f4cbc7955aec32 --- .../facebook/react/CoreModulesPackage.java | 2 +- .../facebook/react/ReactInstanceManager.java | 18 +++-- .../react/fabric/FabricUIManagerModule.java | 68 ++++++++++++++----- .../react/uimanager/UIImplementation.java | 1 + .../react/uimanager/UIManagerModule.java | 3 +- .../facebook/react/uimanager/UIModule.java | 7 ++ 6 files changed, 75 insertions(+), 24 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/uimanager/UIModule.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java index 43515b59febd8b..ecda016133b275 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java @@ -170,7 +170,7 @@ public List getViewManagerNames() { } else { return new UIManagerModule( reactContext, - mReactInstanceManager.createAllViewManagers(reactContext), + mReactInstanceManager.getOrCreateViewManagers(reactContext), mUIImplementationProvider, mMinTimeLeftInFrameForNonBatchedOperationMs); } diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index 2ba53056f02ca7..4c2b560999719e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -156,6 +156,7 @@ public interface ReactInstanceEventListener { private final boolean mLazyNativeModulesEnabled; private final boolean mDelayViewManagerClassLoadsEnabled; private final @Nullable BridgeListener mBridgeListener; + private List mViewManagers; private class ReactContextInitParams { private final JavaScriptExecutorFactory mJsExecutorFactory; @@ -774,18 +775,23 @@ public void detachRootView(ReactRootView rootView) { /** * Uses configured {@link ReactPackage} instances to create all view managers. */ - public List createAllViewManagers( + public List getOrCreateViewManagers( ReactApplicationContext catalystApplicationContext) { ReactMarker.logMarker(CREATE_VIEW_MANAGERS_START); Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "createAllViewManagers"); try { - synchronized (mPackages) { - List allViewManagers = new ArrayList<>(); - for (ReactPackage reactPackage : mPackages) { - allViewManagers.addAll(reactPackage.createViewManagers(catalystApplicationContext)); + if (mViewManagers == null) { + synchronized (mPackages) { + if (mViewManagers == null) { + mViewManagers = new ArrayList<>(); + for (ReactPackage reactPackage : mPackages) { + mViewManagers.addAll(reactPackage.createViewManagers(catalystApplicationContext)); + } + return mViewManagers; + } } - return allViewManagers; } + return mViewManagers; } finally { Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); ReactMarker.logMarker(CREATE_VIEW_MANAGERS_END); diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java index 0e52bcd36a701b..10acfbc278df33 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java @@ -4,7 +4,15 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.MeasureSpecProvider; +import com.facebook.react.uimanager.NativeViewHierarchyOptimizer; +import com.facebook.react.uimanager.ReactRootViewTagGenerator; import com.facebook.react.uimanager.ReactShadowNode; +import com.facebook.react.uimanager.ReactStylesDiffMap; +import com.facebook.react.uimanager.SizeMonitoringFrameLayout; +import com.facebook.react.uimanager.UIModule; +import com.facebook.react.uimanager.ViewManager; +import com.facebook.react.uimanager.ViewManagerRegistry; import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; @@ -13,12 +21,16 @@ * This class is responsible to create, clone and update {@link ReactShadowNode} using the * Fabric API. */ -public class FabricUIManagerModule { +@SuppressWarnings("unused") // used from JNI +public class FabricUIManagerModule implements UIModule { private final ReactApplicationContext mReactApplicationContext; + private final ViewManagerRegistry mViewManagerRegistry; - public FabricUIManagerModule(ReactApplicationContext reactContext) { + public FabricUIManagerModule(ReactApplicationContext reactContext, + ViewManagerRegistry viewManagerRegistry) { mReactApplicationContext = reactContext; + mViewManagerRegistry = viewManagerRegistry; } /** @@ -28,10 +40,24 @@ public FabricUIManagerModule(ReactApplicationContext reactContext) { public ReactShadowNode createNode(int reactTag, String viewName, int rootTag, - ReadableMap props, - int instanceHandle) { - //TODO T25560658 - return null; + ReadableMap props) { + + ViewManager viewManager = mViewManagerRegistry.get(viewName); + ReactShadowNode shadowNode = viewManager.createShadowNodeInstance(mReactApplicationContext); + shadowNode.setRootTag(rootTag); + shadowNode.setReactTag(reactTag); + ReactStylesDiffMap styles = updateProps(props, shadowNode); + + return shadowNode; + } + + private ReactStylesDiffMap updateProps(ReadableMap props, ReactShadowNode shadowNode) { + ReactStylesDiffMap styles = null; + if (props != null) { + styles = new ReactStylesDiffMap(props); + shadowNode.updateProperties(styles); + } + return styles; } /** @@ -41,8 +67,7 @@ public ReactShadowNode createNode(int reactTag, */ @Nullable public ReactShadowNode cloneNode(ReactShadowNode node) { - //TODO T25560658 - return null; + return node.mutableCopy(); } /** @@ -52,8 +77,9 @@ public ReactShadowNode cloneNode(ReactShadowNode node) { */ @Nullable public ReactShadowNode cloneNodeWithNewChildren(ReactShadowNode node) { - //TODO T25560658 - return null; + ReactShadowNode clone = cloneNode(node); + clone.removeAllChildren(); + return clone; } /** @@ -63,8 +89,9 @@ public ReactShadowNode cloneNodeWithNewChildren(ReactShadowNode node) { */ @Nullable public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableMap newProps) { - //TODO T25560658 - return null; + ReactShadowNode clone = cloneNode(node); + updateProps(newProps, clone); + return clone; } /** @@ -77,8 +104,9 @@ public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableMap n public ReactShadowNode cloneNodeWithNewChildrenAndProps( ReactShadowNode node, ReadableMap newProps) { - //TODO T25560658 - return null; + ReactShadowNode clone = cloneNodeWithNewChildren(node); + updateProps(newProps, clone); + return clone; } /** @@ -87,7 +115,7 @@ public ReactShadowNode cloneNodeWithNewChildrenAndProps( */ @Nullable public void appendChild(ReactShadowNode parent, ReactShadowNode child) { - //TODO T25560658 + parent.addChildAt(child, parent.getChildCount()); } /** @@ -106,7 +134,15 @@ public void appendChildToSet(List childList, ReactShadowNode ch } public void completeRoot(int rootTag, List childList) { - //TODO T25560658 + // TODO Diffing old Tree with new Tree? + // Do we need to hold references to old and new tree? + } + + @Override + public int addRootView( + final T rootView) { + // TODO: complete with actual implementation + return ReactRootViewTagGenerator.getNextRootViewTag(); } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index 98e4a592c6ec9d..7c59caafb67a2c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -277,6 +277,7 @@ public void createView(int tag, String className, int rootViewTag, ReadableMap p cssNode.setReactTag(tag); cssNode.setViewClassName(className); cssNode.setRootNode(rootNode); + if (rootNode != null) cssNode.setRootTag(rootNode.getReactTag()); cssNode.setThemedContext(rootNode.getThemedContext()); mShadowNodeRegistry.addNode(cssNode); diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index 6a8d6db53f8219..d4ceecfb660fc7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -72,7 +72,7 @@ */ @ReactModule(name = UIManagerModule.NAME) public class UIManagerModule extends ReactContextBaseJavaModule implements - OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter { + OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter, UIModule { /** * Enables lazy discovery of a specific {@link ViewManager} by its name. @@ -287,6 +287,7 @@ public Map getPerformanceCounters() { * *

TODO(6242243): Make addRootView thread safe NB: this method is horribly not-thread-safe. */ + @Override public int addRootView( final T rootView) { Systrace.beginSection( diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIModule.java new file mode 100644 index 00000000000000..a3fee6652d25e0 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIModule.java @@ -0,0 +1,7 @@ +package com.facebook.react.uimanager; + +public interface UIModule { + + int addRootView(final T rootView); + +} From 7dd12a26b9d967cd216d0579c7d893aee7cddcef Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Wed, 21 Feb 2018 11:06:19 -0800 Subject: [PATCH 070/267] Mock static methods of TouchableNativeFeedback on iOS Reviewed By: TheSavior Differential Revision: D7016679 fbshipit-source-id: bd04244eaf876e3ffab4f0c64792769a9ea40abd --- .../Components/Touchable/TouchableNativeFeedback.ios.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js index 9b7ff5e7e82d41..c624cb7fdbf0d0 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js @@ -15,6 +15,11 @@ var Text = require('Text'); var View = require('View'); class DummyTouchableNativeFeedback extends React.Component { + static SelectableBackground = () => ({}); + static SelectableBackgroundBorderless = () => ({}); + static Ripple = () => ({}); + static canUseNativeForeground = () => false; + render() { return ( From 190e6bef2e42b6f106853514d305bb0adb1c65a1 Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Wed, 21 Feb 2018 12:36:41 -0800 Subject: [PATCH 071/267] FabricUIManagerModuleTest setup and testCloneNode Reviewed By: mdvacca Differential Revision: D7037558 fbshipit-source-id: a62617c7e16102cf7d12ecde48a95feec264fa51 --- .../react/uimanager/ReactShadowNodeImpl.java | 4 +--- .../uimanager/ReactYogaConfigProvider.java | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index 1029519ec4d3f9..8233fc224f111f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -57,9 +57,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode private static final YogaConfig sYogaConfig; static { - sYogaConfig = new YogaConfig(); - sYogaConfig.setPointScaleFactor(0f); - sYogaConfig.setUseLegacyStretchBehaviour(true); + sYogaConfig = ReactYogaConfigProvider.get(); } private int mReactTag; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java new file mode 100644 index 00000000000000..3e2b109765d441 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java @@ -0,0 +1,17 @@ +package com.facebook.react.uimanager; + +import com.facebook.yoga.YogaConfig; + +public class ReactYogaConfigProvider { + + private static YogaConfig YOGA_CONFIG; + + public static YogaConfig get() { + if (YOGA_CONFIG == null) { + YOGA_CONFIG = new YogaConfig(); + YOGA_CONFIG.setPointScaleFactor(0f); + YOGA_CONFIG.setUseLegacyStretchBehaviour(true); + } + return YOGA_CONFIG; + } +} From 13ee1b5920ad9444cbea6eaded11926a00dc6882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Thu, 22 Feb 2018 06:06:38 -0800 Subject: [PATCH 072/267] Uses Yargs instead of Command Summary: This diff allows Metro to throw an error when a configuration file cannot be found, by using a new strict: true option. Reviewed By: rafeca Differential Revision: D6998613 fbshipit-source-id: b704633be18d5c007f1a022fa811d0a74c636fc9 --- local-cli/dependencies/dependencies.js | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cli/dependencies/dependencies.js b/local-cli/dependencies/dependencies.js index eb69d45af4f5fe..33af4d084c567a 100644 --- a/local-cli/dependencies/dependencies.js +++ b/local-cli/dependencies/dependencies.js @@ -86,6 +86,7 @@ function dependencies(argv, config, args, packagerInstance) { module.exports = { name: 'dependencies', + description: 'lists dependencies', func: dependencies, options: [ { From 47e57ef8c1acf6a02d6d3fae3b2f1bef0645b782 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Thu, 22 Feb 2018 06:14:06 -0800 Subject: [PATCH 073/267] Upgrade Jest to 22.4.0 to pull fixes for jest-haste-map Reviewed By: mjesun Differential Revision: D7041111 fbshipit-source-id: 6dbd0cbf7b62a54d0b5f16bbf2fa81332542f14e --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db9bd84bfa8df4..e4041fc55db551 100644 --- a/package.json +++ b/package.json @@ -215,7 +215,7 @@ "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.6.1", "flow-bin": "^0.66.0", - "jest": "22.3.0", + "jest": "22.4.0", "jest-junit": "3.6.0", "prettier": "1.9.1", "react": "^16.3.0-alpha.1", From edb6ca72fdc04576a503aa8e5f34c32d2f727750 Mon Sep 17 00:00:00 2001 From: Mats Byrkeland Date: Thu, 22 Feb 2018 07:04:35 -0800 Subject: [PATCH 074/267] Fix ESLint warnings using 'yarn lint --fix' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Hi! I would like to contribute to React Native, and I am just starting out. I forked the repo and found that it has quite a lot of ESLint warnings – many of which were automatically fixable. This PR is simply the result of running `yarn lint --fix` from the root folder. Most changes are removing trailing spaces from comments. Haven't really done any manual testing, since I haven't done any code changes manually. `yarn test` runs fine, `yarn flow` runs fine, `yarn prettier` is satisfied. N/A [INTERNAL][MINOR][] - Fix ESLint warnings Closes https://github.com/facebook/react-native/pull/18047 Differential Revision: D7054948 Pulled By: hramos fbshipit-source-id: d53e692698d1687de5821c3fb5cdb76a5e03b71e --- Libraries/Alert/Alert.js | 4 +- Libraries/Alert/AlertIOS.js | 2 +- Libraries/AppState/AppState.js | 12 +-- .../AccessibilityInfo.android.js | 4 +- .../AccessibilityInfo.ios.js | 22 ++-- .../ActivityIndicator/ActivityIndicator.js | 8 +- Libraries/Components/View/ViewPropTypes.js | 100 +++++++++--------- Libraries/Geolocation/Geolocation.js | 8 +- Libraries/Linking/Linking.js | 6 +- Libraries/Modal/Modal.js | 22 ++-- Libraries/Network/NetInfo.js | 16 +-- .../PermissionsAndroid/PermissionsAndroid.js | 6 +- .../PushNotificationIOS.js | 36 +++---- Libraries/Storage/AsyncStorage.js | 24 ++--- Libraries/Vibration/Vibration.js | 6 +- RNTester/js/ListExampleShared.js | 2 +- RNTester/js/RNTesterApp.ios.js | 6 +- bots/dangerfile.js | 4 +- flow-github/metro.js | 2 +- local-cli/link/ios/getTargets.js | 2 +- local-cli/link/ios/registerNativeModule.js | 8 +- local-cli/link/unlink.js | 2 +- 22 files changed, 151 insertions(+), 151 deletions(-) diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 7c775fddf7ece5..bcb51714440444 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -28,14 +28,14 @@ type Options = { /** * Launches an alert dialog with the specified title and message. - * + * * See http://facebook.github.io/react-native/docs/alert.html */ class Alert { /** * Launches an alert dialog with the specified title and message. - * + * * See http://facebook.github.io/react-native/docs/alert.html#alert */ static alert( diff --git a/Libraries/Alert/AlertIOS.js b/Libraries/Alert/AlertIOS.js index 25dff6f34d4d81..b254406462399e 100644 --- a/Libraries/Alert/AlertIOS.js +++ b/Libraries/Alert/AlertIOS.js @@ -101,7 +101,7 @@ class AlertIOS { /** * Create and display a prompt to enter some text. - * + * * See http://facebook.github.io/react-native/docs/alertios.html#prompt */ static prompt( diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 3fc13c5888d33e..f2faa9480d2b57 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -45,8 +45,8 @@ class AppState extends NativeEventEmitter { let eventUpdated = false; // TODO: this is a terrible solution - in order to ensure `currentState` - // prop is up to date, we have to register an observer that updates it - // whenever the state changes, even if nobody cares. We should just + // prop is up to date, we have to register an observer that updates it + // whenever the state changes, even if nobody cares. We should just // deprecate the `currentState` property and get rid of this. this.addListener( 'appStateDidChange', @@ -70,14 +70,14 @@ class AppState extends NativeEventEmitter { } // TODO: now that AppState is a subclass of NativeEventEmitter, we could - // deprecate `addEventListener` and `removeEventListener` and just use - // addListener` and `listener.remove()` directly. That will be a breaking + // deprecate `addEventListener` and `removeEventListener` and just use + // addListener` and `listener.remove()` directly. That will be a breaking // change though, as both the method and event names are different // (addListener events are currently required to be globally unique). /** * Add a handler to AppState changes by listening to the `change` event type * and providing the handler. - * + * * See http://facebook.github.io/react-native/docs/appstate.html#addeventlistener */ addEventListener( @@ -105,7 +105,7 @@ class AppState extends NativeEventEmitter { /** * Remove a handler by passing the `change` event type and the handler. - * + * * See http://facebook.github.io/react-native/docs/appstate.html#removeeventlistener */ removeEventListener( diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js index f7d326f01b5305..b08593a066724f 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js @@ -25,8 +25,8 @@ var _subscriptions = new Map(); /** * Sometimes it's useful to know whether or not the device has a screen reader * that is currently active. The `AccessibilityInfo` API is designed for this - * purpose. You can use it to query the current state of the screen reader as - * well as to register to be notified when the state of the screen reader + * purpose. You can use it to query the current state of the screen reader as + * well as to register to be notified when the state of the screen reader * changes. * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js index 6472c359cfb4b4..822f0dcbaab8bd 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js @@ -28,8 +28,8 @@ var _subscriptions = new Map(); /** * Sometimes it's useful to know whether or not the device has a screen reader * that is currently active. The `AccessibilityInfo` API is designed for this - * purpose. You can use it to query the current state of the screen reader as - * well as to register to be notified when the state of the screen reader + * purpose. You can use it to query the current state of the screen reader as + * well as to register to be notified when the state of the screen reader * changes. * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html @@ -37,11 +37,11 @@ var _subscriptions = new Map(); var AccessibilityInfo = { /** - * Query whether a screen reader is currently enabled. - * - * Returns a promise which resolves to a boolean. + * Query whether a screen reader is currently enabled. + * + * Returns a promise which resolves to a boolean. * The result is `true` when a screen reader is enabledand `false` otherwise. - * + * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#fetch */ fetch: function(): Promise { @@ -65,7 +65,7 @@ var AccessibilityInfo = { * - `announcement`: The string announced by the screen reader. * - `success`: A boolean indicating whether the announcement was * successfully made. - * + * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#addeventlistener */ addEventListener: function ( @@ -94,9 +94,9 @@ var AccessibilityInfo = { /** * Set accessibility focus to a react component. - * + * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#setaccessibilityfocus */ setAccessibilityFocus: function( @@ -109,7 +109,7 @@ var AccessibilityInfo = { * Post a string to be announced by the screen reader. * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#announceforaccessibility */ announceForAccessibility: function( @@ -120,7 +120,7 @@ var AccessibilityInfo = { /** * Remove an event handler. - * + * * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#removeeventlistener */ removeEventListener: function( diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicator.js b/Libraries/Components/ActivityIndicator/ActivityIndicator.js index df941368da1736..6f9d34966dc284 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicator.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicator.js @@ -46,20 +46,20 @@ const ActivityIndicator = createReactClass({ ...ViewPropTypes, /** * Whether to show the indicator (true, the default) or hide it (false). - * + * * See http://facebook.github.io/react-native/docs/activityindicator.html#animating */ animating: PropTypes.bool, /** * The foreground color of the spinner (default is gray). - * + * * See http://facebook.github.io/react-native/docs/activityindicator.html#color */ color: ColorPropType, /** * Size of the indicator (default is 'small'). * Passing a number to the size prop is only supported on Android. - * + * * See http://facebook.github.io/react-native/docs/activityindicator.html#size */ size: PropTypes.oneOfType([ @@ -70,7 +70,7 @@ const ActivityIndicator = createReactClass({ * Whether the indicator should hide when not animating (true by default). * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/activityindicator.html#hideswhenstopped */ hidesWhenStopped: PropTypes.bool, diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index 7731c7e4a8cef2..7ced5e35f2bf5a 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -84,9 +84,9 @@ module.exports = { ...PlatformViewPropTypes, /** - * When `true`, indicates that the view is an accessibility element. + * When `true`, indicates that the view is an accessibility element. * By default, all the touchable elements are accessible. - * + * * See http://facebook.github.io/react-native/docs/view.html#accessible */ accessible: PropTypes.bool, @@ -95,7 +95,7 @@ module.exports = { * Overrides the text that's read by the screen reader when the user interacts * with the element. By default, the label is constructed by traversing all * the children and accumulating all the `Text` nodes separated by space. - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilitylabel */ accessibilityLabel: PropTypes.node, @@ -112,7 +112,7 @@ module.exports = { * native one. Works for Android only. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilitycomponenttype */ accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes), @@ -122,7 +122,7 @@ module.exports = { * when this view changes. Works for Android API >= 19 only. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilityliveregion */ accessibilityLiveRegion: PropTypes.oneOf([ @@ -137,7 +137,7 @@ module.exports = { * that query the screen. Works for Android only. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#importantforaccessibility */ importantForAccessibility: PropTypes.oneOf([ @@ -154,7 +154,7 @@ module.exports = { * You can provide one trait or an array of many traits. * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilitytraits */ accessibilityTraits: PropTypes.oneOfType([ @@ -168,17 +168,17 @@ module.exports = { * Default is `false`. * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilityviewismodal */ accessibilityViewIsModal: PropTypes.bool, - + /** * A value indicating whether the accessibility elements contained within * this accessibility element are hidden. * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/view.html#accessibilityElementsHidden */ accessibilityElementsHidden: PropTypes.bool, @@ -194,7 +194,7 @@ module.exports = { /** * When `accessible` is true, the system will try to invoke this function * when the user performs accessibility tap gesture. - * + * * See http://facebook.github.io/react-native/docs/view.html#onaccessibilitytap */ onAccessibilityTap: PropTypes.func, @@ -202,7 +202,7 @@ module.exports = { /** * When `accessible` is `true`, the system will invoke this function when the * user performs the magic tap gesture. - * + * * See http://facebook.github.io/react-native/docs/view.html#onmagictap */ onMagicTap: PropTypes.func, @@ -211,7 +211,7 @@ module.exports = { * Used to locate this view in end-to-end tests. * * > This disables the 'layout-only view removal' optimization for this view! - * + * * See http://facebook.github.io/react-native/docs/view.html#testid */ testID: PropTypes.string, @@ -220,7 +220,7 @@ module.exports = { * Used to locate this view from native classes. * * > This disables the 'layout-only view removal' optimization for this view! - * + * * See http://facebook.github.io/react-native/docs/view.html#nativeid */ nativeID: PropTypes.string, @@ -232,12 +232,12 @@ module.exports = { */ /** - * The View is now responding for touch events. This is the time to highlight + * The View is now responding for touch events. This is the time to highlight * and show the user what is happening. * * `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic * touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onrespondergrant */ onResponderGrant: PropTypes.func, @@ -245,20 +245,20 @@ module.exports = { /** * The user is moving their finger. * - * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic + * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic * touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onrespondermove */ onResponderMove: PropTypes.func, /** - * Another responder is already active and will not release it to that `View` + * Another responder is already active and will not release it to that `View` * asking to be the responder. * - * `View.props.onResponderReject: (event) => {}`, where `event` is a + * `View.props.onResponderReject: (event) => {}`, where `event` is a * synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onresponderreject */ onResponderReject: PropTypes.func, @@ -266,33 +266,33 @@ module.exports = { /** * Fired at the end of the touch. * - * `View.props.onResponderRelease: (event) => {}`, where `event` is a + * `View.props.onResponderRelease: (event) => {}`, where `event` is a * synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onresponderrelease */ onResponderRelease: PropTypes.func, /** * The responder has been taken from the `View`. Might be taken by other - * views after a call to `onResponderTerminationRequest`, or might be taken - * by the OS without asking (e.g., happens with control center/ notification + * views after a call to `onResponderTerminationRequest`, or might be taken + * by the OS without asking (e.g., happens with control center/ notification * center on iOS) * - * `View.props.onResponderTerminate: (event) => {}`, where `event` is a + * `View.props.onResponderTerminate: (event) => {}`, where `event` is a * synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onresponderterminate */ onResponderTerminate: PropTypes.func, /** - * Some other `View` wants to become responder and is asking this `View` to + * Some other `View` wants to become responder and is asking this `View` to * release its responder. Returning `true` allows its release. * - * `View.props.onResponderTerminationRequest: (event) => {}`, where `event` + * `View.props.onResponderTerminationRequest: (event) => {}`, where `event` * is a synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onresponderterminationrequest */ onResponderTerminationRequest: PropTypes.func, @@ -300,31 +300,31 @@ module.exports = { /** * Does this view want to become responder on the start of a touch? * - * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where + * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetresponder */ onStartShouldSetResponder: PropTypes.func, /** - * If a parent `View` wants to prevent a child `View` from becoming responder + * If a parent `View` wants to prevent a child `View` from becoming responder * on a touch start, it should have this handler which returns `true`. * - * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`, + * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetrespondercapture */ onStartShouldSetResponderCapture: PropTypes.func, /** - * Does this view want to "claim" touch responsiveness? This is called for + * Does this view want to "claim" touch responsiveness? This is called for * every touch move on the `View` when it is not the responder. * - * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where + * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onmoveshouldsetresponder */ onMoveShouldSetResponder: PropTypes.func, @@ -332,10 +332,10 @@ module.exports = { /** * If a parent `View` wants to prevent a child `View` from becoming responder * on a move, it should have this handler which returns `true`. - * + * * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. - * + * * See http://facebook.github.io/react-native/docs/view.html#onMoveShouldsetrespondercapture */ onMoveShouldSetResponderCapture: PropTypes.func, @@ -348,7 +348,7 @@ module.exports = { * > The touch area never extends past the parent view bounds and the Z-index * > of sibling views always takes precedence if a touch hits two overlapping * > views. - * + * * See http://facebook.github.io/react-native/docs/view.html#hitslop */ hitSlop: EdgeInsetsPropType, @@ -361,14 +361,14 @@ module.exports = { * This event is fired immediately once the layout has been calculated, but * the new layout may not yet be reflected on the screen at the time the * event is received, especially if a layout animation is in progress. - * + * * See http://facebook.github.io/react-native/docs/view.html#onlayout */ onLayout: PropTypes.func, /** * Controls whether the `View` can be the target of touch events. - * + * * See http://facebook.github.io/react-native/docs/view.html#pointerevents */ pointerEvents: PropTypes.oneOf([ @@ -390,7 +390,7 @@ module.exports = { * view that contains many subviews that extend outside its bound. The * subviews must also have `overflow: hidden`, as should the containing view * (or one of its superviews). - * + * * See http://facebook.github.io/react-native/docs/view.html#removeclippedsubviews */ removeClippedSubviews: PropTypes.bool, @@ -400,7 +400,7 @@ module.exports = { * single hardware texture on the GPU. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#rendertohardwaretextureandroid */ renderToHardwareTextureAndroid: PropTypes.bool, @@ -409,7 +409,7 @@ module.exports = { * Whether this `View` should be rendered as a bitmap before compositing. * * @platform ios - * + * * See http://facebook.github.io/react-native/docs/view.html#shouldrasterizeios */ shouldRasterizeIOS: PropTypes.bool, @@ -421,17 +421,17 @@ module.exports = { * ensure that this `View` exists in the native view hierarchy. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#collapsable */ collapsable: PropTypes.bool, /** - * Whether this `View` needs to rendered offscreen and composited with an - * alpha in order to preserve 100% correct colors and blending behavior. + * Whether this `View` needs to rendered offscreen and composited with an + * alpha in order to preserve 100% correct colors and blending behavior. * * @platform android - * + * * See http://facebook.github.io/react-native/docs/view.html#needsoffscreenalphacompositing */ needsOffscreenAlphaCompositing: PropTypes.bool, diff --git a/Libraries/Geolocation/Geolocation.js b/Libraries/Geolocation/Geolocation.js index d5d8fcd30a96bf..a4efe4c0201cb5 100644 --- a/Libraries/Geolocation/Geolocation.js +++ b/Libraries/Geolocation/Geolocation.js @@ -63,7 +63,7 @@ var Geolocation = { /* * Request suitable Location permission based on the key configured on pList. - * + * * See https://facebook.github.io/react-native/docs/geolocation.html#requestauthorization */ requestAuthorization: function() { @@ -71,8 +71,8 @@ var Geolocation = { }, /* - * Invokes the success callback once with the latest location info. - * + * Invokes the success callback once with the latest location info. + * * See https://facebook.github.io/react-native/docs/geolocation.html#getcurrentposition */ getCurrentPosition: async function( @@ -109,7 +109,7 @@ var Geolocation = { /* * Invokes the success callback whenever the location changes. - * + * * See https://facebook.github.io/react-native/docs/geolocation.html#watchposition */ watchPosition: function(success: Function, error?: Function, options?: GeoOptions): number { diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 799ad055cbe850..a621e647adccf8 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -21,7 +21,7 @@ const LinkingManager = Platform.OS === 'android' ? /** * `Linking` gives you a general interface to interact with both incoming * and outgoing app links. - * + * * See https://facebook.github.io/react-native/docs/linking.html */ class Linking extends NativeEventEmitter { @@ -33,7 +33,7 @@ class Linking extends NativeEventEmitter { /** * Add a handler to Linking changes by listening to the `url` event type * and providing the handler - * + * * See https://facebook.github.io/react-native/docs/linking.html#addeventlistener */ addEventListener(type: string, handler: Function) { @@ -42,7 +42,7 @@ class Linking extends NativeEventEmitter { /** * Remove a handler by passing the `url` event type and the handler. - * + * * See https://facebook.github.io/react-native/docs/linking.html#removeeventlistener */ removeEventListener(type: string, handler: Function ) { diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 50a73dd1919720..dabdbc5d92f618 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -29,7 +29,7 @@ import type EmitterSubscription from 'EmitterSubscription'; /** * The Modal component is a simple way to present content above an enclosing view. - * + * * See https://facebook.github.io/react-native/docs/modal.html */ @@ -49,48 +49,48 @@ class Modal extends React.Component { animationType: PropTypes.oneOf(['none', 'slide', 'fade']), /** * The `presentationStyle` prop controls how the modal appears. - * + * * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle */ presentationStyle: PropTypes.oneOf(['fullScreen', 'pageSheet', 'formSheet', 'overFullScreen']), /** * The `transparent` prop determines whether your modal will fill the - * entire view. - * + * entire view. + * * See https://facebook.github.io/react-native/docs/modal.html#transparent */ transparent: PropTypes.bool, /** * The `hardwareAccelerated` prop controls whether to force hardware * acceleration for the underlying window. - * + * * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated */ hardwareAccelerated: PropTypes.bool, /** * The `visible` prop determines whether your modal is visible. - * + * * See https://facebook.github.io/react-native/docs/modal.html#visible */ visible: PropTypes.bool, /** * The `onRequestClose` callback is called when the user taps the hardware * back button on Android or the menu button on Apple TV. - * + * * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose */ onRequestClose: (Platform.isTVOS || Platform.OS === 'android') ? PropTypes.func.isRequired : PropTypes.func, /** * The `onShow` prop allows passing a function that will be called once the * modal has been shown. - * + * * See https://facebook.github.io/react-native/docs/modal.html#onshow */ onShow: PropTypes.func, /** * The `onDismiss` prop allows passing a function that will be called once * the modal has been dismissed. - * + * * See https://facebook.github.io/react-native/docs/modal.html#ondismiss */ onDismiss: PropTypes.func, @@ -100,13 +100,13 @@ class Modal extends React.Component { ), /** * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations. - * + * * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations */ supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])), /** * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed. - * + * * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange */ onOrientationChange: PropTypes.func, diff --git a/Libraries/Network/NetInfo.js b/Libraries/Network/NetInfo.js index 64a8386d07b77a..0db9d4eab26825 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -80,13 +80,13 @@ const _isConnectedSubscriptions = new Map(); /** * NetInfo exposes info about online/offline status. - * + * * See https://facebook.github.io/react-native/docs/netinfo.html */ const NetInfo = { /** * Adds an event handler. - * + * * See https://facebook.github.io/react-native/docs/netinfo.html#addeventlistener */ addEventListener( @@ -128,7 +128,7 @@ const NetInfo = { /** * Removes the listener for network status changes. - * + * * See https://facebook.github.io/react-native/docs/netinfo.html#removeeventlistener */ removeEventListener( @@ -144,10 +144,10 @@ const NetInfo = { }, /** - * This function is deprecated. Use `getConnectionInfo` instead. + * This function is deprecated. Use `getConnectionInfo` instead. * Returns a promise that resolves with one of the deprecated connectivity * types: - * + * * The following connectivity types are deprecated. They're used by the * deprecated APIs `fetch` and the `change` event. * @@ -167,13 +167,13 @@ const NetInfo = { * - `MOBILE_HIPRI` - A High Priority Mobile data connection. * - `MOBILE_MMS` - An MMS-specific Mobile data connection. * - `MOBILE_SUPL` - A SUPL-specific Mobile data connection. - * - `VPN` - A virtual network using one or more native bearers. Requires + * - `VPN` - A virtual network using one or more native bearers. Requires * API Level 21 * - `WIFI` - The WIFI data connection. * - `WIMAX` - The WiMAX data connection. * - `UNKNOWN` - Unknown data connection. * - * The rest of the connectivity types are hidden by the Android API, but can + * The rest of the connectivity types are hidden by the Android API, but can * be used if necessary. */ fetch(): Promise { @@ -196,7 +196,7 @@ const NetInfo = { /** * An object with the same methods as above but the listener receives a * boolean which represents the internet connectivity. - * + * * See https://facebook.github.io/react-native/docs/netinfo.html#isconnected */ isConnected: { diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index 7cb8a8411c08c4..18858e1669dbf7 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -19,7 +19,7 @@ type Rationale = { type PermissionStatus = 'granted' | 'denied' | 'never_ask_again'; /** * `PermissionsAndroid` provides access to Android M's new permissions model. - * + * * See https://facebook.github.io/react-native/docs/permissionsandroid.html */ @@ -81,7 +81,7 @@ class PermissionsAndroid { /** * Returns a promise resolving to a boolean value as to whether the specified * permissions has been granted - * + * * See https://facebook.github.io/react-native/docs/permissionsandroid.html#check */ check(permission: string) : Promise { @@ -135,7 +135,7 @@ class PermissionsAndroid { * Prompts the user to enable multiple permissions in the same dialog and * returns an object with the permissions as keys and strings as values * indicating whether the user allowed or denied the request - * + * * See https://facebook.github.io/react-native/docs/permissionsandroid.html#requestmultiple */ requestMultiple(permissions: Array) : Promise<{[permission: string]: PermissionStatus}> { diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 1a131a5744e353..955bdf8c1adc9d 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -102,7 +102,7 @@ class PushNotificationIOS { /** * Cancels all scheduled localNotifications. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancelalllocalnotifications */ static cancelAllLocalNotifications() { @@ -111,7 +111,7 @@ class PushNotificationIOS { /** * Remove all delivered notifications from Notification Center. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications */ static removeAllDeliveredNotifications(): void { @@ -138,7 +138,7 @@ class PushNotificationIOS { /** * Sets the badge number for the app icon on the home screen. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber */ static setApplicationIconBadgeNumber(number: number) { @@ -147,7 +147,7 @@ class PushNotificationIOS { /** * Gets the current badge number for the app icon on the home screen. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getapplicationiconbadgenumber */ static getApplicationIconBadgeNumber(callback: Function) { @@ -165,7 +165,7 @@ class PushNotificationIOS { /** * Gets the local notifications that are currently scheduled. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getscheduledlocalnotifications */ static getScheduledLocalNotifications(callback: Function) { @@ -219,7 +219,7 @@ class PushNotificationIOS { /** * Removes the event listener. Do this in `componentWillUnmount` to prevent * memory leaks. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removeeventlistener */ static removeEventListener(type: PushNotificationEventName, handler: Function) { @@ -240,7 +240,7 @@ class PushNotificationIOS { * dialog box. By default, it will request all notification permissions, but * a subset of these can be requested by passing a map of requested * permissions. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#requestpermissions */ static requestPermissions(permissions?: { @@ -281,7 +281,7 @@ class PushNotificationIOS { /** * See what push permissions are currently enabled. `callback` will be * invoked with a `permissions` object. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#checkpermissions */ static checkPermissions(callback: Function) { @@ -295,7 +295,7 @@ class PushNotificationIOS { /** * This method returns a promise that resolves to either the notification * object if the app was launched by a push notification, or `null` otherwise. - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getinitialnotification */ static getInitialNotification(): Promise { @@ -308,7 +308,7 @@ class PushNotificationIOS { * You will never need to instantiate `PushNotificationIOS` yourself. * Listening to the `notification` event and invoking * `getInitialNotification` is sufficient - * + * */ constructor(nativeNotif: Object) { this._data = {}; @@ -347,7 +347,7 @@ class PushNotificationIOS { /** * This method is available for remote notifications that have been received via: * `application:didReceiveRemoteNotification:fetchCompletionHandler:` - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#finish */ finish(fetchResult: string) { @@ -369,7 +369,7 @@ class PushNotificationIOS { /** * Gets the sound string from the `aps` object - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getsound */ getSound(): ?string { @@ -378,7 +378,7 @@ class PushNotificationIOS { /** * Gets the category string from the `aps` object - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcategory */ getCategory(): ?string { @@ -387,7 +387,7 @@ class PushNotificationIOS { /** * Gets the notification's main message from the `aps` object - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getalert */ getAlert(): ?string | ?Object { @@ -396,7 +396,7 @@ class PushNotificationIOS { /** * Gets the content-available number from the `aps` object - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcontentavailable */ getContentAvailable(): ContentAvailable { @@ -405,7 +405,7 @@ class PushNotificationIOS { /** * Gets the badge count number from the `aps` object - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getbadgecount */ getBadgeCount(): ?number { @@ -414,7 +414,7 @@ class PushNotificationIOS { /** * Gets the data object on the notif - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdata */ getData(): ?Object { @@ -423,7 +423,7 @@ class PushNotificationIOS { /** * Gets the thread ID on the notif - * + * * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getthreadid */ getThreadID(): ?string { diff --git a/Libraries/Storage/AsyncStorage.js b/Libraries/Storage/AsyncStorage.js index 62228f7830a593..4e262e6150c36f 100644 --- a/Libraries/Storage/AsyncStorage.js +++ b/Libraries/Storage/AsyncStorage.js @@ -20,9 +20,9 @@ const RCTAsyncStorage = NativeModules.AsyncRocksDBStorage || /** * `AsyncStorage` is a simple, unencrypted, asynchronous, persistent, key-value - * storage system that is global to the app. It should be used instead of + * storage system that is global to the app. It should be used instead of * LocalStorage. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html */ var AsyncStorage = { @@ -32,7 +32,7 @@ var AsyncStorage = { /** * Fetches an item for a `key` and invokes a callback upon completion. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#getitem */ getItem: function( @@ -56,7 +56,7 @@ var AsyncStorage = { /** * Sets the value for a `key` and invokes a callback upon completion. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#setitem */ setItem: function( @@ -79,7 +79,7 @@ var AsyncStorage = { /** * Removes an item for a `key` and invokes a callback upon completion. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#removeitem */ removeItem: function( @@ -129,7 +129,7 @@ var AsyncStorage = { * Erases *all* `AsyncStorage` for all clients, libraries, etc. You probably * don't want to call this; use `removeItem` or `multiRemove` to clear only * your app's keys. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#clear */ clear: function(callback?: ?(error: ?Error) => void): Promise { @@ -173,9 +173,9 @@ var AsyncStorage = { * indicate which key caused the error. */ - /** + /** * Flushes any pending requests using a single batch call to get the data. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#flushgetrequests * */ flushGetRequests: function(): void { @@ -209,7 +209,7 @@ var AsyncStorage = { * This allows you to batch the fetching of items given an array of `key` * inputs. Your callback will be invoked with an array of corresponding * key-value pairs found. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiget */ multiGet: function( @@ -273,7 +273,7 @@ var AsyncStorage = { /** * Call this to batch the deletion of all keys in the `keys` array. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiremove */ multiRemove: function( @@ -296,9 +296,9 @@ var AsyncStorage = { /** * Batch operation to merge in existing and new values for a given set of * keys. This assumes that the values are stringified JSON. - * + * * **NOTE**: This is not supported by all native implementations. - * + * * See http://facebook.github.io/react-native/docs/asyncstorage.html#multimerge */ multiMerge: function( diff --git a/Libraries/Vibration/Vibration.js b/Libraries/Vibration/Vibration.js index e01da3d4022663..7f10cda29f8fab 100644 --- a/Libraries/Vibration/Vibration.js +++ b/Libraries/Vibration/Vibration.js @@ -15,7 +15,7 @@ var Platform = require('Platform'); /** * Vibration API - * + * * See https://facebook.github.io/react-native/docs/vibration.html */ @@ -57,7 +57,7 @@ function vibrateScheduler(id, pattern: Array, repeat: boolean, nextIndex var Vibration = { /** * Trigger a vibration with specified `pattern`. - * + * * See https://facebook.github.io/react-native/docs/vibration.html#vibrate */ vibrate: function(pattern: number | Array = 400, repeat: boolean = false) { @@ -84,7 +84,7 @@ var Vibration = { }, /** * Stop vibration - * + * * See https://facebook.github.io/react-native/docs/vibration.html#cancel */ cancel: function() { diff --git a/RNTester/js/ListExampleShared.js b/RNTester/js/ListExampleShared.js index 84d2fb37cc8538..96ace615655be1 100644 --- a/RNTester/js/ListExampleShared.js +++ b/RNTester/js/ListExampleShared.js @@ -199,7 +199,7 @@ function pressItem(context: Object, key: string) { } function renderSmallSwitchOption(context: Object, key: string) { - if(Platform.isTVOS) { + if (Platform.isTVOS) { return null; } return ( diff --git a/RNTester/js/RNTesterApp.ios.js b/RNTester/js/RNTesterApp.ios.js index 249b2754f886ef..26ee1ebbdd976d 100644 --- a/RNTester/js/RNTesterApp.ios.js +++ b/RNTester/js/RNTesterApp.ios.js @@ -144,9 +144,9 @@ const styles = StyleSheet.create({ borderBottomColor: '#96969A', backgroundColor: '#F5F5F6', }, - header: { - height: 40, - flexDirection: 'row' + header: { + height: 40, + flexDirection: 'row' }, headerLeft: { }, diff --git a/bots/dangerfile.js b/bots/dangerfile.js index 52079c27df5e02..fc727e2f0a1b9f 100644 --- a/bots/dangerfile.js +++ b/bots/dangerfile.js @@ -99,7 +99,7 @@ if (danger.git.modified_files + danger.git.added_files + danger.git.deleted_file const issueCommandsFileModified = includes(danger.git.modified_files, 'bots/IssueCommands.txt'); if (issueCommandsFileModified) { const title = ':exclamation: Bots'; - const idea = 'This PR appears to modify the list of people that may issue ' + + const idea = 'This PR appears to modify the list of people that may issue ' + 'commands to the GitHub bot.'; warn(`${title} - ${idea}`); } @@ -107,7 +107,7 @@ if (issueCommandsFileModified) { // Warns if the PR is opened against stable, as commits need to be cherry picked and tagged by a release maintainer. // Fails if the PR is opened against anything other than `master` or `-stable`. const isMergeRefMaster = danger.github.pr.base.ref === 'master'; -const isMergeRefStable = danger.github.pr.base.ref.indexOf(`-stable`) !== -1; +const isMergeRefStable = danger.github.pr.base.ref.indexOf('-stable') !== -1; if (!isMergeRefMaster && isMergeRefStable) { const title = ':grey_question: Base Branch'; const idea = 'The base branch for this PR is something other than `master`. Are you sure you want to merge these changes into a stable release? If you are interested in backporting updates to an older release, the suggested approach is to land those changes on `master` first and then cherry-pick the commits into the branch for that release. The [Releases Guide](https://github.com/facebook/react-native/blob/master/Releases.md) has more information.'; diff --git a/flow-github/metro.js b/flow-github/metro.js index ec84de96ddb216..ff06b427774628 100644 --- a/flow-github/metro.js +++ b/flow-github/metro.js @@ -21,4 +21,4 @@ declare module 'metro/src/HmrServer' { declare module 'metro/src/lib/bundle-modules/HMRClient' { declare module.exports: any; -} \ No newline at end of file +} diff --git a/local-cli/link/ios/getTargets.js b/local-cli/link/ios/getTargets.js index c85bcd16a2ebca..784eed2177f3f4 100644 --- a/local-cli/link/ios/getTargets.js +++ b/local-cli/link/ios/getTargets.js @@ -22,6 +22,6 @@ module.exports = function getTargets(project) { target: nativeTargetSection[key], name: nativeTargetSection[key].productReference_comment, isTVOS: (buildConfiguration.buildSettings.SDKROOT && (buildConfiguration.buildSettings.SDKROOT.indexOf('appletv') !== -1)) || false - } + }; }); }; diff --git a/local-cli/link/ios/registerNativeModule.js b/local-cli/link/ios/registerNativeModule.js index 470776898c2f6f..fed2b0bb2cfc55 100644 --- a/local-cli/link/ios/registerNativeModule.js +++ b/local-cli/link/ios/registerNativeModule.js @@ -46,8 +46,8 @@ module.exports = function registerNativeModuleIOS(dependencyConfig, projectConfi getTargets(dependencyProject).forEach(product => { var i; if (!product.isTVOS) { - for (i=0; i Date: Thu, 22 Feb 2018 12:20:34 -0800 Subject: [PATCH 075/267] More tests for FabricUIManagerModule Reviewed By: mdvacca Differential Revision: D7045459 fbshipit-source-id: f96758cf04b41836f73b29e62d43a122d955c67a --- .../com/facebook/react/uimanager/ReactShadowNodeImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index 8233fc224f111f..cf0b8b37a12108 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -491,7 +491,9 @@ public final ReactShadowNodeImpl removeNativeChildAt(int i) { @Override public final void removeAllChildren() { removeAllNativeChildren(); - mChildren.clear(); + if (mChildren != null) { + mChildren.clear(); + } } @Override From ef9d1fba237c08a158c8f32e823f229921e7c052 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Thu, 22 Feb 2018 13:26:32 -0800 Subject: [PATCH 076/267] Fix IllegalStateException in looped timing native animation Summary: This PR fixes regression introduced in #17896 with IllegalStateException being thrown in FrameBasedAnimationDriver. After investigating it seemed that the root cause was the code responsible for looping animations that was setting next frame time by adding the frame interval to the current time. In some circumstances the next frame would run earlier than that and as a result the calculated frame index was negative. Here is the stacktrace as reported by axemclion https://github.com/facebook/react-native/pull/17896/files#r170007224 ``` Caused by: java.lang.IllegalStateException: Calculated frame index should never be lower than 0 at com.facebook.react.animated.FrameBasedAnimationDriver.runAnimationStep(FrameBasedAnimationDriver.java:60) at com.facebook.react.animated.NativeAnimatedNodesManager.runUpdates(NativeAnimatedNodesManager.java:444) at com.facebook.react.animated.NativeAnimatedModule$1.doFrameGuarded(NativeAnimatedModule.java:100) at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29) ``` Run native animated tests suite. Run RNTester and scroll to the loop animation and see it working correctly [ANDROID][BUGFIX][Animated] - Fix exception thrown by timing animation when looping Closes https://github.com/facebook/react-native/pull/18061 Differential Revision: D7059335 Pulled By: hramos fbshipit-source-id: b08dfd1398d028eeeabeb11863743666379da374 --- .../facebook/react/animated/FrameBasedAnimationDriver.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java index d243fd8f45c940..f8fca1f9d22921 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java @@ -52,7 +52,10 @@ public void resetConfig(ReadableMap config) { public void runAnimationStep(long frameTimeNanos) { if (mStartFrameTimeNanos < 0) { mStartFrameTimeNanos = frameTimeNanos; - mFromValue = mAnimatedValue.mValue; + if (mCurrentLoop == 1) { + // initiate start value when animation runs for the first time + mFromValue = mAnimatedValue.mValue; + } } long timeFromStartMillis = (frameTimeNanos - mStartFrameTimeNanos) / 1000000; int frameIndex = (int) Math.round(timeFromStartMillis / FRAME_TIME_MILLIS); @@ -66,7 +69,7 @@ public void runAnimationStep(long frameTimeNanos) { if (frameIndex >= mFrames.length - 1) { nextValue = mToValue; if (mIterations == -1 || mCurrentLoop < mIterations) { // looping animation, return to start - mStartFrameTimeNanos = frameTimeNanos + ((long) FRAME_TIME_MILLIS) * 1000000L; + mStartFrameTimeNanos = -1; mCurrentLoop++; } else { // animation has completed, no more frames left mHasFinished = true; From b57a78c3def50eda11e57542be0e5233a62d173b Mon Sep 17 00:00:00 2001 From: Islam Magdy Date: Thu, 22 Feb 2018 17:57:27 -0800 Subject: [PATCH 077/267] Fix for #17348, Scrollable failing due to uglify-es Summary: Fixes https://github.com/facebook/react-native/issues/17348 - Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this._subscribableSubscriptions.forEach') Same existing tests applies, just added extra checks. This patch fixes the issue https://github.com/facebook/react-native/issues/17348 [ANDROID] [BUGFIX] [Subscribable] - Fix for https://github.com/facebook/react-native/issues/17348 [IOS] [BUGFIX] [Subscribable] - Fix for https://github.com/facebook/react-native/issues/17348 Closes https://github.com/facebook/react-native/pull/17463 Reviewed By: sahrens Differential Revision: D7062101 Pulled By: TheSavior fbshipit-source-id: 1306f4695ffc8748f674de70740ded09e1e390f7 --- Libraries/Components/Subscribable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/Subscribable.js b/Libraries/Components/Subscribable.js index 3dfe6a4bb1732b..cc665ef98f78db 100644 --- a/Libraries/Components/Subscribable.js +++ b/Libraries/Components/Subscribable.js @@ -28,7 +28,9 @@ Subscribable.Mixin = { }, componentWillUnmount: function() { - this._subscribableSubscriptions.forEach( + // This null check is a fix for a broken version of uglify-es. Should be deleted eventually + // https://github.com/facebook/react-native/issues/17348 + this._subscribableSubscriptions && this._subscribableSubscriptions.forEach( (subscription) => subscription.remove() ); this._subscribableSubscriptions = null; From d352c93487dba7359428fa0a3eb74f504ac34f2d Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 22 Feb 2018 22:48:48 -0800 Subject: [PATCH 078/267] Register ReactRootView into FabricUIManagerModule Reviewed By: achen1 Differential Revision: D7043902 fbshipit-source-id: fecef5a019dadd3d2802baa20dd8a3711e566ed3 --- .../main/java/com/facebook/react/fabric/BUCK | 13 ++--- .../react/fabric/FabricUIManagerModule.java | 48 ++++++++++++++----- .../react/fabric/RootShadowNodeRegistry.java | 29 +++++++++++ .../react/uimanager/ReactShadowNode.java | 3 -- .../react/uimanager/ReactShadowNodeImpl.java | 5 -- .../react/uimanager/UIImplementation.java | 1 - 6 files changed, 73 insertions(+), 26 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/fabric/RootShadowNodeRegistry.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK index 3ff8cc422dfa64..a5c3d74099be35 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK @@ -1,6 +1,6 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target") -android_library( +rn_android_library( name = "fabric", srcs = glob(["*.java"]), provided_deps = [ @@ -13,10 +13,11 @@ android_library( deps = [ react_native_dep("third-party/java/infer-annotations:infer-annotations"), react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react:reactAndroid"), - react_native_target("java/com/facebook/react/bridge:bridgeAndroid"), - react_native_target("java/com/facebook/react/uimanager:uimanagerAndroid"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotationsAndroid"), - react_native_target("java/com/facebook/react/module/annotations:annotationsAndroid"), + react_native_target("java/com/facebook/react:react"), + react_native_target("java/com/facebook/react/bridge:bridge"), + react_native_target("java/com/facebook/react/uimanager:uimanager"), + react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), + react_native_target("java/com/facebook/react/module/annotations:annotations"), + react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), ], ) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java index 10acfbc278df33..473eee7f6247e5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java @@ -4,12 +4,14 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.modules.i18nmanager.I18nUtil; import com.facebook.react.uimanager.MeasureSpecProvider; -import com.facebook.react.uimanager.NativeViewHierarchyOptimizer; import com.facebook.react.uimanager.ReactRootViewTagGenerator; import com.facebook.react.uimanager.ReactShadowNode; +import com.facebook.react.uimanager.ReactShadowNodeImpl; import com.facebook.react.uimanager.ReactStylesDiffMap; import com.facebook.react.uimanager.SizeMonitoringFrameLayout; +import com.facebook.react.uimanager.ThemedReactContext; import com.facebook.react.uimanager.UIModule; import com.facebook.react.uimanager.ViewManager; import com.facebook.react.uimanager.ViewManagerRegistry; @@ -24,6 +26,7 @@ @SuppressWarnings("unused") // used from JNI public class FabricUIManagerModule implements UIModule { + private final RootShadowNodeRegistry mRootShadowNodeRegistry = new RootShadowNodeRegistry(); private final ReactApplicationContext mReactApplicationContext; private final ViewManagerRegistry mViewManagerRegistry; @@ -43,19 +46,23 @@ public ReactShadowNode createNode(int reactTag, ReadableMap props) { ViewManager viewManager = mViewManagerRegistry.get(viewName); - ReactShadowNode shadowNode = viewManager.createShadowNodeInstance(mReactApplicationContext); - shadowNode.setRootTag(rootTag); - shadowNode.setReactTag(reactTag); - ReactStylesDiffMap styles = updateProps(props, shadowNode); + ReactShadowNode node = viewManager.createShadowNodeInstance(mReactApplicationContext); + node.setRootNode(getRootNode(rootTag)); + node.setReactTag(reactTag); + ReactStylesDiffMap styles = updateProps(props, node); - return shadowNode; + return node; } - private ReactStylesDiffMap updateProps(ReadableMap props, ReactShadowNode shadowNode) { + private ReactShadowNode getRootNode(int rootTag) { + return mRootShadowNodeRegistry.getNode(rootTag); + } + + private ReactStylesDiffMap updateProps(ReadableMap props, ReactShadowNode node) { ReactStylesDiffMap styles = null; if (props != null) { styles = new ReactStylesDiffMap(props); - shadowNode.updateProperties(styles); + node.updateProperties(styles); } return styles; } @@ -134,15 +141,34 @@ public void appendChildToSet(List childList, ReactShadowNode ch } public void completeRoot(int rootTag, List childList) { - // TODO Diffing old Tree with new Tree? + // TODO Diffing old Tree with new Tree // Do we need to hold references to old and new tree? } @Override public int addRootView( final T rootView) { - // TODO: complete with actual implementation - return ReactRootViewTagGenerator.getNextRootViewTag(); + int rootTag = ReactRootViewTagGenerator.getNextRootViewTag(); + ThemedReactContext themedRootContext = new ThemedReactContext( + mReactApplicationContext, + rootView.getContext()); + + mRootShadowNodeRegistry.addNode(createRootShadowNode(rootTag, themedRootContext)); + return rootTag; + } + + public void removeRootView(int rootTag) { + mRootShadowNodeRegistry.removeNode(rootTag); + } + + private ReactShadowNode createRootShadowNode(int rootTag, ThemedReactContext themedReactContext) { + ReactShadowNode rootNode = new ReactShadowNodeImpl(); + I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance(); + // TODO: setLayoutDirection for the rootNode + rootNode.setViewClassName("Root"); + rootNode.setReactTag(rootTag); + rootNode.setThemedContext(themedReactContext); + return rootNode; } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/RootShadowNodeRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/RootShadowNodeRegistry.java new file mode 100644 index 00000000000000..5aeff65500afca --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/RootShadowNodeRegistry.java @@ -0,0 +1,29 @@ +package com.facebook.react.fabric; + +import android.util.SparseArray; +import com.facebook.react.uimanager.ReactShadowNode; + +/** + * Simple container class to keep track of {@link ReactShadowNode}s that represents the Root + * Shadow Nodes of a {@link FabricUIManagerModule} + */ +public class RootShadowNodeRegistry { + + private final SparseArray mTagsToRootNodes; + + public RootShadowNodeRegistry() { + mTagsToRootNodes = new SparseArray<>(); + } + + public void addNode(ReactShadowNode node) { + mTagsToRootNodes.put(node.getReactTag(), node); + } + + public void removeNode(int tag) { + mTagsToRootNodes.remove(tag); + } + + public ReactShadowNode getNode(int tag) { + return mTagsToRootNodes.get(tag); + } +} diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java index 92e5badc695830..69c130aa80b79e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java @@ -132,11 +132,8 @@ public interface ReactShadowNode { T getRootNode(); - @Deprecated() //Replaced by setRootTag method. void setRootNode(T rootNode); - void setRootTag(int rootTag); - void setViewClassName(String viewClassName); @Nullable diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index cf0b8b37a12108..c12f5fb9ff8a4d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -410,11 +410,6 @@ public final void setRootNode(ReactShadowNodeImpl rootNode) { mRootNode = rootNode; } - @Override - public void setRootTag(int rootTag) { - mRootTag = rootTag; - } - @Override public final void setViewClassName(String viewClassName) { mViewClassName = viewClassName; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index 7c59caafb67a2c..98e4a592c6ec9d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -277,7 +277,6 @@ public void createView(int tag, String className, int rootViewTag, ReadableMap p cssNode.setReactTag(tag); cssNode.setViewClassName(className); cssNode.setRootNode(rootNode); - if (rootNode != null) cssNode.setRootTag(rootNode.getReactTag()); cssNode.setThemedContext(rootNode.getThemedContext()); mShadowNodeRegistry.addNode(cssNode); From e214bb39710b8ee1af95ef075422115c73efdb5c Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Fri, 23 Feb 2018 03:25:25 -0800 Subject: [PATCH 079/267] `DevSupportManager`: tag `RELOAD` marker with metro host Summary: Adds the configured metro host to `ReactMarker.logMarker(ReactMarkerConstants.RELOAD)`. This may be used for diagnostics in marker listeners Reviewed By: bnham Differential Revision: D7041086 fbshipit-source-id: 0b0777b1cd4c74b29b9245e925cf7851b24985fa --- .../com/facebook/react/devsupport/DevSupportManagerImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java index 656ccd61426604..c04211a98b0942 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java @@ -825,7 +825,9 @@ public void handleReloadJS() { UiThreadUtil.assertOnUiThread(); - ReactMarker.logMarker(ReactMarkerConstants.RELOAD); + ReactMarker.logMarker( + ReactMarkerConstants.RELOAD, + mDevSettings.getPackagerConnectionSettings().getDebugServerHost()); // dismiss redbox if exists hideRedboxDialog(); From a29906a209f65c671eab9ad3327aa28b1e9ea530 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Fri, 23 Feb 2018 03:25:47 -0800 Subject: [PATCH 080/267] Upgrade Jest to 22.4.2 Reviewed By: mjesun Differential Revision: D7060484 fbshipit-source-id: 91cc7b6d66a2bb99242c144e011eef4393f87e9e --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e4041fc55db551..d37d109c99d67f 100644 --- a/package.json +++ b/package.json @@ -215,7 +215,7 @@ "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.6.1", "flow-bin": "^0.66.0", - "jest": "22.4.0", + "jest": "22.4.2", "jest-junit": "3.6.0", "prettier": "1.9.1", "react": "^16.3.0-alpha.1", From 8d74af4d60d00294d9275c50ac1814ac1fc2bd1a Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Fri, 23 Feb 2018 07:35:49 -0800 Subject: [PATCH 081/267] Release Metro 0.27.0 Reviewed By: davidaurelio Differential Revision: D7067140 fbshipit-source-id: a2ae64a8049e5ef883c08f4abbe108401427b0aa --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d37d109c99d67f..9b8c58cb290d45 100644 --- a/package.json +++ b/package.json @@ -174,8 +174,8 @@ "graceful-fs": "^4.1.3", "inquirer": "^3.0.6", "lodash": "^4.17.5", - "metro": "^0.26.0", - "metro-core": "^0.26.0", + "metro": "^0.27.0", + "metro-core": "^0.27.0", "mime": "^1.3.4", "minimist": "^1.2.0", "mkdirp": "^0.5.1", From 33a893e18b9cc59bbfaf86b3f0089fe49913b5b8 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Fri, 23 Feb 2018 08:46:48 -0800 Subject: [PATCH 082/267] react-native: prefer custom source extensions over default extensions Reviewed By: mjesun Differential Revision: D7066617 fbshipit-source-id: cdde7451cb817d62d6705071752fce0686cf04dc --- local-cli/bundle/buildBundle.js | 2 +- local-cli/server/runServer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 66fad891ae77f8..36081a6052cb8a 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -100,7 +100,7 @@ async function buildBundle( providesModuleNodeModules: providesModuleNodeModules, resetCache: args.resetCache, reporter: new TerminalReporter(terminal), - sourceExts: defaultSourceExts.concat(sourceExts), + sourceExts: sourceExts.concat(defaultSourceExts), transformCache: TransformCaching.useTempDir(), transformModulePath: transformModulePath, watch: false, diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 396c57ce6741b7..8054190e1b85b7 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -187,7 +187,7 @@ function getPackagerServer(args, config, reporter) { providesModuleNodeModules: providesModuleNodeModules, reporter, resetCache: args.resetCache, - sourceExts: defaultSourceExts.concat(args.sourceExts), + sourceExts: args.sourceExts.concat(defaultSourceExts), transformModulePath: transformModulePath, transformCache: TransformCaching.useTempDir(), verbose: args.verbose, From 87f98bcd7c79b3ddcf6ffcae8ad11814ef296bb1 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Fri, 23 Feb 2018 09:43:45 -0800 Subject: [PATCH 083/267] BundleDownloader/DevServerHelper: Close http responses Reviewed By: amnn Differential Revision: D7067204 fbshipit-source-id: 9b3dde374280b8d7bdc028a14e9218f37cfc87f2 --- .../react/devsupport/BundleDownloader.java | 205 +++++++++++------- .../react/devsupport/DevServerHelper.java | 3 +- 2 files changed, 122 insertions(+), 86 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java index cf257cc8f629ba..b7c7ed7b962a8a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java @@ -110,99 +110,136 @@ public void downloadBundleFromURL( // .addHeader("Accept", "multipart/mixed") .build(); mDownloadBundleFromURLCall = Assertions.assertNotNull(mClient.newCall(request)); - mDownloadBundleFromURLCall.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - // ignore callback if call was cancelled - if (mDownloadBundleFromURLCall == null || mDownloadBundleFromURLCall.isCanceled()) { - mDownloadBundleFromURLCall = null; - return; - } - mDownloadBundleFromURLCall = null; - - callback.onFailure(DebugServerException.makeGeneric( - "Could not connect to development server.", - "URL: " + call.request().url().toString(), - e)); - } + mDownloadBundleFromURLCall.enqueue( + new Callback() { + @Override + public void onFailure(Call call, IOException e) { + // ignore callback if call was cancelled + if (mDownloadBundleFromURLCall == null || mDownloadBundleFromURLCall.isCanceled()) { + mDownloadBundleFromURLCall = null; + return; + } + mDownloadBundleFromURLCall = null; - @Override - public void onResponse(Call call, final Response response) throws IOException { - // ignore callback if call was cancelled - if (mDownloadBundleFromURLCall == null || mDownloadBundleFromURLCall.isCanceled()) { - mDownloadBundleFromURLCall = null; - return; - } - mDownloadBundleFromURLCall = null; - - final String url = response.request().url().toString(); - - // Make sure the result is a multipart response and parse the boundary. - String contentType = response.header("content-type"); - Pattern regex = Pattern.compile("multipart/mixed;.*boundary=\"([^\"]+)\""); - Matcher match = regex.matcher(contentType); - if (match.find()) { - String boundary = match.group(1); - MultipartStreamReader bodyReader = new MultipartStreamReader(response.body().source(), boundary); - boolean completed = bodyReader.readAllParts(new MultipartStreamReader.ChunkListener() { - @Override - public void onChunkComplete(Map headers, Buffer body, boolean isLastChunk) throws IOException { - // This will get executed for every chunk of the multipart response. The last chunk - // (isLastChunk = true) will be the JS bundle, the other ones will be progress events - // encoded as JSON. - if (isLastChunk) { - // The http status code for each separate chunk is in the X-Http-Status header. - int status = response.code(); - if (headers.containsKey("X-Http-Status")) { - status = Integer.parseInt(headers.get("X-Http-Status")); - } - processBundleResult(url, status, Headers.of(headers), body, outputFile, bundleInfo, callback); + callback.onFailure( + DebugServerException.makeGeneric( + "Could not connect to development server.", + "URL: " + call.request().url().toString(), + e)); + } + + @Override + public void onResponse(Call call, final Response response) throws IOException { + // ignore callback if call was cancelled + if (mDownloadBundleFromURLCall == null || mDownloadBundleFromURLCall.isCanceled()) { + mDownloadBundleFromURLCall = null; + return; + } + mDownloadBundleFromURLCall = null; + + final String url = response.request().url().toString(); + + // Make sure the result is a multipart response and parse the boundary. + String contentType = response.header("content-type"); + Pattern regex = Pattern.compile("multipart/mixed;.*boundary=\"([^\"]+)\""); + Matcher match = regex.matcher(contentType); + try (Response r = response) { + if (match.find()) { + processMultipartResponse( + url, r, match.group(1), outputFile, bundleInfo, callback); } else { - if (!headers.containsKey("Content-Type") || !headers.get("Content-Type").equals("application/json")) { - return; - } + // In case the server doesn't support multipart/mixed responses, fallback to normal + // download. + processBundleResult( + url, + r.code(), + r.headers(), + Okio.buffer(r.body().source()), + outputFile, + bundleInfo, + callback); + } + } + } + }); + } - try { - JSONObject progress = new JSONObject(body.readUtf8()); - String status = null; - if (progress.has("status")) { - status = progress.getString("status"); + private void processMultipartResponse( + final String url, + final Response response, + String boundary, + final File outputFile, + @Nullable final BundleInfo bundleInfo, + final DevBundleDownloadListener callback) + throws IOException { + + MultipartStreamReader bodyReader = + new MultipartStreamReader(response.body().source(), boundary); + boolean completed = + bodyReader.readAllParts( + new MultipartStreamReader.ChunkListener() { + @Override + public void onChunkComplete( + Map headers, Buffer body, boolean isLastChunk) + throws IOException { + // This will get executed for every chunk of the multipart response. The last chunk + // (isLastChunk = true) will be the JS bundle, the other ones will be progress + // events + // encoded as JSON. + if (isLastChunk) { + // The http status code for each separate chunk is in the X-Http-Status header. + int status = response.code(); + if (headers.containsKey("X-Http-Status")) { + status = Integer.parseInt(headers.get("X-Http-Status")); } - Integer done = null; - if (progress.has("done")) { - done = progress.getInt("done"); + processBundleResult( + url, status, Headers.of(headers), body, outputFile, bundleInfo, callback); + } else { + if (!headers.containsKey("Content-Type") + || !headers.get("Content-Type").equals("application/json")) { + return; } - Integer total = null; - if (progress.has("total")) { - total = progress.getInt("total"); + + try { + JSONObject progress = new JSONObject(body.readUtf8()); + String status = null; + if (progress.has("status")) { + status = progress.getString("status"); + } + Integer done = null; + if (progress.has("done")) { + done = progress.getInt("done"); + } + Integer total = null; + if (progress.has("total")) { + total = progress.getInt("total"); + } + callback.onProgress(status, done, total); + } catch (JSONException e) { + FLog.e(ReactConstants.TAG, "Error parsing progress JSON. " + e.toString()); } - callback.onProgress(status, done, total); - } catch (JSONException e) { - FLog.e(ReactConstants.TAG, "Error parsing progress JSON. " + e.toString()); } } - } - @Override - public void onChunkProgress(Map headers, long loaded, long total) throws IOException { - if ("application/javascript".equals(headers.get("Content-Type"))) { - callback.onProgress( - "Downloading JavaScript bundle", - (int) (loaded / 1024), - (int) (total / 1024)); + + @Override + public void onChunkProgress(Map headers, long loaded, long total) + throws IOException { + if ("application/javascript".equals(headers.get("Content-Type"))) { + callback.onProgress( + "Downloading JavaScript bundle", (int) (loaded / 1024), (int) (total / 1024)); + } } - } - }); - if (!completed) { - callback.onFailure(new DebugServerException( - "Error while reading multipart response.\n\nResponse code: " + response.code() + "\n\n" + - "URL: " + call.request().url().toString() + "\n\n")); - } - } else { - // In case the server doesn't support multipart/mixed responses, fallback to normal download. - processBundleResult(url, response.code(), response.headers(), Okio.buffer(response.body().source()), outputFile, bundleInfo, callback); - } - } - }); + }); + if (!completed) { + callback.onFailure( + new DebugServerException( + "Error while reading multipart response.\n\nResponse code: " + + response.code() + + "\n\n" + + "URL: " + + url.toString() + + "\n\n")); + } } private void processBundleResult( diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java index 4d7bd7c84fc207..09d87f28088001 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java @@ -629,8 +629,7 @@ public String getJSBundleURLForRemoteDebugging(String mainModuleName) { .url(resourceURL) .build(); - try { - Response response = mClient.newCall(request).execute(); + try (Response response = mClient.newCall(request).execute()) { if (!response.isSuccessful()) { return null; } From 446ce49e9b097d2a5e95b0f17aa23756733c27ec Mon Sep 17 00:00:00 2001 From: Reem Helou Date: Fri, 23 Feb 2018 10:41:30 -0800 Subject: [PATCH 084/267] Fix Bug with Date Picker IOS Reviewed By: sahrens Differential Revision: D7052609 fbshipit-source-id: 740fffa9ad55ccd21347626f9c5dc180fcc4094d --- .../DatePicker/DatePickerIOS.ios.js | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index 9d3e1e30e5d5ce..b08bf8f93412bf 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -13,6 +13,7 @@ const NativeMethodsMixin = require('NativeMethodsMixin'); const React = require('React'); +const invariant = require('fbjs/lib/invariant'); const PropTypes = require('prop-types'); const StyleSheet = require('StyleSheet'); const View = require('View'); @@ -46,7 +47,17 @@ const DatePickerIOS = createReactClass({ /** * The currently selected date. */ - date: PropTypes.instanceOf(Date).isRequired, + date: PropTypes.instanceOf(Date), + + /** + * Provides an initial value that will change when the user starts selecting + * a date. It is useful for simple use-cases where you do not want to deal + * with listening to events and updating the date prop to keep the + * controlled state in sync. The controlled state has known bugs which + * causes it to go out of sync with native. The initialDate prop is intended + * to allow you to have native be source of truth. + */ + initialDate: PropTypes.instanceOf(Date), /** * Date change handler. @@ -102,6 +113,17 @@ const DatePickerIOS = createReactClass({ }; }, + componentDidUpdate: function() { + if (this.props.date) { + const propsTimeStamp = this.props.date.getTime(); + if (this._picker) { + this._picker.setNativeProps({ + date: propsTimeStamp, + }); + } + } + }, + _onChange: function(event: Event) { const nativeTimeStamp = event.nativeEvent.timestamp; this.props.onDateChange && this.props.onDateChange( @@ -109,27 +131,20 @@ const DatePickerIOS = createReactClass({ ); // $FlowFixMe(>=0.41.0) this.props.onChange && this.props.onChange(event); - - // We expect the onChange* handlers to be in charge of updating our `date` - // prop. That way they can also disallow/undo/mutate the selection of - // certain values. In other words, the embedder of this component should - // be the source of truth, not the native component. - const propsTimeStamp = this.props.date.getTime(); - if (this._picker && nativeTimeStamp !== propsTimeStamp) { - this._picker.setNativeProps({ - date: propsTimeStamp, - }); - } }, render: function() { const props = this.props; + invariant( + props.date || props.initialDate, + 'A selected date or initial date should be specified.', + ); return ( { this._picker = picker; } } style={styles.datePickerIOS} - date={props.date.getTime()} + date={props.date ? props.date.getTime() : props.initialDate ? props.initialDate.getTime() : undefined} locale={props.locale ? props.locale : undefined} maximumDate={ props.maximumDate ? props.maximumDate.getTime() : undefined From b9be28915cf323eb36f1d7c77821cdf994954074 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Fri, 23 Feb 2018 11:08:14 -0800 Subject: [PATCH 085/267] Remove Platform check from WebSocket module Summary: WebSocket uses the Platform module to check how many arguments for the `close` method should be used. In react-native-windows, we have the same number of arguments for `close` as Android, so we're prevented from using this module as-is because of the platform check (see https://github.com/Microsoft/react-native-windows/blob/master/Libraries/WebSocket/WebSocket.windows.js#L136). By switching to an argument count check, this module becomes more useful cross-platform. If you'd like to keep the platform check, I'm also open to inverting the conditional, e.g., `if (Platform.OS !== 'ios')`. I'd like to minimize the amount of code I need to copy over to react-native-windows for platform-specific overrides. Run jest tests. N/A [GENERAL][MINOR][ENHANCEMENT][Libraries/WebSocket/WebSocket.js] - Better enable cross-platform support of WebSocket.js Closes https://github.com/facebook/react-native/pull/18056 Differential Revision: D7070380 Pulled By: TheSavior fbshipit-source-id: 9bfd47654d0bf6f0e07fc799853a206721467525 --- Libraries/WebSocket/WebSocket.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/WebSocket/WebSocket.js b/Libraries/WebSocket/WebSocket.js index 13e614557d78b4..daa1ed77ca050d 100644 --- a/Libraries/WebSocket/WebSocket.js +++ b/Libraries/WebSocket/WebSocket.js @@ -14,7 +14,6 @@ const EventTarget = require('event-target-shim'); const NativeEventEmitter = require('NativeEventEmitter'); const BlobManager = require('BlobManager'); const NativeModules = require('NativeModules'); -const Platform = require('Platform'); const WebSocketEvent = require('WebSocketEvent'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error @@ -203,7 +202,7 @@ class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) { } _close(code?: number, reason?: string): void { - if (Platform.OS === 'android') { + if (WebSocketModule.close.length === 3) { // See https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent const statusCode = typeof code === 'number' ? code : CLOSE_NORMAL; const closeReason = typeof reason === 'string' ? reason : ''; From 25b0c374b37fa7cc602515a88e8954b2bc9fa239 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Fri, 23 Feb 2018 16:01:53 -0800 Subject: [PATCH 086/267] JSC bindings for FabricUIManager - Android Reviewed By: fkgozali Differential Revision: D7054214 fbshipit-source-id: 6275a8a3e2a87dfd851a09392f09658538083483 --- .../react/fabric/FabricUIManagerModule.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java index 473eee7f6247e5..dbed0e09d66160 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerModule.java @@ -3,7 +3,7 @@ package com.facebook.react.fabric; import com.facebook.react.bridge.ReactApplicationContext; -import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.bridge.ReadableNativeMap; import com.facebook.react.modules.i18nmanager.I18nUtil; import com.facebook.react.uimanager.MeasureSpecProvider; import com.facebook.react.uimanager.ReactRootViewTagGenerator; @@ -18,7 +18,6 @@ import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; - /** * This class is responsible to create, clone and update {@link ReactShadowNode} using the * Fabric API. @@ -43,7 +42,7 @@ public FabricUIManagerModule(ReactApplicationContext reactContext, public ReactShadowNode createNode(int reactTag, String viewName, int rootTag, - ReadableMap props) { + ReadableNativeMap props) { ViewManager viewManager = mViewManagerRegistry.get(viewName); ReactShadowNode node = viewManager.createShadowNodeInstance(mReactApplicationContext); @@ -58,7 +57,7 @@ private ReactShadowNode getRootNode(int rootTag) { return mRootShadowNodeRegistry.getNode(rootTag); } - private ReactStylesDiffMap updateProps(ReadableMap props, ReactShadowNode node) { + private ReactStylesDiffMap updateProps(ReadableNativeMap props, ReactShadowNode node) { ReactStylesDiffMap styles = null; if (props != null) { styles = new ReactStylesDiffMap(props); @@ -95,7 +94,7 @@ public ReactShadowNode cloneNodeWithNewChildren(ReactShadowNode node) { * props will be overridden with the {@link ReadableMap} received by parameter. */ @Nullable - public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableMap newProps) { + public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableNativeMap newProps) { ReactShadowNode clone = cloneNode(node); updateProps(newProps, clone); return clone; @@ -110,7 +109,7 @@ public ReactShadowNode cloneNodeWithNewProps(ReactShadowNode node, ReadableMap n @Nullable public ReactShadowNode cloneNodeWithNewChildrenAndProps( ReactShadowNode node, - ReadableMap newProps) { + ReadableNativeMap newProps) { ReactShadowNode clone = cloneNodeWithNewChildren(node); updateProps(newProps, clone); return clone; @@ -129,7 +128,7 @@ public void appendChild(ReactShadowNode parent, ReactShadowNode child) { * @return an empty {@link List} that will be used to append the * {@link ReactShadowNode} elements of the root. Typically this List will contain one element. */ - public List createChildSet() { + public List createChildSet(int rootTag) { return new ArrayList<>(1); } From 486ac9dc823c71202a3d92d3718aae85271dcc96 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Fri, 23 Feb 2018 16:46:06 -0800 Subject: [PATCH 087/267] update FabricUIManager to call the right JS object Reviewed By: sebmarkbage Differential Revision: D7037275 fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911 --- Libraries/Components/View/FabricView.js | 113 +++++++++ Libraries/ReactNative/AppContainer.js | 4 +- Libraries/ReactNative/FabricUIManager.js | 38 +-- Libraries/ReactNative/renderFabricSurface.js | 5 +- .../ReactNative/requireFabricComponent.js | 240 ++++++++++++++++++ Libraries/Renderer/ReactFabric-dev.js | 3 +- Libraries/Renderer/ReactFabric-prod.js | 3 +- .../Renderer/shims/ReactFabricInternals.js | 32 +++ React/Fabric/RCTFabricUIManager.mm | 5 + 9 files changed, 408 insertions(+), 35 deletions(-) create mode 100644 Libraries/Components/View/FabricView.js create mode 100644 Libraries/ReactNative/requireFabricComponent.js create mode 100644 Libraries/Renderer/shims/ReactFabricInternals.js diff --git a/Libraries/Components/View/FabricView.js b/Libraries/Components/View/FabricView.js new file mode 100644 index 00000000000000..4d686f7beb29cb --- /dev/null +++ b/Libraries/Components/View/FabricView.js @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule FabricView + * @flow + * @format + */ +'use strict'; + +/** + * This is a temporary fork of View.js for Fabric purpose. + * Do not use outside of Fabric tree. + */ + +const Platform = require('Platform'); +const React = require('React'); +const ReactNativeStyleAttributes = require('ReactNativeStyleAttributes'); +const ReactNativeViewAttributes = require('ReactNativeViewAttributes'); +const ViewPropTypes = require('ViewPropTypes'); +const {NativeMethodsMixin} = require('ReactFabricInternals'); +const {ViewContextTypes} = require('ViewContext'); + +const createReactClass = require('create-react-class'); +const invariant = require('fbjs/lib/invariant'); +const requireFabricComponent = require('requireFabricComponent'); + +import type {ViewProps} from 'ViewPropTypes'; +import type {ViewChildContext} from 'ViewContext'; + +export type Props = ViewProps; + +/** + * The most fundamental component for building a UI. + * + * See http://facebook.github.io/react-native/docs/view.html + */ +const View = createReactClass({ + displayName: 'View', + // TODO: We should probably expose the mixins, viewConfig, and statics publicly. For example, + // one of the props is of type AccessibilityComponentType. That is defined as a const[] above, + // but it is not rendered by the docs, since `statics` below is not rendered. So its Possible + // values had to be hardcoded. + mixins: [NativeMethodsMixin], + + // `propTypes` should not be accessed directly on View since this wrapper only + // exists for DEV mode. However it's important for them to be declared. + // If the object passed to `createClass` specifies `propTypes`, Flow will + // create a static type from it. + propTypes: ViewPropTypes, + + /** + * `NativeMethodsMixin` will look for this when invoking `setNativeProps`. We + * make `this` look like an actual native component class. + */ + viewConfig: { + uiViewClassName: 'RCTView', + validAttributes: ReactNativeViewAttributes.RCTView, + }, + + childContextTypes: ViewContextTypes, + + getChildContext(): ViewChildContext { + return { + isInAParentText: false, + }; + }, + + render() { + invariant( + !(this.context.isInAParentText && Platform.OS === 'android'), + 'Nesting of within is not supported on Android.', + ); + + // WARNING: This method will not be used in production mode as in that mode we + // replace wrapper component View with generated native wrapper RCTView. Avoid + // adding functionality this component that you'd want to be available in both + // dev and prod modes. + return ; + }, +}); + +const RCTView = requireFabricComponent('RCTView', View, { + nativeOnly: { + nativeBackgroundAndroid: true, + nativeForegroundAndroid: true, + }, + fabric: true, +}); + +if (__DEV__) { + const UIManager = require('UIManager'); + const viewConfig = + (UIManager.viewConfigs && UIManager.viewConfigs.RCTView) || {}; + for (const prop in viewConfig.nativeProps) { + const viewAny: any = View; // Appease flow + if (!viewAny.propTypes[prop] && !ReactNativeStyleAttributes[prop]) { + throw new Error( + 'View is missing propType for native prop `' + prop + '`', + ); + } + } +} + +let ViewToExport = RCTView; +if (__DEV__) { + ViewToExport = View; +} + +// No one should depend on the DEV-mode createClass View wrapper. +module.exports = ((ViewToExport: any): typeof RCTView); diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index cb1ea048e4adbc..3060d6de450049 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -27,6 +27,7 @@ type Props = {| * suppresses an error when upgrading Flow's support for React. To see the * error delete this comment and run Flow. */ children?: React.Children, + fabric?: boolean, rootTag: number, WrapperComponent?: ?React.ComponentType<*>, |}; @@ -90,7 +91,8 @@ class AppContainer extends React.Component { render(): React.Node { let yellowBox = null; if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { + if (!global.__RCTProfileIsProfiling && !this.props.fabric) { + // TODO: Fabric doesn't support YellowBox. const YellowBox = require('YellowBox'); yellowBox = ; } diff --git a/Libraries/ReactNative/FabricUIManager.js b/Libraries/ReactNative/FabricUIManager.js index 641df41755fdc9..602b5459101b7d 100644 --- a/Libraries/ReactNative/FabricUIManager.js +++ b/Libraries/ReactNative/FabricUIManager.js @@ -10,53 +10,29 @@ */ 'use strict'; -// TODO: fix the types -type Node = number; -type NodeSet = number; +// TODO: type these properly. +type Node = {}; +type NodeSet = Array; type NodeProps = {}; +type InstanceHandle = {}; type Spec = {| +createNode: ( reactTag: number, viewName: string, rootTag: number, props: NodeProps, - instanceHandle: number, + instanceHandle: InstanceHandle, ) => Node, +cloneNode: (node: Node) => Node, +cloneNodeWithNewChildren: (node: Node) => Node, +cloneNodeWithNewProps: (node: Node, newProps: NodeProps) => Node, +cloneNodeWithNewChildrenAndProps: (node: Node, newProps: NodeProps) => Node, + +createChildSet: (rootTag: number) => NodeSet, +appendChild: (parentNode: Node, child: Node) => Node, +appendChildToSet: (childSet: NodeSet, child: Node) => void, +completeRoot: (rootTag: number, childSet: NodeSet) => void, |}; -const NativeFabricUIManager: Spec = require('NativeModules').FabricUIManager; - -const FabricUIManager: Spec = { - createNode( - reactTag: number, - viewName: string, - rootTag: number, - props: NodeProps, - instanceHandle: number, - ): number { - return NativeFabricUIManager.createNode( - reactTag, - viewName, - rootTag, - props, - 0, // TODO: instanceHandle is cannot be JSON serialized. - ); - }, - cloneNode: NativeFabricUIManager.cloneNode, - cloneNodeWithNewChildren: NativeFabricUIManager.cloneNodeWithNewChildren, - cloneNodeWithNewProps: NativeFabricUIManager.cloneNodeWithNewProps, - cloneNodeWithNewChildrenAndProps: - NativeFabricUIManager.cloneNodeWithNewChildrenAndProps, - appendChild: NativeFabricUIManager.appendChild, - appendChildToSet: NativeFabricUIManager.appendChildToSet, - completeRoot: NativeFabricUIManager.completeRoot, -}; +const FabricUIManager: ?Spec = global.nativeFabricUIManager; module.exports = FabricUIManager; diff --git a/Libraries/ReactNative/renderFabricSurface.js b/Libraries/ReactNative/renderFabricSurface.js index f8acdd2c8dcb1f..841a079b1d0675 100644 --- a/Libraries/ReactNative/renderFabricSurface.js +++ b/Libraries/ReactNative/renderFabricSurface.js @@ -30,7 +30,10 @@ function renderFabricSurface( invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); let renderable = ( - + ); diff --git a/Libraries/ReactNative/requireFabricComponent.js b/Libraries/ReactNative/requireFabricComponent.js new file mode 100644 index 00000000000000..1544c6fdff976e --- /dev/null +++ b/Libraries/ReactNative/requireFabricComponent.js @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule requireFabricComponent + * @flow + * @format + */ +'use strict'; + +const Platform = require('Platform'); +const { + ReactNativeBridgeEventPlugin, + createReactNativeComponentClass, +} = require('ReactFabricInternals'); +const ReactNativeStyleAttributes = require('ReactNativeStyleAttributes'); +const UIManager = require('UIManager'); + +const insetsDiffer = require('insetsDiffer'); +const matricesDiffer = require('matricesDiffer'); +const pointsDiffer = require('pointsDiffer'); +const processColor = require('processColor'); +const resolveAssetSource = require('resolveAssetSource'); +const sizesDiffer = require('sizesDiffer'); +const verifyPropTypes = require('verifyPropTypes'); +const invariant = require('fbjs/lib/invariant'); +const warning = require('fbjs/lib/warning'); + +/** + * Used to create React components that directly wrap native component + * implementations. Config information is extracted from data exported from the + * UIManager module. You should also wrap the native component in a + * hand-written component with full propTypes definitions and other + * documentation - pass the hand-written component in as `componentInterface` to + * verify all the native props are documented via `propTypes`. + * + * If some native props shouldn't be exposed in the wrapper interface, you can + * pass null for `componentInterface` and call `verifyPropTypes` directly + * with `nativePropsToIgnore`; + * + * Common types are lined up with the appropriate prop differs with + * `TypeToDifferMap`. Non-scalar types not in the map default to `deepDiffer`. + */ +import type {ComponentInterface} from 'verifyPropTypes'; + +let hasAttachedDefaultEventTypes: boolean = false; + +function requireNativeComponent( + viewName: string, + componentInterface?: ?ComponentInterface, + extraConfig?: ?{nativeOnly?: Object}, +): React$ComponentType | string { + function attachDefaultEventTypes(viewConfig: any) { + if (Platform.OS === 'android') { + // This is supported on Android platform only, + // as lazy view managers discovery is Android-specific. + if (UIManager.ViewManagerNames) { + // Lazy view managers enabled. + viewConfig = merge(viewConfig, UIManager.getDefaultEventTypes()); + } else { + viewConfig.bubblingEventTypes = merge( + viewConfig.bubblingEventTypes, + UIManager.genericBubblingEventTypes, + ); + viewConfig.directEventTypes = merge( + viewConfig.directEventTypes, + UIManager.genericDirectEventTypes, + ); + } + } + } + + function merge(destination: ?Object, source: ?Object): ?Object { + if (!source) { + return destination; + } + if (!destination) { + return source; + } + + for (const key in source) { + if (!source.hasOwnProperty(key)) { + continue; + } + + var sourceValue = source[key]; + if (destination.hasOwnProperty(key)) { + const destinationValue = destination[key]; + if ( + typeof sourceValue === 'object' && + typeof destinationValue === 'object' + ) { + sourceValue = merge(destinationValue, sourceValue); + } + } + destination[key] = sourceValue; + } + return destination; + } + + // Don't load the ViewConfig from UIManager until it's needed for rendering. + // Lazy-loading this can help avoid Prepack deopts. + function getViewConfig() { + const viewConfig = UIManager[viewName]; + + invariant( + viewConfig != null && !viewConfig.NativeProps != null, + 'Native component for "%s" does not exist', + viewName, + ); + + viewConfig.uiViewClassName = viewName; + viewConfig.validAttributes = {}; + + // ReactNative `View.propTypes` have been deprecated in favor of + // `ViewPropTypes`. In their place a temporary getter has been added with a + // deprecated warning message. Avoid triggering that warning here by using + // temporary workaround, __propTypesSecretDontUseThesePlease. + // TODO (bvaughn) Revert this particular change any time after April 1 + if (componentInterface) { + viewConfig.propTypes = + typeof componentInterface.__propTypesSecretDontUseThesePlease === + 'object' + ? componentInterface.__propTypesSecretDontUseThesePlease + : componentInterface.propTypes; + } else { + viewConfig.propTypes = null; + } + + let baseModuleName = viewConfig.baseModuleName; + let bubblingEventTypes = viewConfig.bubblingEventTypes; + let directEventTypes = viewConfig.directEventTypes; + let nativeProps = viewConfig.NativeProps; + while (baseModuleName) { + const baseModule = UIManager[baseModuleName]; + if (!baseModule) { + warning(false, 'Base module "%s" does not exist', baseModuleName); + baseModuleName = null; + } else { + bubblingEventTypes = { + ...baseModule.bubblingEventTypes, + ...bubblingEventTypes, + }; + directEventTypes = { + ...baseModule.directEventTypes, + ...directEventTypes, + }; + nativeProps = { + ...baseModule.NativeProps, + ...nativeProps, + }; + baseModuleName = baseModule.baseModuleName; + } + } + + viewConfig.bubblingEventTypes = bubblingEventTypes; + viewConfig.directEventTypes = directEventTypes; + + for (const key in nativeProps) { + let useAttribute = false; + const attribute = {}; + + const differ = TypeToDifferMap[nativeProps[key]]; + if (differ) { + attribute.diff = differ; + useAttribute = true; + } + + const processor = TypeToProcessorMap[nativeProps[key]]; + if (processor) { + attribute.process = processor; + useAttribute = true; + } + + viewConfig.validAttributes[key] = useAttribute ? attribute : true; + } + + // Unfortunately, the current set up puts the style properties on the top + // level props object. We also need to add the nested form for API + // compatibility. This allows these props on both the top level and the + // nested style level. TODO: Move these to nested declarations on the + // native side. + viewConfig.validAttributes.style = ReactNativeStyleAttributes; + + if (__DEV__) { + componentInterface && + verifyPropTypes( + componentInterface, + viewConfig, + extraConfig && extraConfig.nativeOnly, + ); + } + + if (!hasAttachedDefaultEventTypes) { + attachDefaultEventTypes(viewConfig); + hasAttachedDefaultEventTypes = true; + } + + // Register this view's event types with the ReactNative renderer. + // This enables view managers to be initialized lazily, improving perf, + // While also enabling 3rd party components to define custom event types. + ReactNativeBridgeEventPlugin.processEventTypes(viewConfig); + + return viewConfig; + } + + return createReactNativeComponentClass(viewName, getViewConfig); +} + +const TypeToDifferMap = { + // iOS Types + CATransform3D: matricesDiffer, + CGPoint: pointsDiffer, + CGSize: sizesDiffer, + UIEdgeInsets: insetsDiffer, + // Android Types + // (not yet implemented) +}; + +function processColorArray(colors: ?Array): ?Array { + return colors && colors.map(processColor); +} + +const TypeToProcessorMap = { + // iOS Types + CGColor: processColor, + CGColorArray: processColorArray, + UIColor: processColor, + UIColorArray: processColorArray, + CGImage: resolveAssetSource, + UIImage: resolveAssetSource, + RCTImageSource: resolveAssetSource, + // Android Types + Color: processColor, + ColorArray: processColorArray, +}; + +module.exports = requireNativeComponent; diff --git a/Libraries/Renderer/ReactFabric-dev.js b/Libraries/Renderer/ReactFabric-dev.js index f3ef96ccd7f284..81114b8c8f49f1 100644 --- a/Libraries/Renderer/ReactFabric-dev.js +++ b/Libraries/Renderer/ReactFabric-dev.js @@ -2760,7 +2760,8 @@ var ReactNativeGlobalResponderHandler = { /** * Register the event emitter with the native bridge */ -RCTEventEmitter.register(ReactNativeEventEmitter); +// TODO: This event emitter is interfering with the existing ReactNative renderer. +// RCTEventEmitter.register(ReactNativeEventEmitter); /** * Inject module for resolving DOM hierarchy and plugin ordering. diff --git a/Libraries/Renderer/ReactFabric-prod.js b/Libraries/Renderer/ReactFabric-prod.js index d4d20d3ac85504..e25c7162a163f1 100644 --- a/Libraries/Renderer/ReactFabric-prod.js +++ b/Libraries/Renderer/ReactFabric-prod.js @@ -1140,7 +1140,8 @@ var ReactNativeEventEmitter = Object.freeze({ } } }); -RCTEventEmitter.register(ReactNativeEventEmitter); +// TODO: This event emitter is interfering with the existing ReactNative renderer. +// RCTEventEmitter.register(ReactNativeEventEmitter); injection.injectEventPluginOrder([ "ResponderEventPlugin", "ReactNativeBridgeEventPlugin" diff --git a/Libraries/Renderer/shims/ReactFabricInternals.js b/Libraries/Renderer/shims/ReactFabricInternals.js new file mode 100644 index 00000000000000..d360803412a14a --- /dev/null +++ b/Libraries/Renderer/shims/ReactFabricInternals.js @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule ReactFabricInternals + * @flow + * @format + */ + +'use strict'; + +const { + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} = require('ReactFabric'); + +import type {NativeMethodsMixinType} from 'ReactNativeTypes'; + +const { + NativeMethodsMixin, + ReactNativeBridgeEventPlugin, + createReactNativeComponentClass, +} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + +module.exports = { + NativeMethodsMixin: ((NativeMethodsMixin: any): $Exact< + NativeMethodsMixinType, + >), + ReactNativeBridgeEventPlugin, + createReactNativeComponentClass, +}; diff --git a/React/Fabric/RCTFabricUIManager.mm b/React/Fabric/RCTFabricUIManager.mm index 88fb08e6025151..71d2198b8eb657 100644 --- a/React/Fabric/RCTFabricUIManager.mm +++ b/React/Fabric/RCTFabricUIManager.mm @@ -60,6 +60,11 @@ - (void)appendChild:(RCTShadowView *)parentNode - (void)appendChildToSet:(NSMutableArray *)childSet childNode:(RCTShadowView *)childNode { + if (!childNode) { + // TODO: until this class is fully implemented, we may get nil from JS. + return; + } + [childSet addObject:childNode]; } From 1b63da753fa736ddb7fe8f7ede2416388a856622 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 23 Feb 2018 17:28:32 -0800 Subject: [PATCH 088/267] Implement Cloning for ART Views Reviewed By: achen1 Differential Revision: D7058410 fbshipit-source-id: 394330654be1ab70853f78580c2543e04a3efb7c --- .../com/facebook/react/common/ArrayUtils.java | 11 +++++++ .../react/uimanager/ReactShadowNodeImpl.java | 1 + .../react/views/art/ARTGroupShadowNode.java | 13 ++++++++ .../react/views/art/ARTShapeShadowNode.java | 30 +++++++++++++++---- .../react/views/art/ARTTextShadowNode.java | 13 ++++++++ .../react/views/art/ARTVirtualNode.java | 7 +++++ 6 files changed, 69 insertions(+), 6 deletions(-) create mode 100644 ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java b/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java new file mode 100644 index 00000000000000..0036e9bac13abb --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java @@ -0,0 +1,11 @@ +package com.facebook.react.common; + +import java.util.Arrays; + +public class ArrayUtils { + + public static float[] copyArray(float[] array) { + return array == null ? null : Arrays.copyOf(array, array.length); + } + +} diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java index c12f5fb9ff8a4d..59ab9b69ec3787 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java @@ -123,6 +123,7 @@ public ReactShadowNodeImpl(ReactShadowNodeImpl original) { } } + @Override public ReactShadowNodeImpl mutableCopy() { return new ReactShadowNodeImpl(this); } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java index 780147294f1a44..35cf8169ca18fe 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTGroupShadowNode.java @@ -7,6 +7,7 @@ package com.facebook.react.views.art; +import com.facebook.react.uimanager.ReactShadowNodeImpl; import javax.annotation.Nullable; import android.graphics.Canvas; @@ -25,6 +26,13 @@ public class ARTGroupShadowNode extends ARTVirtualNode { protected @Nullable RectF mClipping; + public ARTGroupShadowNode() { } + + public ARTGroupShadowNode(ARTGroupShadowNode node) { + super(node); + this.mClipping = new RectF(node.mClipping); + } + @ReactProp(name = "clipping") public void setClipping(@Nullable ReadableArray clippingDims) { float[] clippingData = PropHelper.toFloatArray(clippingDims); @@ -34,6 +42,11 @@ public void setClipping(@Nullable ReadableArray clippingDims) { } } + @Override + public ReactShadowNodeImpl mutableCopy() { + return new ARTGroupShadowNode(this); + } + @Override public boolean isVirtual() { return true; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java index dc8980ae2ebc06..e60ad880397b89 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java @@ -7,22 +7,22 @@ package com.facebook.react.views.art; -import javax.annotation.Nullable; - import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.DashPathEffect; +import android.graphics.LinearGradient; import android.graphics.Paint; import android.graphics.Path; import android.graphics.RectF; -import android.graphics.DashPathEffect; -import android.graphics.LinearGradient; import android.graphics.Shader; -import android.graphics.Color; - import com.facebook.common.logging.FLog; import com.facebook.react.bridge.JSApplicationIllegalArgumentException; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.common.ReactConstants; import com.facebook.react.uimanager.annotations.ReactProp; +import javax.annotation.Nullable; + +import static com.facebook.react.common.ArrayUtils.copyArray; /** * Shadow node for virtual ARTShape view @@ -58,6 +58,24 @@ public class ARTShapeShadowNode extends ARTVirtualNode { private int mStrokeCap = CAP_ROUND; private int mStrokeJoin = JOIN_ROUND; + public ARTShapeShadowNode() { } + + public ARTShapeShadowNode(ARTShapeShadowNode node) { + super(node); + mPath = new Path(node.mPath); + mStrokeColor = copyArray(node.mStrokeColor); + mBrushData = copyArray(node.mBrushData); + mStrokeDash = copyArray(node.mStrokeDash); + mStrokeWidth = node.mStrokeWidth; + mStrokeCap = node.mStrokeCap; + mStrokeJoin = node.mStrokeJoin; + } + + @Override + public ARTShapeShadowNode mutableCopy() { + return new ARTShapeShadowNode(this); + } + @ReactProp(name = "d") public void setShapePath(@Nullable ReadableArray shapePath) { float[] pathData = PropHelper.toFloatArray(shapePath); diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java index b10f59bff8d247..4a52e7a28a06c1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTTextShadowNode.java @@ -40,6 +40,19 @@ public class ARTTextShadowNode extends ARTShapeShadowNode { private @Nullable ReadableMap mFrame; private int mTextAlignment = TEXT_ALIGNMENT_LEFT; + public ARTTextShadowNode() { } + + public ARTTextShadowNode(ARTTextShadowNode node) { + super(node); + mTextAlignment = node.mTextAlignment; + mFrame = node.mFrame; // copy reference as mFrame is already immutable + } + + @Override + public ARTShapeShadowNode mutableCopy() { + return new ARTTextShadowNode(this); + } + @ReactProp(name = "frame") public void setFrame(@Nullable ReadableMap frame) { mFrame = frame; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java index 5cc9d49f65f984..158afd16eac943 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTVirtualNode.java @@ -37,6 +37,13 @@ public ARTVirtualNode() { mScale = DisplayMetricsHolder.getWindowDisplayMetrics().density; } + protected ARTVirtualNode(ARTVirtualNode artVirtualNode) { + super(artVirtualNode); + mScale = artVirtualNode.mScale; + mOpacity = artVirtualNode.mOpacity; + mMatrix = new Matrix(artVirtualNode.mMatrix); + } + @Override public boolean isVirtual() { return true; From d8bb990abc226e778e2f32c2de3c6661c0aa64e5 Mon Sep 17 00:00:00 2001 From: Sasha Nikiforov Date: Fri, 23 Feb 2018 19:00:08 -0800 Subject: [PATCH 089/267] Update ReactAndroid build script to support gradle 2.3.0 Summary: We updated to Gradle 2.3.0 and our app's build failed. Our app doesn't provide "repositoryUrl" which is intended to be an optional gradle property. However, Gradle 2.3.0 blows up on findProperty('repositoryUrl') when "repositoryUrl" isn't provided: ```` * What went wrong: A problem occurred configuring project ':ContextMenuAndroid'. > Could not resolve all dependencies for configuration ':ContextMenuAndroid:_debugPublish'. > A problem occurred configuring project ':ReactAndroid'. > Could not get unknown property 'repositoryUrl' for project ':ReactAndroid' of type org.gradle.api.Project. ```` To fix this, we now use "project.hasProperty('repositoryUrl')" to safely detect the presence of the optional "repositoryUrl" property. Since I cannot check it with your build environment, I've created a small demo to show that "project.hasProperty" properly detects the presence of the gradle property "repositoryUrl". I edited "getRepositoryUrl" to throw an exception if "repositoryUrl" is set: ```` def getRepositoryUrl() { if (project.hasProperty('repositoryUrl')) throw new GradleException(property('repositoryUrl')) return project.hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' } ```` Then I ran gradle with "repositoryUrl" set like this (passing the property): ```` ./gradlew -PrepositoryUrl=blah assembleDebug ```` As expected, it detected that "repositoryUrl" was set and threw an exception: ```` * What went wrong: A problem occurred configuring project ':ContextMenuAndroid'. > Could not resolve all dependencies for configuration ':ContextMenuAndroid:_debugPublish'. > A problem occurred configuring project ':ReactAndroid'. > blah ```` The same issue has been reported before - #14811, #14810 Minor changes in the Android build script Closes https://github.com/facebook/react-native/pull/18075 Differential Revision: D7077788 Pulled By: hramos fbshipit-source-id: ecfbab29d0632e7eecb3c6a247df39bc7616653e --- ReactAndroid/release.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/release.gradle b/ReactAndroid/release.gradle index 13cfbaf826ad3f..3e67beb0a3f270 100644 --- a/ReactAndroid/release.gradle +++ b/ReactAndroid/release.gradle @@ -12,15 +12,15 @@ def isReleaseBuild() { } def getRepositoryUrl() { - return hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' + return project.hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' } def getRepositoryUsername() { - return hasProperty('repositoryUsername') ? property('repositoryUsername') : '' + return project.hasProperty('repositoryUsername') ? property('repositoryUsername') : '' } def getRepositoryPassword() { - return hasProperty('repositoryPassword') ? property('repositoryPassword') : '' + return project.hasProperty('repositoryPassword') ? property('repositoryPassword') : '' } def configureReactNativePom(def pom) { From 0ee03178a023a6238510d4a80db7829edf575fca Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Fri, 23 Feb 2018 19:32:36 -0800 Subject: [PATCH 090/267] added C++ setup for FabricUIManager Reviewed By: shergin Differential Revision: D7077312 fbshipit-source-id: e284c151438eb4d1f67a8386580ab54e3dce7c17 --- ReactCommon/fabric/BUCK | 46 ++++++++++++++++++++++++++ ReactCommon/fabric/FabricUIManager.cpp | 46 ++++++++++++++++++++++++++ ReactCommon/fabric/FabricUIManager.h | 34 +++++++++++++++++++ ReactCommon/fabric/ShadowNode.cpp | 15 +++++++++ ReactCommon/fabric/ShadowNode.h | 22 ++++++++++++ 5 files changed, 163 insertions(+) create mode 100644 ReactCommon/fabric/BUCK create mode 100644 ReactCommon/fabric/FabricUIManager.cpp create mode 100644 ReactCommon/fabric/FabricUIManager.h create mode 100644 ReactCommon/fabric/ShadowNode.cpp create mode 100644 ReactCommon/fabric/ShadowNode.h diff --git a/ReactCommon/fabric/BUCK b/ReactCommon/fabric/BUCK new file mode 100644 index 00000000000000..4fcbe82b5b40a9 --- /dev/null +++ b/ReactCommon/fabric/BUCK @@ -0,0 +1,46 @@ +load("@xplat//configurations/buck/apple:flag_defs.bzl", "DEBUG_PREPROCESSOR_FLAGS") +load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS") + +CXX_LIBRARY_COMPILER_FLAGS = [ + "-std=c++14", + "-Wall", +] + +APPLE_COMPILER_FLAGS = [] + +if not IS_OSS_BUILD: + load("@xplat//configurations/buck/apple:flag_defs.bzl", "STATIC_LIBRARY_IOS_FLAGS", "flags") + APPLE_COMPILER_FLAGS = flags.get_flag_value(STATIC_LIBRARY_IOS_FLAGS, 'compiler_flags') + +rn_xplat_cxx_library( + name = "fabric", + srcs = glob(["**/*.cpp"]), + header_namespace = "", + exported_headers = subdir_glob( + [ + ("", "**/*.h"), + ], + prefix = "fabric", + ), + compiler_flags = CXX_LIBRARY_COMPILER_FLAGS + [ + "-fexceptions", + "-frtti", + ], + fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, + fbobjc_preprocessor_flags = DEBUG_PREPROCESSOR_FLAGS + APPLE_INSPECTOR_FLAGS, + force_static = True, + preprocessor_flags = [ + "-DLOG_TAG=\"ReactNative\"", + "-DWITH_FBSYSTRACE=1", + ], + visibility = [ + "PUBLIC", + ], + deps = [ + "xplat//fbsystrace:fbsystrace", + "xplat//folly:headers_only", + "xplat//folly:memory", + "xplat//folly:molly", + "xplat//third-party/glog:glog", + ], +) diff --git a/ReactCommon/fabric/FabricUIManager.cpp b/ReactCommon/fabric/FabricUIManager.cpp new file mode 100644 index 00000000000000..c58fd859f141af --- /dev/null +++ b/ReactCommon/fabric/FabricUIManager.cpp @@ -0,0 +1,46 @@ +// Copyright 2004-present Facebook. All Rights Reserved. + +#include "FabricUIManager.h" +#include "ShadowNode.h" + +namespace facebook { +namespace react { + +FabricUIManager::FabricUIManager() {} + +ShadowNodeRef FabricUIManager::createNode(int reactTag, std::string viewName, int rootTag, folly::dynamic props, void *instanceHandle) { + return std::make_shared(reactTag, viewName, rootTag, props, instanceHandle); +} + +ShadowNodeRef FabricUIManager::cloneNode(const ShadowNodeRef &node) { + return nullptr; +} + +ShadowNodeRef FabricUIManager::cloneNodeWithNewChildren(const ShadowNodeRef &node) { + return nullptr; +} + +ShadowNodeRef FabricUIManager::cloneNodeWithNewProps(const ShadowNodeRef &node, folly::dynamic props) { + return nullptr; +} + +ShadowNodeRef FabricUIManager::cloneNodeWithNewChildrenAndProps(const ShadowNodeRef &node, folly::dynamic newProps) { + return nullptr; +} + +void FabricUIManager::appendChild(const ShadowNodeRef &parentNode, const ShadowNodeRef &childNode) { +} + +ShadowNodeSetRef FabricUIManager::createChildSet(int rootTag) { + return nullptr; +} + +void FabricUIManager::appendChildToSet(const ShadowNodeSetRef &childSet, const ShadowNodeRef &childNode) { +} + +void FabricUIManager::completeRoot(int rootTag) { +} + +}} + + diff --git a/ReactCommon/fabric/FabricUIManager.h b/ReactCommon/fabric/FabricUIManager.h new file mode 100644 index 00000000000000..118a713962a37a --- /dev/null +++ b/ReactCommon/fabric/FabricUIManager.h @@ -0,0 +1,34 @@ +// Copyright 2004-present Facebook. All Rights Reserved. + +#pragma once + +#include +#include +#include + +namespace facebook { +namespace react { + +class ShadowNode; + +typedef std::shared_ptr ShadowNodeRef; +typedef folly::fbvector ShadowNodeSet; +typedef std::shared_ptr ShadowNodeSetRef; + +class FabricUIManager { +public: + FabricUIManager(); + + ShadowNodeRef createNode(int reactTag, std::string viewName, int rootTag, folly::dynamic props, void *instanceHandle); + ShadowNodeRef cloneNode(const ShadowNodeRef &node); + ShadowNodeRef cloneNodeWithNewChildren(const ShadowNodeRef &node); + ShadowNodeRef cloneNodeWithNewProps(const ShadowNodeRef &node, folly::dynamic props); + ShadowNodeRef cloneNodeWithNewChildrenAndProps(const ShadowNodeRef &node, folly::dynamic newProps); + void appendChild(const ShadowNodeRef &parentNode, const ShadowNodeRef &childNode); + ShadowNodeSetRef createChildSet(int rootTag); + void appendChildToSet(const ShadowNodeSetRef &childSet, const ShadowNodeRef &childNode); + void completeRoot(int rootTag); +}; + +}} + diff --git a/ReactCommon/fabric/ShadowNode.cpp b/ReactCommon/fabric/ShadowNode.cpp new file mode 100644 index 00000000000000..39b4d145a798c6 --- /dev/null +++ b/ReactCommon/fabric/ShadowNode.cpp @@ -0,0 +1,15 @@ +// Copyright 2004-present Facebook. All Rights Reserved. + +#include "ShadowNode.h" + +namespace facebook { +namespace react { + +ShadowNode::ShadowNode(int reactTag, std::string viewName, int rootTag, folly::dynamic props, void *instanceHandle) : + reactTag_(reactTag), + viewName_(viewName), + rootTag_(rootTag), + props_(props), + instanceHandle_(instanceHandle) {} + +}} diff --git a/ReactCommon/fabric/ShadowNode.h b/ReactCommon/fabric/ShadowNode.h new file mode 100644 index 00000000000000..a707f7160970a9 --- /dev/null +++ b/ReactCommon/fabric/ShadowNode.h @@ -0,0 +1,22 @@ +// Copyright 2004-present Facebook. All Rights Reserved. + +#pragma once + +#include +#include + +namespace facebook { +namespace react { + +class ShadowNode { +public: + int reactTag_; + std::string viewName_; + int rootTag_; + folly::dynamic props_; + void *instanceHandle_; + + ShadowNode(int reactTag, std::string viewName, int rootTag, folly::dynamic props, void *instanceHandle); +}; + +}} From 8a073c1d8b89305a9a2561a7c33740919730f408 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Sat, 24 Feb 2018 00:59:22 -0800 Subject: [PATCH 091/267] Fix `onLayout` prop for TextInput on Android Summary: When the `autogrow` prop was removed from `TextInput` on Android, the `_onLayout` helper method was removed. This helper method implemented the hook required to make `autogrow` work, then dispatched the `onLayout` event to the handler in `this.props`. This change points passes the `onLayout` handler from `this.props` directly to the inner component. I was updating copied code in react-native-windows and noticed this bug. Run jest tests. N/A [ANDROID][MINOR][BUGFIX] [TextInput] - Fix `onLayout` prop for TextInput on Android Closes https://github.com/facebook/react-native/pull/18040 Differential Revision: D7078736 Pulled By: hramos fbshipit-source-id: 798530729d7f0ee1ebb59f698af4d4b6ff43928b --- Libraries/Components/TextInput/TextInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index b9eb03bd67526e..3ce82932e17b33 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -880,7 +880,7 @@ const TextInput = createReactClass({ return ( Date: Sun, 25 Feb 2018 09:23:23 -0800 Subject: [PATCH 092/267] Fixed problem in Text measurent on iOS Summary: See the comment it code. Reviewed By: mmmulani Differential Revision: D7074168 fbshipit-source-id: e6eda9a47552142ccb0ba8e7bd9a103b0cb4f9f9 --- Libraries/Text/Text/RCTTextShadowView.m | 7 +++++-- .../testTabBarExample_1-iOS10@2x.png | Bin 79650 -> 79631 bytes .../testTabBarExample_1-iOS11@2x.png | Bin 79754 -> 79963 bytes .../testTabBarExample_1@2x.png | Bin 79887 -> 79890 bytes 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Libraries/Text/Text/RCTTextShadowView.m b/Libraries/Text/Text/RCTTextShadowView.m index 574454ac3bd512..1266f8afd74dd9 100644 --- a/Libraries/Text/Text/RCTTextShadowView.m +++ b/Libraries/Text/Text/RCTTextShadowView.m @@ -355,9 +355,12 @@ static YGSize RCTTextShadowViewMeasure(YGNodeRef node, float width, YGMeasureMod MIN(RCTCeilPixelValue(size.height), maximumSize.height) }; + // Adding epsilon value illuminates problems with converting values from + // `double` to `float`, and then rounding them to pixel grid in Yoga. + CGFloat epsilon = 0.001; return (YGSize){ - RCTYogaFloatFromCoreGraphicsFloat(size.width), - RCTYogaFloatFromCoreGraphicsFloat(size.height) + RCTYogaFloatFromCoreGraphicsFloat(size.width + epsilon), + RCTYogaFloatFromCoreGraphicsFloat(size.height + epsilon) }; } diff --git a/RNTester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTabBarExample_1-iOS10@2x.png b/RNTester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTabBarExample_1-iOS10@2x.png index 66c1403e18a001324f517b06350fe1414a6ae698..17e31df9f64946d2560f26e876b6a2ae4d53421b 100644 GIT binary patch delta 10449 zcmeHt>sylP`Zn6wOqx2g8nZHWwPsDu%1PT}8d#atOr^HdasxKzE>bi@1jI*cl$jj0 zR#RpwWKF5LA#;O@fJJJig5?Gk1<4cz0Ttm95O{Is_j`}y{SV#`^Mw!3@f_Uuecsn~ zUe|S=&tv&#dGgP0M*_u5-kZL93xOPj{BY#ZxfHY6F%qRRlDKbf*}weRaL7;oJ2qLJ zzPb0|h5vq0R(5>dS4VC=E(>2}7yHwpgBJf;f8?{ztp54WA5Y)9ahxbnItU57qdDCS z<*YnoB2=hJ4F_jAoNl6#>6H}Lr}h^tgMjA}*J(#9WYyZ0pZ%+A#5-357k*gPA=79@ zkI%xPMY!4bz#ggB%$Uy4P1#ABH6BYUuvl~GMuxZFD)UDU0CdmV@8ibbU>TUDd8}LT zk`Ux--z5wl^Y+-x;yGl&ob}NsC~{7t*?#d-1j%zWRW@(}nF}&gXqhN!6`hG~!y%E{ z)b&;1ha^r>=v0*lP~|HYNr58h;8aw6NZdil^$FIDLsiw$nZ@KW*Jf(kr<-@vUv?X- zSs!1Di0(wgH&du@%;u(pSeFZ)_P{s_1(VQ+vV&m5bk+IYQ3GqgNH-sUhOP^g<-f+S zN4}>)mRj|oE%Jbt$k&5UZ8yV16F&UPwhjubS${hXECjqrdW!P*V{e9znva_q7yCus zw$6J&79mYn*x4N4xNxgUNYxKjI+`WaFnZ)w6dG;qRrEo~*AOW2$z=W&9rF2kLEd_Z zLZ?^IuffCP=k3#K38TgJNQX7)jIL{ZcXUx@IXP&^OAy6$flMvC#kK!RnY`?3 z+ALr`?nmFrw|wLm!E1gTvJWyi%G9;>ZOxb|`P_N4K>G&^H&nbPoqpeu)iw31wK{TT zX=k-VRFFA+@LuZ!+;3~rDQO*K6lm@=zhK{kN&e)DI1qYW@&jAt-I7`+?j5_{Gr;~9 zssE6$EI=0#mS?)O)zR=o5Af$aTOIDwrNI>LWhb;F>k$Xc8 zIklt^Dl5K>a8l7YIVE~{!p+GKFm7QB@{AQt(n7}PbFE|KeYi$VsXah=*-k;K*qv#P z&AKG9VR_N8w44Wm-Lu_t(T;yYEYstUZ@4hh`T&wL>wsXahe(w(u5|!Db8h1?$9?@t zYwR7jZD3BW$s3W2M`AZ?-i?vG&IXVUW?T45m>?Tm4q>Ij?g-Ij|S~u|o@(Qv_y75cM*b@D#OX0DrBFx8Q zNesev`sU@9=yeFFHPHb?qKtj&fY(F_f%YX6c?oxcELZNbD(&} z%N78IYxG*mh`5LSiVFTw0@M*v-O+~|-)T$ZRa%$@I+fLAR{CvtogCMgsRc$Mz zD*)yt1O%@;>kJFk-8`|iqudB9GJ7$I>%#E-4hO?NzoxxLybsPFE*ohjma%W2h7L$Ld2DER>p^ZhWV&6L^ZBY14i9Y7QU8hJxTu~BEK$np)RCl_YWnhr5+_dB zB9h=U!$)g@wvm}sd8?5Cyiy5*r}(9m15KCn&Ot^M7yU=nqwPGK=*_t40It>YV64k2 zbAdlgS5@yA@->7?|M)oyMW&Hd_3AHmI2R7Ef%u-QX$~+^yNM)BG%B~wakUCs-*eC^ z9TZ{}pM33Aud~%i#_8L0`sV%#j#^NF%b3@-=`oF#QJ)6~r!VRgrta%^Ens0n4$fp2C!wXO@OpLWkk z)jarSYsnu5s6+gSbx#;gxNpB7V}vG9pbLy6Trz(8&|OMZ!g)090~4;805mSeJNC=j z8zIvDIWkS2YHsPCebJwlh#hU4qDxptpdYlvJVm_c+td>Joy-wmKPu&2R1{nw6>IW; zc*f<5n-0C24N6j*>XT8PQ-)j~SZ)(ehw`k_RWD|XX@XsAwyLfS;kL-4^TRwfX|N++ z>T9WsEToraSSvgP7#9}hTpquxUnE+aPVr7*b>apY_dA&Ldz0LSUKDj>XQBkiHXmPP z3$oQ^0?9KQRoboW+zDwKu<_3%3@~B+s`bO_L929(?^#6~&!)5mY<2Y0(UAu*3o`uf zPmE^*r>OV$`WJc9?Exbtf)fc^LLY@!afh#y0W0Z-CCXza(33qmTvvXr++ zkAu-(IOg(`boT!}>C6?!FaNb(Z;tV`LxFEhDh#xYEPz}nkxx;=c6Yj{5)`w9F-L>K z{Q@ETKK?kCTuLM_V134J2HBR9RW%U}UVa3-c{Ez58f85@U5XWTQerhgnM3Gl>L}1} zG;;LCdkMA3%PVCG+n90j=Qdv0o$uE{x_*EOs~nkz&OBLorQz^VN2k>Bj1s|OlVH=+ zwCdNV^u%$sISKCsgfZS;9zhUUj@y18K-$IvAvD9ow{1wn>rZ@E^L$okhk%jTS4tO% zyFP36Z;=5bzI^rJ+h<8WSYe#(B@6U59#~%D+xr=Q{DH8g+XSEZJU6M56?FyxX|FHq zu|p@w(Ef^2zG$~jQJbulhNTHXT^D3kpNXi96FBxc)1(?O0ZY>uxPO;vpGvWZd%Ub_Giix8n(p}qO;My76XhydZg4{vZ{RKmSWUD@Hc(!4yLl6z@b2Q89s9H7^j3!PeyVxd5SP z%5DXsea1C~LVslPt~Xucohrjg_)Cj^R~BKC$VqJzN2 zdY{Z!t{k2A6I!SqC8qF&#wyY;AzxNf=<~;dY)To5@lG7|Q3mrOONq~MhYBh8tQPx)l4TbjWwy4$Z;4*VpYb$>BXRUETFQsw+ zRq(%Aom`!PCy(EunpWakkzp;SO1(+tbrH>2SSf1#LWtnr)HyC#VPDms=M(sq21ZG;}^zU5jXeUBl6Q>* ziha|C+!Kli)InKZ@lCig_Dx&3$LP`%S5lJy($d_Zi$2GpHf(fge}}VI0l$Zbhzqoe zIxku>5ER9;XLUlj|M1A;q?!HEetz0pN+$CJN7Nx~in*{TJa1p@9Xh93=OS8qB!=t1 zVl6xD)C=qt4GF~T!7(P&Za05G%z92kc1r&N0qjFXE>AYpsw0GR5|OFV8;f6uU0SN` za&r_IZ1Zq$&|kJ!{zum6&{T7BmH_V ze62G<32a|32!lZ?<6e7GMnRp>Uw%rkGA<`ndGWbNPde)*`IWUV+k^)F7#58Os_5Ef zth&3%zy@r~Oubh8(k-cvQT0xgp_3Pex(b$SQCa>>89>4=PehP>5KBd(>|-o+%3Q|h zTZOtwf8fBZeu*_Qr)m6Ys3~ae%03@i=w5a)RmAbf!f)SV&rB&^RZ16my;C)X9ZAi(V)~ zl9voeTeSsMtbYu@&58W5xmy3~+jSk@OCv$ht0}-e^Kkdse&xScM&!GCd<_5Wq1@C- zxr3m#X9NFAA5Fi|-uY0{^s=xiltHnB&8hu3op?a4=B z&@vm$lX3faUds)>#G&hap>mffj z&9n)f(ozi2t=>vzJ{%|`{Vr+yR@J-EsTf9+`aBox+@0J!Rey-I&Iova(zW>JDT(O6 z)U;TSGzCM!VS8+L{&6SHJt?B;&fedOMSy{edzWAk!(pRK6BSuPA%>U0lhIDO zNrT|mKYc2)$pLd0lrR84>J!OBCObv4)-ggww1N7ds zJErj;QxM-IkG}ha$8PhQ*cG2SMP2glqc1NrE79u|936#@kDt_vdB4`;=8t{UG!e?_Qw7UMlk^ zE{-tFl!y6`0ZNri7q8?->oLKiGg}YF87;f}YzW|pMy{FmE*!n>onX}8r4)cH%d7}; z9c%j908e_W(MI*g(0q*yA0>*5QTY|QggGU-DS3HjqMj?w60I`MEBN}8UW#Nm(&OW8 z(H~e=h5oILGrD=IlnwXS>zYbW+rB#gT`{%{aCjDBP};HaW(iMF8+Nnt{M_aP**12o zg}TQ8ncm)jRKn$&2j0%i#SAuyoMTy3TN(x(XZVDXabl>x-trE^$D(;=!vFJhHe#Wr zGsn$+HS}J$u3cs?4x=0;6N{Uq${s{})eab;U{D9XGLgsy4ZEsXmWLQv)~g$0s@))c&s?6tg%N6qOSR|ROvD}sGi_3<>N6nUyT zf7^jd@I-$uLEQnblPB_H>*oU8ca^&eb@Ha@g>CQfZkNW^1)_(0b3>rVWeJlSv7dPa z!>(;7m7qzO&-X(MH@N{GGjHlCvEKAMdD|b<6ZT7v$`{$f-75~oR`;J{OE03=E%5ni zu>D5-KX93Y%|WHFkHWkcI3ehQRO$_Xm>EMKsvF{z9*!E5;^y;NFXG~;#mmdbjA9Hs zkEtS&c+w*hCx$vn76EgvP*>U5rE@e(H9i)FmRnWi2n?W+wtsr4Kpxo7X`y8dcW=61 zEFvK0W;-X#tWJYx$V=5U8_cjRPUL+`J`+bs(Vb##*w$OG+OC}M>e#&VVu+qf&I%|E z6G_;7bqS)e_m=M%!ApNdwarcSyjQCT@@A!7+mv6VX{)CWgg94W4QRp#Vf9LG{GK_} z7Xz4$uPDktJ(2I!zTq39%Lu8@|6PRr=t9CH!W<=tQ5>OWH(&LRapSA?`|JnnY!SDai*B{(0qu8$woxl?ymkFYIUraq5;*F%sMt)Jv7# zYj)9>1u-s{{p*57ts{JC1O_B~VjPI4q74P;7 z0~@VTR<^1nJBW=oU!&L_c&gdSshkb;Nm5*H}4*U>!p@MV}mE)Y!(={b$w=l{{YouaH0JK`^ zw2eyok)LzTq7qkH+pPqr^rMTs`}=d&LnI4c#e$$*&CN+q&MabfR+#C@^{ljq zNOLOrmjHDevXJpx$R#}9%>?5~Naew_zvOhr`QDa3_~h+XBZIRERQ=+z^gouL%hh>a zMMuXRg!1=P;TTRVLLC;q{Ih9Vymy@Ok>&{3=c=4DK!fo!ad z2TRQ!Y?@vGnF#RKV2OOPLTvBm8E?Vz>`xnD_Bf#n=Jx4!*BTMP)Sh5S8MFwoINIAB zRCAB2Mg6-^Tw7}jxxzXbpfn#3aWa;5G8T}=PaT7TP0wHV&MG>h+$I7akOkD86!&$I z{QZm-jUROLH=Zm6h{is}5Q?ri<&5?`!nvP5GocCnGSsBAe+O}Ed3^EbQn@dRgx~V! z@kBk9M%o5Qw^XU?Rd7EN2?vtvDOBu7D%&LU{|MGq+~JkTccQ#QoLx5$vWpl-Nqd|& zI(SC~A@&&yuGcIUzT*&5XpS`U^q5U8*W#-9tox4G4vIcyT28NbcFs-fIl;>XU-4u$ zYSl1lQ?&n+F)I%T2$Y@`8J+TuU>i!WR003GJ^arD1YEuz^fv(W7Zer_s(>V~er6BZ zU}_!I(NRW5cWfObprcr?nE`@^%h|Ji?)!A~9YiN398EaqT(Re*5vpfsTVAIQlVQbw z-0h(jQw(VB_Uoac${2Ds+9gZrz$GNGe0hpf77%Kml2-gy@PD6X@o=3it`ne zkgY8$KVY~o#_SPef%ralF#DKf2feyMkYjNB-jk(P?V|`fEVm+I>Q#Ig<)uEAINBXK zYT4J9AK5LIUE?XFyS!<_TJjzoGoBGpN#1$}pbDxr4aa=0*xFmPMhbRSz#i93$69rT z9_{#QgN11rDR-?KcFo2+{MWNzc)VCIm}N=V^k5!=W3F;UIlYjnoYDbC~{OwMKRXALaBvv_2!Gv{wsM`EQ*OT1p*kQok0V4I? zri$^=!xmLG+2-L2Cu1^B3bdWUTu=yP$*Inn4BVegLUL%q1w^p|6*WO5)uu$)=Vj!+ zbEM{D(dz5#^@QQM-uOnTXb8_@MH&j>Tx}nQr027)8w-hsp4@GO3yaD zce_pzX&yct7btO>banSYpSdk1>vx5{YFx2|OrrXLQ0K=(g-u0Lf&4JaMC5AVh**pni@nO&1Knj@3F!;*v*r{Ep-&2;0eeYL33ql<}l==r!B$Fmkb;-m8u= z`6@~(?fX~~o?eV2)D?6!+C3A8J&R;EoP;bdztWw$j|3~7bnU$EFo4lm>KH|}WaTh%+B+7Mj}z@C7$ssg`{zk{g?*0|CZ?ATs4)-pu!ry- z{Ddm`!q*U~4&yIcSH1-9r(8wY4hD=Fq>LGxo9`wmU1T-rf z@yls67?59K;J@|hF(pnhKxm7!c!UFRk8+btzF0wMyH?oZP~B5$0$>o=pY%|Y^IY8X zSbixUu)Flz6MSwkAvcDxWwE8Nn${evsA!mOv)|qlH|5ltj0P?e5j4d~V-=KGO$#og^6o`4-lGYxuUoYBv^=j1lSi%^-{PLi`Lt^w zvcg5q!_i1xu8jk(WztuYcGt_<>J#Pw~vm%EGT58WOM)%?vwN%56Q;gSiN6C4u zY>_xC3>>Ctbl*VY=^uWMm>>jzx9WT{3-DGqleytUhQYG^sG#!t@LWJ`1@xCV;HxK` z+UjuWk9GP2sx~;RB!0kd%EW{P&q)AZiIH6EM{bV=%&QGyq~@UMVt>M{jZOZ3iYcYL z0=U3e57T^qVzm88@Tlj|5vmcxHFgW+LTSzWz2AGWo3SrBbjK@ccFiNOB$-sTxwe7Y zl~ySZtp`i4mY#JFjB(eNQ3qV}qK!YbEzY2QA(eA5Vp&0dcIY#1w5$2J380vKmOTUo z>*G3B1tt4aYv97!m6BMSAImUBIskE9ZXk5?5d$!ujQepw5vE`BN}Zo=g2)OEeEdZ2 zR}(_urBokD9SSKP>uMBurUDZ*OhqHse7wQ+kMo;n*-g)yc~PF{>RegPr>TR@ce-9) zO^GQD3(8X6KFf$aPB`A^b}aK(yx(~R?v`xNeSPD}9fk0!X8Q_(5e2BX`)wQVr=+03 z3x39vL}s^Ur8T}T@h?CBODy!edKWwR2xUIR9Woeu^|EzD)P+M;PUi7w_x`m5-@A?m zr9T{_L>j}O-SvZba!eJ&QIfUvJe%VzX^Ld@jodOJiL?cIiX(+S#qvc>ya}K_{zaBm zoN&c~-#Fp})StJM3aB%f__n`LDF;_7h&~lI@I(NQ)nXash>$EkMr4{}{VEJoxG}4t zTUYgN{YdBMpwDbrpfIVBS!rgLz;_>cSvZ-J4L*;*EWO37E|P4weLm@ZMt2_lL*ge_ ztg}FQBbrP6m-ZV>)0I4dlFB8ITJ2B(B{jvwCQ0U(s$(;y&ObR4$X*0%JH)pBK_A9s ztiWnbJ7Q{Pf@ghQc1S_(I_V5Vry{r(6&kJ~v!FN;L6<0AF9t(bB7Si(a`-tH)qeha z$^N_uL34~i!&9_=0+ad5^J1cqw_fNrTxbxOCg?}5b}KHa$vgdGckMg>KdjdN9Rsomi@W^QN9(|djgfvi5fVM@5yW=HSwq3yO;YBRFFTetSd#H@4(#IbVa zTg2K+8J{-a?Zv;g+yQ|=jK+J+U%ssMBey>II?C`NSa02T&h!}agRkF_>cinT{trh@ BG710y delta 10515 zcmeHt`(M)M`#;*Om8olGrUq{9{a)M5!#bGnh zU6HAfwWa0(&!`AkEX{c!Lq$bEhf0EoiX7zlLHBt-9-qhePxwCO4?O(kzVGY0?(2SD z&+B=;^5))oJonBo@c_l%_xp(|5aaV5)A!FC!!ZxL3WuXE{Pgj* z+?!?3-A?Q}^3ItvUw!%2d!Ob!zTt4@*9-8IU*_0tvUzU%?vLO6`uKxy0A&ln;wJPJ z6`)Yv{(F*1Qk6f7J5pR+AZ=j>rpE9z;Rr3=f|~Dy__l-AY_$H=PV8L^;9t2Nh!evd zT#EEF6P}$OhDVW-Pn8Ff+j^+b*+i#@-MfyzyLn@fZsWUINk-u--}0DQIN>bf z^ReJy-6%PmMtV!){A6GfhP4wwYY9&@=YF?7EGV;#lM6?-%unI@D$PSilc-gWCKs!6 zZ*ozh^FA=SrzBo<2jD$SgTO4~jN1Ks_6U;J*gkT%c!^^Z{f?H>N8#6yrg1|@R^2Nk zAA#$dpK}R9U+UPu8I(sFQMp8p_DGBqeS!402%F?a6C-msH9N<~<|Jrr(P1cLD*JiB zR>lR4%{+^!1hbN78EJaeOD)8|DDBTK4i+BWwDp%vivSR0)1jvI$5NUKKspVO@z?x4 zr|o-G+!(e&(OfO}W?z}+ql24dUxT81CL**WT7mSM)kskDlzZip$KwVy9faq4m|r)l z%IWNMuXhkBW_oLeMfRU#NFJ-Yv1|8CYdh$ z#S6%Jy#R@ZpS!)b{h?gTO4e_C0BN?ECmiw&a%j>CP)72|)tFes###T>Q#&!gnzEEF z9`nLlzWe$tDqh7xYi%Lw$I`wA+|q5TUv%>5r<}&%)@x96F!%(Q}Z zW7j^Wx;ziu2b=kbGw1>U&GI{9z(M_bc7%E$<-lcXFoj>YX54^OznOT0q4q?WUTJg|^NgwzyOsi%0pU(cVO?)T+M_bppOscUq-dDI%*GTSo6b@B)v$8t)z z`s@j)AqdsxM~l%M)_TGkX4Y0qsLw%)l z%g?f}$mgrVGp{IA`S5R$nU;PD-*fyd{-JSnxinLjhh#`8aSWi!MlHR(;#-92=RuQaLk+l<+<-7@Uuxa7^EB~2xzVaFbX?dI7K@;L64jgxg0Uk)I ziUHCUmNND^`(M;UyA`T+u&K|{PVW4WKNKpShupNz13!L!Aw%;msED<_-i$1%2Fpn6 zcINGI1qClmn{fKk$%T(YCW%P%iZqD0%MTF&~I*Vk{jPbw4U5aD4b-Qr$vB6Y-xKNN&^lBX&@)TD+{ zOuqUyr7FE7%f^Z-erCDoRrBNI(9bVDvTG+QTZkF`q0ITmrgE208>E_;Ws|b6;jH%Z zpusk2@?<9lAeYRYsthsRx~pkP_YlMjc{VkO-@efzMC|qesa^Xqmbnqjhhu=#*~eHZ z)2*Gw^usWvwD9_ItGA%Hx4ysb;QC$3Wf8`9`Ay2<+>+nS4;}p!x2EqzVO;Z0(==6D zL)2urLBw+m{?;hk09WHY6{>m|h4|+YNs9Jc5Kt-I+awJh;z-EUw7&U!k~}a>t?_f% zIj5B^gnFuTM7Rf{Cz|)>+d$BkJ_7fTfZ0Cr@!jc}=3>_^J*E=>G@IACfOhSGlQ~4S z4)9Ek@c|8S>geJO-nQei!J7Jmqg@;F+ZggTG4cyi}11RlFbCK14AtKCQinxTBBPW1rk?rqb8S|Y|w#ba6 z9ZFKt={wiNGIzH)G67YkUwKk?x=jrWq21D?K5h-j)+Ww+!<_Npe`X|lHpq%&yw!_M z#l$|X)v-N)*6EAJPK(L7yS@Fl)nYr<5&!;=0OQ4j{VQfE z%cYD)jvq`j5mPjXc~!WZHk%p1stv(9LF)I z#>qfw9{cy-nC~SZK$WUzQvV^$o^r7vDz47FeZh!wRLf>?x=DfKxj>WJn@uyMCuChu z_yV*AB*d@q7;DXK1^#o1t7d5D7-_~sw|6S6b>UW@+MKC4dA;mlIJ31G{28d%{(!oT z-US~K(Ixa7$IUqnd%|_?^CKM5e#!u4W0pGb4zN^(Y5Moi9vH?<2bipAS`cGh^9cQ^ ze1sR&2Sm{pMWyfO0%i>VscT?1i?@gsomY=3E=+^cvy;)ewBW?kPhF`yHYJ{ zeSqiZ5iM^kkYg{;-y{9qyw)dB>Ml{T5~YE1$vT|TEGGQeZ1-Hxk^>pb z$$Ewpn2UC`sqscJ-+QVlKNuA_pxWd)KLo{Ni!?ZYCg@zJ;gy*NR@z+wo;Pb|rsdVH zGShn~#ZTPj$oQ=5p;oeIt(=?IM!fg}8b1G)JPU18jfA@+EDy31-|ilaqP3x@(v9lC zESHwQ1gAU8rG~-V5iZucqT?&<|4r1l&1*ekc~aNoFC?BDG1!T&PPFCN&~ z_+A+w<;xoEed>Mf*KUi=x*qSEpAx*;2^qmlW}Ww5C8%pEF6K}8ZE-Z5FV@6wO?bXS zTWfaZrvz{Lyv3N!4s zuV2}1+qwJJrJJ4R+YoLX5%n|A>Ik&a=P!s{T3k+O4g;;h#uOt_c@yhg;F_SybhIxasjY6 zOx4Xv^b;N!m@pfZ9@UnGDbC1F(zkey#5|filH(pI|3lK*BE+ljCG0~*INwn+4Ra~f zQRKRyIO6TTmnc$v&`fvVa>voWiJf9*>;tVd$G#8TXXxp=cmOu(8jjFUiGQ9+gJNhc z@KHBg44-Zx<(wo^g1WY3=hM zDK~YG-~A(o<>!3Xg0R{bRKfJ(qmI7$way39* z&`8l9uq2(;xrWoOvsKtM!^qDw1pS|ISaMHKaGGh3E?J~8jCBP_8fjSeFoI-`ilHjS zDjN(F>H@NBKY>h%N$=Noc)k>1SSffzuu14$x}wpQ3llc(1ncxMEEXgTDc%F$R@hQ| z{9*54aNBp+j2s$(<=p~2j@s0?;AH9l;YVvYDQw8_!kJ&5AnUYGwO2elngmN;?AFZa z(@;3hlU$)?+Ky9NSn}Qv6zCOUu-vnOqs{C%-)zv?&aj-w1GxuBo%r9!GX6eV6p?;rCQS$Rkr5pL?w{J=)`Kg?)N(Cpe<{p+%ZbxuwmD!a;M7*ggoHVPuQB>h$HYfAJY)zd48TVvQ1|Z;3eTxh;;T!pu$(#wNw6V{}QsiEec+;XG4?;cv zS`)v=qZ^?>DIyimG1Zor$ulD;2Ws&2j|GOb6@9KKrMDc~*_Z&g(1OVslAe}SG+Fr? zW#Wu3po%-v`gA>ErJsXA-5GXetvypMl%op@UbyRJiXv#5GzJa^>=ov2kFdk=C$UfLX@K)lGuBa`%|UMs~BwmO^&P5|H@N(0C#5D zqm7^6K~*kBBmgNd^E%}8&&2iKPq^#L-S>U4dXu|b=5o3_Jaw&aWFTh zHt|a+!$^2ves&;+O;TJPOmQMjpXT2QPH)pFTjTIbwnY#o=Jhd(xhuNjfhjO1QC!#E z>0YfLNp9b4!A)Np2uXH6iUP}S%`{s8{6Y-^G&bwDe>aC9xYHV>vbLOJ^%(H5rK1U1 z51TXm80^l{i9X7v%g9Df&duB6dXopLo-t*k%e{EB`d^D1 zs<5=Mo4JI{Nrj(yZ)VkvaHtKFgftBIl^#qG%F`#vF#5$r+BUW&#A5n$qEl>^aOBt> z*gS-RrKzRloi#*cZ}cG>Uc276#53S$b;g$Kg-xvXC*$ zJfQ!O@ZwUxpILiSt2=Y#fK?rGP`9-P3^1GPH5by%yM9KsNoZ=@Si81SZa{{mn<~DP z+bF7vUb)Q{>1{KyA9PMDqlZ*6DUj3Jci2|7;Aic0BekruOn1_59ahmbxpiH^@YIx7N}5hV0Mg;?9KNrr3zmNVpFBy`Q{c z6pD5>Coug+uZO4i%nOj>=$-YFs!*J;uuD}=tW79B%ve`xBx*_^6BX7NhMzisr?JIT zdu1XWE-%wG+ZW(O-K^ib3NY@h_sikNCeBV#n>l1tut7xcd}7fFq+S__{D~6E;R8Vl>)HSdhDZ~*cqNHHHWjWCCM7^fGm zo_$2gOo9heTNetnQ9EUbP8?pqvuF{2Y#=M*xC9+hWFBOmbPAep$G^|BNv=SjyLL-) zh&eY=NbgH0v$e~u@CHY$4-(2w7NvOV21_&*nnXSR_7C(KWr5kUqqN`l3nnnJ)F!<( z#LTJ67{q*35JVN4>V1>m++io!wey4ZaT4aDST~%_7r8xq@p_5d8R0F#J)n%ya*f2h zpypRIXUovpt!e3t#8IPMZk>^329gpN@%bNKZGGoBgv+*ju3izi#>YG#rsHLZ23(oT z!Ja^bA%j>}2YGXu8U-jN-{K!&m5~NBVW&ADLz`NP3um~cgJqC<4O3nFA`aR!VmR%W zlrQGph!h^%v%K5|gtN+LE3?xCDe|903SU!nI}WC{&BqyM^0JjoxIr^9OlHR_@Jiwo z3{9nGmZj+Tjxw|U8>3Q|e7v#yypL^x;|m@@PV2W=mMkuLYDCQ`r+xGggJIV*~NRex`OkO6#)E!kAPQNf3Le4 z{It}E``99`2AyMnTn`Sz3oCG=)cqFgJY$GsP}B{nPkE-P(dz|L(iYwR%U^(im6vDt z4d#}>@wQR)X6v`I+zT#t0j`kGih2z!+{=vK-(8%r;cwc46``J3&ffI%Oc!{=zA!O* zc<3~HByO?cV~eSa4))C?Lens!_-9-?{51crJpFopX@4I|6e7Tmweo4;k2%K}s9IK& zsL+M)d0Xxa2GLusfOihijtwzG6(^k{`I{%?{^9D3mtD}2SM0*vR`@e5N&PyR;c`un zXwcm*v7)?u#}Rnu<})kSb#r2PI+#PxYxl%kTUf zq|zhzFDh{@aw+z%GSE74@q;1hh)*KIHb3|H2|v(;`X&~;@L-kI#y z!zlf=X%o;t|2nBzJ~2#SvqR0tDJYYy^&_*I$^f2HgPXqgMLVH~MqOHtV~Yr%TwSd5 zx(c%%1y$BKVnZ4b$pPA5^E)JA>)NZTu7qD+w|F1A=V>C3C{Uw0NZ0Z#nZa500-7qmz=X9*Z!Qkd7;21|!(}{hm93x_eY@ z)cGnBym>pMdwf8dZ`p`ioLPnVQs{k}i46lkT{9lRuX(#sF!exPYn=u~R&<}!4)+C! zD!C?Oc5oTS6?rO9E?1)@s%BP@?;j{baLE`}tNqypBN zEiilqG`8yJbow*tH=@OEdFPX}pBJg`!~XV^>ECP6@32lP6Oq|7)F)lMNjM|Q%P+KqQTd0gDdbzhGxpP2{?*K+jZ)@&PegMi-f+`MPe`vd zn~MSB%Xqs-k?izGcT&x$V1Go19zEp1j~KGvxI9Sae?om|us-3G)|W2Mso8W`y}ePh zy`K>BHnKDZgXM|fiK5#+=kbC+p;-#iE5aHn5J`RlqYr|bt>nP%SLn4guY!`@ZAw$D=g&R4#O{?IVm?d=-=xEer# zQThxM@{=Mfr5a25eIF(@gT?k!6TJi_na4t*ciD=_n`{lvS)GYjPrlVOhQa`EH;Al3 z2G+_?(weLMNY(W7WnBKfcxFF__~M$~%c{0#4KZ_}YsTZa>3V#DtZs0#R^BGyOgWFq zoCmN4^5l^bq&Obf>QA-unnrqvFl!KVs2p039f*<-^vLGra+-T^--fKHNY3LuS1|pj zT^=L$`OlP5Tt*PTN2>t2aL=3RJR=|ff6)P$j|+;jjkRN?~aPBUF*2Ao+g{BO>*Dzt}S-qw)On;Jq| zD&*}rh*|(V`-C4tullveJ`0Obj|ue-Q1zA{HvswS(#-EqFkdjhva@={5@}W(F+v?N zd<2?ne)Gdc74f7try=BK0m1%z95h1MSwA-1L(&$EQ$(7R6 zJ`vyf=*zf+o_VFf#g~&an8TpTd1!iB!NBe4kGZHo+ws*NjO_wKL-V=dDmX5@y4K7b z{F@{22o~hOKoPn`K>L8sd`7Gm&|X$h8G7d%3O|=#`z$GGdUAm>ph=B_?WBds8qi3T zu)A3lkU>(>u}&|Un?Y&OA40dRW9;Og(T*O!m4lmt`^g5+`=v&1b#PKN$p5T?Tzy90 zc*$u!f2z#)6t`Rk4X-WkcWOZrxx!>TTlc{x3s@=JPTsiua4@UM_V zQ_r9TDLW{!%_VjyXg1-gUeh>$zIy5%(4PwBF{NP^dKJBTUR*xlxXa zHMR&BG6o}&+LmSdG0ju9-^zC!M{lmqK5f>%urlMgdef0y`;DhI_6Gd-+r;`!M?e3l z{!wV@dS{(wnD)IbDE5ON;>P{W}sG_Eq)4*c<-?rrgJT diff --git a/RNTester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTabBarExample_1-iOS11@2x.png b/RNTester/RNTesterIntegrationTests/ReferenceImages/RNTester-js-RNTesterApp.ios/testTabBarExample_1-iOS11@2x.png index 238678f04960a267e6749f202986581d96e861c6..c2a8c38ec4c2c7c462cff1eae9b556aa52994bb8 100644 GIT binary patch literal 79963 zcmeFacT`hb*FL(b7F6`0q9R~9N6rx`f{1j~V^=^?Is~MNGyy|^K!SP@6$KTgL&QRn z5_*6@f*?g&R7!vlLPrvk03itwlH7pjyzl${?mNc)^WOW7?HCZV$Y)M4u?@y`i8=TSz^ zkz&%jR(}OHm|)0B*fnU zIqakVH9%{K{0QhbL|*iN#az(Lzh`YUInuS{Sre*Hdlm1u z!`pBf%`7^Bhi0IbbYV3&(mYR|dhR^j>tzbuonT&kc+Xba48AOvr4cc|@=O>p$!Dey z37;fh&Nk+3>v9z=>UySgPC{OU&vsj8={vB?(ZQ&=DM1%mx6l^@C34k`ry9t3PqG~f z&cr*WQI;tzCRdiHUjWT!dSg0OZwF~(4!Zoits(Aw;>=&Kd{NON+4t)x zFjC2JgwT`dWZ`eVlEY`FOFi*hWnYEds}_qRw9cu;zwTCz=OlRr(g z7Oxd6;?OLaVY~yHd}<;-E#pqKN#&P<4UvVFe6m(uUD#^C4vB~S!E<#GHivlkC+dmK zvdu%=I}0LJ28Bc31?h{C$dpbbX}U`nH@lRpbQ(6{4oO!Jr(m-!mANhD&5)t&Y+(;Q zyOc6Zo%WWG2&-nOm}F23`%586>fQRQc!8s?ClEf}pnNPsa8Nm^P|!4CNw!;VU^?hH z29HQ}C2JV^g$?>5Vf2AsviRbFih#TD1(tR+g84+4j94J&WoxAIUQD;k8+wMdqgHwc zx@?A&QIu+7Z#!Wn_Pv;x1#tJb`nn?$LE^)I#D&b70r`YPjdtqpdS>{yIZLC2J6)Og zN5=fQ@aPo>gJ*KeA*kt;JhUC}-Hu8#0e9VH-E%6t%5*Gy`AFX{r^*l^!)tI7@qr|d?+4p9O_s=^f zKxx)wcl+o#++4XgQV55HjgInm%pNvXgFK3ud8*4_hU*S$){bYMQ=G5WABtx#Hg^$? z;Ul9b*!a}LK<^%W&=N7r8(rlwx7a+v8ZfroUl5%r+7{r_5y%Yi`cf zDmy_Z7XBg$1^X%9@(yvlE=vD~=j`uVbecJ@jYJ>xb%1TdpwWnY`D=n6G@^XbNcRTd zU?fWu@bj@0FHZ0Utfyn6KH#8{8(dfL$_=wfTOF`~umh%#a7{=ZGM)*&^( zYB49Wd>IlEv1GyASP~|7otbhqIxMh(%1scGGtR8MmN704s!24Q$w`l=aQt@Dt?KNr z0pX)4{z&H%vge&LuC&mO8wliM35ndBY!(+kKi)X)0Pm2684XbhOBhp8Xk7C^%+?1Y zN0}foZ1&QYb-^ePQ$J9xn#!@MZZkoCyAGT3TSnKuS&%JU>Fu1ZS+W)KmhY3C>?Y+r zanOKHzgWPAN#o56!+$Jv%As_7#>7nooGy9uExGnH11=cAChoBV21fU0Cxp|B!mI-g zV&e*b>~?mJUmf7WLTjzm;l(gU)J2&{6a2_>W4t=`u{<3wZ}bCa5Jx91NJdrLmpaMc z>CB9!wD+hzf#$$=c|k}E#p%RUEudHKIyIpU5}Y4^0Tyd`gAqh_?ShF?WoZ;!^2HVS zFs%xi=i$%6?iP7LQ|rB(+O@u(>dAtMhZ4T1%t*%fM0Tk^Ma(~7YQ$O+I0Zx=Z3)ev zA!WeYM?F=YdoC50q0zh$#^Olo2*%;w%-BynkmH?e%wk zoXD+JD}TmT!!bj+0!E3i`Tc%1pf?n)GEl?TJ7;b#h%vFv7ybdO?pUZ8i%UiXjLA3? zN2vZoAu`m2=97N*@l2V`o7_Yp+Hpxau#tLyAM3tz=OA3dIo$)EPa&Z3h_GHVGyG9` z*vYA|2z+pk#dWc~Q|1QUaz;aoPgNA>gXlHAuEPl^FZ;}#p?mKXjb}e5Uhy|#?2bVW zT^B1FqAbcN^UoW|#Kf`hcd+dupgAm9J)c?2x;#x5cP95lEH$DWR~({-t8WB|{LF*! z`m0zGk4H(-hFxZDtj@x3ad;D;{K*C>P7u>kwB5Q?uF#JtuY+VhX0kW7z|PC zyxj3>^)%m+!I<(Na)BLa4bU3SAo>Ea=uZp{B6BcL`G3sXCY6NA$e`xw$4E}J`gy-I zg--0GX!9x5+~jn=rI{9Ha}c~;Sva{M;sg=PeY^cr)b*HY({E)nbc_TQc-R{rbh#8& zkP#DYx{EiYO#6(hGgAl`9>n|Qf#05(*(-Dj5d0F}^ z^CIHBaB=jvu73Xz_QGEVEB91O?JJ9AGs0SL`dLTN^E}Eutm63bl$2FIRh@Hd32DB} zdZ4Di<1p>coSri7Oy|fYlp%6pf%0JrWsuHI=*q$_MPRSG|3YsOdA%k}sMz76%L_?0(avlqfj3&%5$+1`>ISZD)uri&9Uu+zO zQv|JvSta_ z5`-O>)SY#LM)SK3#_GE4G@>*ngY*aTXDO`b{6sD!{vU+9}{ z4vo2DbZDxz4X5w8h=ZAD8#7)+E5g{GQ!ChBrzyIQc}VwYAzfbs#rw+3_C_y_T*o{t z%&;Q!9j#N?rgO>;OZ3J$>Xf&UNH#$!1+Q>eZTM^)huX}aT6nBY(Rbu`v}L0NKT>j) zAhs}DUo4zIjfCm(_$Hv9;@998aFzK((&MP?CD{7=*A8u|#j zpmrD{2sk>HVhMlh-BBoT6h<%_l>1I#f(5bsX#9|#pt@`EbF#nQ_%SO9=VUZ+W2(xK zc=``x5o4a6;>lA?HCB3zkK#nvtn!G-jLAom61kG8;AxbUGj|_Mh_Ul2)D_og#)-f{7iLoO{ zC+jU50u0h<+;bqKjKYeQi%nhCpAwNX&k5+78P%?M#^O0|^LLEVFdCuZ^jT(JDXQeuOx(Ze2$XlR@UOsLD zedEy}-Qu3#(qh~G;YHq%Yd|BOF@>COQ1&@ud2Zf6Gd(c_u*odn!VU<1#$G}Y#!e9a3hV1O{3RNiH@#4;Vlr8Tq67;f zAf^s$ydn3l%ltcL1T3Kc`iP5S{sg*w3^Dv#gB&)<2~socj=xN;=RTwr+8f4{IK>qB zZOBXXxz${t`aZaFe6UphUa`}Y(SHkfSEkYt1D%926uGT=XZt|GUg&SINtq1o^yR*D zM>5uTnUy*n8gHfuheo-?2Q8{)y#@L^j#KAe5FPmGjoibF-4b6(gz`8#_j*gdy^%%; z!NAXfbXwj-_(T}ix6l|TTxPKKUsRt#^Bs6Lam^ni@=iyM$>Nq@<=(#{6(2?}))zvf z0{cDHZT5PS+v;XKH`i*1cN#IPPbfnVQLS3LG6a9+cJcza%c+fOwZ5{*I}@0!jdy(` zjFc%s^BZEydxTV%_0WMGg-*d^#@%xAcEvgN{)wmpr^XK%JM4rJTqLge#4{N}7_pN` z{Sa5d7pM%42pM~kWUp6I6J59V50fDL`TDcu+Y2cw0^)Vd^7RWRrpkzB?8<8W?t)4h zXY{;4?FeG-nUJ&-P#x|;^p12fBc}Fy=d&48hDv`;PZ%-zH7Y=_+A`gORv6vXT~McC zNOg*_XAMwplILrd;fbCQ%rWa0bla=y9sD!0)y(U^6}7q>)U2wD!F%$urzxi>$5*M_ z6TJKHQ~a<8R=I2PG7B1I6>W}V`P#>k>MCX}OsvI*lkgDXz|Ed4n)*xq@P%h+NBA;S z{-)w#$sVado+6yzci%SM!|?}k$53_GZA|`+MSJeRtyR773cLNgemK=Jn%ObW%(XA> z<;MogxJgy@u&!#@IYe*#Mk~}jJRVLjl~<3o6xz!J+|q|byL$^T(44nL46A{S-cb2l z1#^wEONr&YB0qnsU;T2Ge)o=@fgy>KTL*6U&qE+*l(0f*k1Uhm1ay?fn z8fd5zKI0KOoH`cs4k?n3pu)n5S&O)XgOW8$2X92LimFY`2YP8QdZKPCZW*cgd z?pUE(@NV!b!fG;RE0(qMgbclBJH-(QK3hRq!47k{VxB$eni19#YV;i`6LY0{4oMSt zu2sEAJ}ev|;sU2WWFFpHAc&Y*8+tue3j(-3Fr$~g5lXkf9MKS7PK}5Vis~I^_EYSQ zhXNltr~z%wtSXB>*Hy_u*Qw7({5s}s`DvqVH@oHrh$P3?&_pZVKt){Jhzq&ElRiaz zy+|vf|EB-(H8IogsJDr|vg+PmavGM8Sx$hcCG`{>Ys)TQS(=Y&EyThxiWsFC@|L_f zDIa`xhV%DW{PJ8Vw+hain|>cX=sy*r5!!dv00ODa3t%4`D2U7xyMy=skv_621$KrO zsNBn!9_e9`cuWnUaI~1dK>=zVWYCQ($UvBf*z=QnkleJhGGfrd9u!0Xd!4SIZ@h97 zkCbV{yOO7TcBCU z9brU-0Sao{{lu}Bc9B;dCr)u%RhoupWL|{9F~L7VDc^UxQKN3cU#Le%Z}dz>6gp}` z1WPeHnO%06Lj^pvk=KX9qy%$sjEZ%cPT|n)zFte_Oi{R98wx+S+uUv?#3`ToH*s0W>Rou+0_?dP3v!Pz7cz&vPfyMF(KOM9wbX^98Zs4BY}| zOMEaw3ovJgG)@>LvqDR+VlL7-K~Uly?2fx^tMcV4(Rd+Eb2CH+p(is_%}O&2uSNGj z%h?RJze^X>8{*IEr@KbQbJOQXPb-=CBXGul`zMyx6e}1CGSa&RRy@!|QfM6Mr(U@hEf#dTv-=w(!qkD6=~_7DeL z$YWP%WgNJYZ2bZ?B}}*)X*V2(nxC$fU#@7#0xC%be367H_kmhOPoM{fD@)<7NK2ZE z%@(QFT(L>OJE4oMqkW%MDoI?A^ZIz2{I)cF4>n>*L1|zIjI3yn<`P+yd1e8o&_I9^ zB8WmOWs_dH_5pHAIVXd4y*U?qAdz5CVD@hZXaUjC9MyNepQZ=9C`Bh2e|v|@n#pRN zA|;{?Cal-nSY4S~NcHu$H7?-HjBMP}27&Nv?q9&#`#Rdx=t$Ptbs<)-(Vb24-APlD zu+cbu9R}&m^z(&qB@_4=%?~tdtFwlX{xXph6?(b$@fxBu@r+)fJ-aO^YBcPuzk!da zhQO(d)M?3dXI6C0MSQXlc>;{na6a};PNG)MX>v7Yx*mt{TVi)xX)N@n`|<4jLvEpU ztzfPdD5LMn@caFuDx^Eue8}JxY$B_h1wSrTw^l2FM|NrFkU~EucIGzxx@A7QRs+JuomhP574E(xZy z-!ert9=3fR_~osyp;HAJn<3F*oRw-OFU6VYz3TS3clTeDccxpQEz37J)RImrQYXx) z8{|`CG0W_sSqlx+wdk;WJw2X#3o|B9^06vOY9>{#U9U$fSY2xu8}{W{)PS9m=1WAinH(BAq;tX1P3@}=dU9^E%+V1X|x)X4CHMEBq`C%W?F z9sQ%Ph!x==nC?C#fN4A*~ zv@ck9@bIAM`uyj5la(X*o`_@Pq1H}3+tbWVG+6go3N`8@vE!|u ziy!l;X7g2}vjs+H%bd1`k-dnQ$Yn$;(!zMm&LK{aj5AiJ#HlWnyp)5c>jFyC_$X<2 zOCVpTW+XSx`&?=-{U&@F&*5D_qU6FROPEd75 zipm_-%-*WQiHe?V?lQ)rQdG4z+ayy!KHkDT&NQ#ZxEpk1uXjrAlv5Ot?_XbV)ziuv>!{2DDMu{SrlX9Q~<9yAx= z2n-TdA%N4{?9M-pf&%-m8mX5UU8|fsxpqCN!)1nlopjI@m zy&VPpoTZbJbrr-N=V^{M2^8piegTRa{0Wf?tGo0UN(Z((oZ z2QM4@;bKd4vCL;c$XL{&U*VJo)i>TN9&Yb$+f`;SO{1~ZcfmtHeHV?N(meS`zRX8g z@uli+wEJbX9o7*A>epqdr%F|lbS$AXyHd6$ePpy>|2KBMv!7`Ch zC2GK_Hp0dHL>n(yb}zHgv$g`}XCn{Lj&Z8jAZEPC$eEMYnR#R_BF-u9s5ftbSF8l< zaf&WUH#4%$G@5>gvmzKeMKnK|=rVZ(*o?rJEVOe~s*VUV9;}aCOR|I_;}m!<6~AM* zGbVI;r+7wj>s-RvhQ2&*1z__DL$({@GO0$w!b&0IBB^Usa9q4Ia&p_v{z9=0Pm@ouVML4Ykx z^DbbY_+|$;=zcx7%DMHpwgnp$h^`*G422>2SIYFdr`3f+s|Ui)QT;RNB++G0Ws+~$ ze<<=3vv-<0nYJ1!!ZL!_3}Rw0%gRYKvlAGgn~4dOV7)$3j4Y$_J84#RRyS$PH$$O0 zPBH-))-=43FeOUg{a0L5OI>2I2t4&-h58Sg_(vzs8#_Tqxi$Ocb`|4UgVmaYukL;S}&@~dAQj@o9ca*^Tl{=9ne#s)tK^sd?I}O zxU27g{?DqJi2v3I*p0QiCGe*FmjMWl4RCCTivB>q0eaE3wW>d(4j5B@mZ^f)0PzNh zzNG&bV$q@8$c2CQ0sv9^YRUn^V-OyLiKHkS0E0dl^ueJ2&pZGLsQ*j_Kx=^35HYPF zRSOc=|H&JI)&Q*mN<5(8^*_ZuP+R#=uK-#Dv<9d&J=_dxEB~27fYt!5A=+~WtZV`6 zeEvg!25FZ6^a`LgKx=@clc=5&q*?wmg#fJqS_34VK+*{$o!0iP1WQ=K64w7nAwXi` zKS48S4bU1O%>pi`0vDI9?r;s(Z~VWLO4kXS5sGpE(4e_#j8MHjka)ky?3@qq@t;xo zXtyTdsw}ATsJZg@n#dy2k`1!>U#H8dzleS*{{NPU8&-`XM?kop9vPmuZqsZWsl{NF@_KK5R~OlL89 zpkVh}aBv=0*c$0%S_}Mqa8;dYdnE8wad5tLm1bQeuszaBSwupumZ*N- zw7#zIQ-Sfn8j^eilr8_=gMA*RK+_gKw(UO+?E|FV{Hq5?CB!v@@8l8wX-G`$cc9>( z9z5E;HM01DeZ;>ST5l?L>z^L{eW}#ae;NWWb+tlNbU(nm`g7=k19)|Ef^!vgOP~i{ zbBtiH`RN$JxcbvEf)D}(h9Fw{`zf~|S_07$n8fXJ2J_Xw(?}34foKUNTz=AQAh!f^ zOCUKa;-8bmKpuD%CxVpsPsa$NB@iuvn$6!j7>JfYv;^v_t9$i;Qu5k^+(EPi76^c~ z5NkCenqb+-Y8|5}K!O!6Kb-=ImO!)wq9qV5{Zsk}a!X)2r8J0^K(qwb1Fvp)1eQLp zxghTY62H^{>+#`(ebBa1Zgyo zMgwWIpAysmpU~1ao!aDo_5xU|DFc_-|4n^>oG{1~aPdqWoQN4Q_G* zZgK){NCYlK`Dgbha3Kn~5Ctr){G0j!ODnu|FVD`pUI=tuXi8GG z?{l)L-u|L`-D2(bM9Y< zzz_U14QL0@4&b~1{R8MH!FU12O%NV{FbRZj<$^0CL{IvLIxyrtcfUHmQDBn76+ae73gZN%c-WUS?rD-%+u zbDH+#_}TyrW0|@_dR8j!kh;#Low%D$@X&((%8^T@(=;^?QU#r1t<)AYpR(y-L$I$& zI_?}rbh*KB3CTKXQ{$Dii!9WGxZq5}vD^?pQ<|I`sk0%1Qc zIweEip>yN!jlSF6*10<5+B-w6LbF3TxjG)rv5Jo;aeJ8Y0bfq=NC905x!#v1by#~O zzUYd+%%$?jbLa=#pdZNQ?Sfx{)`YrLGqiJKeEsp8nei)8W?xy0qgJ{}&DQxPpU`I! zGBX=?bI0QHkEh#F&LiKOh`2Lsl*ou1_si;|_SQ(VQyE>MH z0WPk0K+II-`&{cgdt|$oYvb3qw@Peri{;hxcHf;Kg0B}3c10$(&z>^)X0|KGD-uYm zzq8+y-y{dP+vpwKRjD(gWxmiEf85=&BToaLSawIA_GqGgq+-Hy8uf?6!|zNs2R>lD zSfK)B-5KfOt=yYzi`eocROXF?QWg=Sx8bi?&;JG1%1f{ zGJp7>?#{fq+*P=pTjt#D$Ik0%Kf8nKXDeQEZ#tv_sPclIo5S5rW;WuJ8EX2h(PtzV% zWcq4axJLqg!2Wk6l+j@r9GxSNj@+g|3-s7>d$*4K0Mh$2}rL460!vqBLRn( za~!S5+m`EjR~kLf@}8!5jb^C~Xc{VC$L|BAi|WGWawumv1(m2;GnlIP7-M`{UC2yO zQGZ3V)3)f%l#P|0eo{5`?qB40dahKo4@LxLBqQsiJf@K-&x{kxvXfEo%(VUY2D}ZO z`s&*8Py%rq*T;1}h*D|ZiG#NsRhN{G`fIMJ&g;BH;ESm@$Q6o8OMr=s#!kAjZrrrN zwD+)`rQc~t=!m4H)3G5zZPP3H>%NuGr!4iz43^K2pe_ry>;^OQpx)8F5=FB z*ev@XLeVluMmF@zvhd?UGtC`WEJ^n)tBQt8gDFziLP)K2^2>l|S>crAZou7v4-X`r z5UxxF=(C9**{5u$Pgs8UO8R40ck}o&+U*oG#;y6n+Rx*048JGv&Bs0zoMR3i{=F+B zA9|rDr0r4@$!oXYMta$J9PMWIhxjk4eP6aeEj)HcOU-wtZ2Pa?d%oxTUNcdXtOLZ~ z_(WZ@O1k7$V=f%ce`V!=WZ04tP~IL?CF`$+SYc`Wm^0xn>{*5YZ8wk#b0;F*pOWhj zeM09@fUbqf;6vU4xG#vZuWkh`=;eq$L4?~>5UcgFK*#a&g=p2mo%L?*!g;Oa1VPsH zLd@mf@23pZq_A0yW|o{M;<^$2+=P^sIW4t=>+g$kRYg|PzDqx8Vx9*q4$mQ7rM8=5 z54mPGpKyh|fHE~3{P>qTHzWA;t#^S}UW}mt>4@jXNmkMq)%SP>`ulm8C>=f~uil|; zd;E@$?e$xM3@?vBk8({t7)G=I_@a*O;ger+9>PgO8;_0AY^{zNzne(Zg_UBTFWBB! z70R|dR(6tr>On+?`j^FI~vOGt4;1=GLW`N3+ z{l2cNK5{R_I`E5Tymoe#*Ubj2_zzNtriKFJkx*;P>v}D(%J;ao&h%E6loV%mKm1%T z;9q8Ra}L1+a%CV(uGoREJ1zsSX05tCBfnIjP--K7$>}>4mgk%9>Yg!rnDjlt^>P*Y zqHXWYZG~UZno$zGltCIPc_#Xz!#>{4|B$1-YR7zBst`q#_!k|6C-|%ryOrlhsx^K*5IbVer+*&%oS^axHIP|6 z;-9=3d1?NNB|O~m0_kdxO8B2C=!r&7WliDf!MTtR$Df|rb7*L)wH19llz6worLfQU zUc1vZpZS?W#|;rTJoldyAlyHU`C2IYU@Qih&KSw#w%3M(&EYEfpA8f@;k}LJ012D( zUmOiy?wI^#w+3u$zf@XhMl$QIH+K3&FC)&$D7euX-dK3GbDcZm$fOO0a7Tx?MND&(?Sb>-*EAkW zmb=w@F6zBL3j6pcPJ@}-{~}4{Q)j#=)Nei!8x`A0amqwXa`9gA3EyNTY;en@C(XrN z?G3l361jx~(A%fu(`@aX9E4+2Zd@Nrc+;H=&8qp#kFLva%VQjR&vY_6Y%LgB2iv6U z9N^!hXNI0_SAX}c8IJpm)8IM5)86up^@0vx_L9M}x4Ld1NQeeuNCl(H+)k?Q(-ix{ zF3I#iI8sMgheKJnztmgbzjSk3)3`r&y~euv?(b3P@Bi+RUjIajQCG%gm($jrX@Lp} z_xoSlYktiB67jyzt$&|YHwM`qujNK8bg(-cY=D)!xbt;VO&+#S`$cna9%TELAD$&M ze$Gp3dt0gtjU(;@yXwTLv|8EAc|ad`MT|{#W{Wk#T_L90=(mJCqLY)t`Smf!e-YNi z9lsobf-JS#ExQ11)=2xg6Je+gDBZ^N=#>0*Gs)#`8?Su&dP$=A_h#~rr!!uJU)6(~ zw|kgeA3x>f)p*08*&ilLD!AY17@d-aonhEv^Q>Zx+LKA`+Z}J4pLpz==)cIF6F@vn z+Mbb|Dh_cck26NU4SBCTBS*KddK#IW*?7}&zrBIhv1)L-Yw$6@wD~)IOb!0K;NU9L zyKRHZOzAi88j0VMAafn)X9~D{f5AsKU%<(M)`itn&b>pw<(w8yu}&B(w4?hbtux7d z)kK>wh@$RSW%19bJg@H@*r;s@#CjBdAA*!02HgXUV^TX?TS1$cyK zc7d9UW+cbIWlIef!O22nx(|l+@U4X5dGH^fA1-=y^$uHwop5(*a(QFuf8S_~^NYeu zA5&~z{loXp!NM^9*^2oKIX;JpJIYY|o5$TXe%IE+RA}{IqW7Mx%2{}DCaccrw1xUn zxdrl{8>QI=Lz|D-E7VSp`iJjN0(PCte)796+vKB74Q8(Uh`-_BA^S}OM?aXw$Oe#)H3 zSU&ZC3@@UatenShbY7zRt1313;#+0VI#(v_5UMlk!z8=k=+&WthLE8?_29&!&G!QH zQ4Y7ys_%<1ulj?k_q!L2@th`qyjcE40^u;#=s6<6+2kN_=)~BH%v-Cfv5tN4(KC4b zCQY@JvqQCES2;KQ+EPt&exuDjXohV4zW>+pFMiXvP~7^f*~!QC*an(J6O)j=q*EzN z+arv(0q+P3gPQ(St$kRpR5QA>#<&l2AppBMa^j>0C6Cde%ANMrFQ}D4+6IR1?BDY{ zk!o)N9dxmM$r!kLi@9y^&r{iwb(c0oLPH;M^u;tqILmkPp$W1_*&vnvjQe!Y=eJU2 zAt+%mI-(;#p7qQ@c6J()<~TL=W$uZC{=?T7D~S(Rgom)aW4+2%uIEMAasL@}!!9M- z)Mtae*vM(ixf7cLZTioo>f*e6_;)>ZO0kg-Y8{?941MSusyfJHY>fByS4jL#C9IEx z(Mi8s{H4N^*IF=HlDH#z@U@;%W3gcr+Zgmq%b5vcPn%!OC-vSD z5rPJG{RugLcdt}n)pmvUlAZFYFJq#Kd2x%`nKf=Te-vT-;@_y)5C8gO;tH zjMQ6qu1_bqBiL_q*{82Vo|QSg=flR33O|8kh2H>^V_Lj{YWACenKN-z)FIUfylPjffeq4{HFW|x2Fxm3F8IBV^y1;`iS}1zCzdoRhur)hkxZ#Gcdo&$7$NGrZ1e! z!{G{jR0D#WYQ~^dVeVimEcEJ)MSF{z8y|8%;_Av^0aGuJzq`!XOrHq|yU{G=p>d>S z|LlC2`GfFv8&di?)eq-uQ=BM6PSRPoVRs|&s3xu)V7Uv>sJiohX*Loi>e1jzJYRe| zZI8h=N)_Yv)f(3C{qpx?p{h<1564b@{e*o)d@(s90(Hr0_I5XXrE2h>UzI5*4{PBL zJMZAo`~#Tj5QfSd9@g(0I4FFgbORG# zim6bgHq0T}$)Zsvf`4g?-{}4gmsJ#I$Mxag_Waq|bOjT07LJXZcshKmtAmx_a?RJ- z?xnw!HOg6@2Cv$&mw%{-e`tmE>pu6Y(jeAl#xqV>IES%sq@kOQ>~Bm#LUk3!XKXPg zmqM?;sNLb9Vrdt_uf0X9`8X9*y*WVsULh@r8b)?>t`02nx(VY|w{`aM#MdDMW7JDm zdo*l>?>wr^L{^e&;oL8wR}GRj5x2@epxWw;e^9O69xRId)MvamGgbJmdX2X;r{M1-g2}A`L3)_7Vi>&$>v!p3 z^a;IQbbkL0jxm{O#Wr?x(DHPIA(&Nuzl~Yw?qbMlCfRe4fl>wVAR$ z`+j#4xsRd$Ao!Bor&(t|U-@Zm9iwx=(@1qEU}WTqdfowIFP5b%HHnieZBLC>obuZ& zZ|qRL0x8@ULdyMZn}Kr;>;8zh`sXB-#~pHdRR=ARlSAwy{68YyRU=f2adO6#i}nz& zz-$sWxDWWD-d)q8l<3)zIC#*;tn>L+D<2H!3!A<1taZvvvf7}c(RiS`Z47aeNV{%$B$+)(CUbSY zzjTrb>MQJV0bY!)wwfATV~D?0cQMO4U2(p(@K)89;Tni1*0C!vrutUbVs7oF^8}gu zdZ$%~q{JH5l}1t&r(C&PwA*794YbrHT93h)Cmx8fNeL8omux|~5S!ShK;-@d}VLn8n$KS2K6A2(3MF4~OXoN8MISuPa8*^19ndgO^Q_%MM?07oJx))U;a#Lhy{EG{tWxFDuA8UxBLQ+qn%u+>L_K)>Fz;5T zYBHfM-Nfz~xyJ>&LRnu*eI$3l?A=U40=cU^z2+CUW={u6T*xLvUU$k-Oi?q{@k1pYJ5mX9|8~l)$83$XspPd8ulq4ZcoTfB6LV^fQ+RN}JF& z_t>j@g4Zw)2VjQ6GF!e5wDmmH!oZP?LQR#C!b+Nj#WM4p0buXgw*L8ud4bM{=;|^HT}dnkqg*)T{X_|j{@;wdiM5n zGn#=_d-{7+xoQj{p5NZcsqemfBwf)YetW7wrlo{&NuAN zx8=y%0`DP8Hv(Pc)vxEcSz9fvcf;y8Tg3_IMf&`KUD?%NUj>%-1mbysxtjoc#QqcpLNWT`(AC`uwe0{ zJ+2+4+@@@oT(N(4#Y{3g8Rf(u*Jf8HaSFc>zjU-w9^!?xIAxWZxyUlx@u0FO%ho#4N}44kF~;RdQ=%M69t$k8^t^V&wqmb)@*i zB=6qL%L8ThK8DHthpA#>h8Ihhx3Pw(x=oNmjcQwk&#`60=Yj8P@yq zWz@;3%aqOwq(A)>HaJWd{bo_IvQ2ORvn@DTW7m14hyn$~ovq=S6LB09t;wR}OYIfV zhozZF#tzovioI}ru8AL~sdeRU-2yYR?CMS5U$GAq=95hICgaGs$K{HX$^N^}%dUOP z8wa= z4rR^%a&+D{jhjqME(f6sqsnNzL6} zD}f1f&x1661EjxJ9C>;Tqj~YJQ(HMVO0bhilPtT1@ssI51Jp8T= z9tvAdeD@K2K`^Qj_M8D?&7E$qtgfho-j2mBmE+6zG3j*t@!fm@cC_&%}c1&XW6!>W|< zyGS&+-aCB#cCu~mH@`B4wS$r(R`|aN0J0@v&JNe#{XF$vyNFQ#FLHxruDi#Fv)FHb zYaiSCeyzQavOndANHKTm^^vW63|px80cmWaJcob!}yYSq;MbMNYKf*avn6KchjB%;jA z!`|@dkZ+TKb$BDCO1GqFET z{V={djC{)8)5^a2yOX4;0&s3q{;{TGPZqK6ZN`&PQ)V%{=8bs^Te%sZBEpFMFK&80 z{WE%ckn`kGm(sL>?@}^i8WJ-^Hq( zONI6Bm7B*drSb>MkaJ6)_7l)y{J)+vx61V0UCJoFtlIFN+gf2PRus{AOdDGNOIJC6 zp>i`^y@nwC(V!ux6s@Z+$inChWP9)yCEny8v`c&%GaxI?q1x99;)uVF1nH@hOFMdC3uq-e^b1% zjJihTZzWQikAfGBQ9zRMq5HS2o3`1*mnGi(RqYjTch=Fwuw=$u(lk{z*wbFJPG9`Z zF+q?yYDB-jq;V?B`O)^LSq@!I=bLw%RJ*nmX(>(n%n$TfJ6s#n*^m;$5axyQdmyQa zPA7WWQKZj`@E5=1s>R>z6$bFfcbZO9n*SN)C}f38#Cd0v>!WzGEo4Pxy55fq6=mLamdg$_;t}n#i z1Jg&@t2HRW5_ri@g*0>AU2)`N1~)r8ls3M$VW-7>=OmWKxQgz5UA{9u*D1e3Dw$24+6=UWSOjVGOyb*c9r zjd6@0;IT;j`5Ovwu~||FFGbN{52^Na^Vu?D;pkx&xwp1svf~E)a{3Fxxv@`F)i*=@_-rn80;m%Od5T)6AxQA1Vw|1e1w#m$3>+jgi z3I05--1v_TE|!+|wYjkt}`Y}@7WOX{e=fP z!ymK!Olv-kTlL+x-XH_H=dDqp8ZZR4zekIt4Vkn?B!r^{uM?AD6yvPw_~m9=1VI@& z*l@(|4sN;^ktFl@d+vuPuVPKY&fhx0!K0dA7@(S#M*pv#&BdST{g30{t)t7CC|!ss zoN$iVRAR)WiyVb>PLgJ$=(kfYbIYua>G;v({16V2T&A3Oq+D{DTxP1{vaL+~kjaK^ z#G2JMwz11^&hPj5eg1;?U-bS=NkI_5R#n4QsP$7Bl9*#ufFw`s|L(y%~{xFn!~rYU1`(p>*lec z?#Z8FEwKbfQWM6CDMqcnIAMD=fMT#V^$wD5WO{&*a$mGX`ZgVn3o?`{{uQ(=ea#9j zt}m7F$e!91{CTo(7Kj9t!)h}2d>D)=g=i0lxC~0r;~D5CY2)2Bwgah|^M^qDd`c37 z=onEmI?q%V${FJ)vE68(D4t4NrM(ro7Tor0i(>%Jv8VOc&F-vXr z(+l+RlUgZ9u3~lh+&uw(GuRMb8rIk&D>H3W4!q(Gng>o1zk;jI>>3R~fts2}>tjzC z*&WhfTd3`}q3uz2%~R#dg5M^N2J{H}+m==gz5A_sL|&VGI*P@RC2V+jlXg|J1mjKDpL~&rJQv|*RyvIj9iZ(eCS zZZ`SmkU!4sK=;Zc1mG!+9J_5l;+u)>PJT?#wggm$c=$tsA7P)_X(=mG4#p2`GV-ha0(i`Pa zG*CDrgA$&HwsOUk*p`MR4%klmWxCy^^C~xN{b>PjDblYJAyY22=tzNQ)(quP_qbm*R%N;a%_TF#BEt}^)98b5bOOO6VIeEJGl!~GEG)- zaJx>Ba&XHi`1n=p#O!H-F!kOyE_nadrE{OMcLUUwON!a^M+`zr=!EepYB0x@3fKuR zis9NYEb(OH7B%@5?_uiiz$Zw0!4NnW4SQwI|Dj5taM4~m3N;zC1xMmaKF%5g&-4EZIFzZAGH?OM%Gp5K*R2<*vneDrMQ5V&y(?evc9(G83R#W$8yVw zRtPyqT}}|sc;dRWw3hkm{CMR6GXkZy3KE%H0D=_kIMvoi`v=y&bL0DwM6eV(6RI-wH^Os`AZHb34@o zSNQumCe$FIQMqYm$>ko7<+}r7bfXopYX?i}>Mhl`Gl@0r?k-mV)q=D(Qy)5NA5==@ zl4$Ep(?&gIs!1^4p!|lk4-!t_ny$e+eHjUHET_}WH1&y`1*Y#o&8*{!jKz<%CW_@hU3`?^i-d1RruX21{ielKoIq{7?I?4J>?p}C0Fw|g?=i&*kM4^$Qu0<~t2&Q`(u@4ny9nhVC z==G#-8>e z={?;FcVwQ~pi`YD-5SJ)0?6k>xyN4$*Og+kk5rz1d)IjK*(pQJ#i^p{K8ZDQtKfM! zX(|+fFD1l`*3>WacZ!|iNc`vo@?+HO#K9bAfP?oN3!&Q=_bm5YPngL1SzMIo17muH zF{g9r0C2sMFfc=3qtl)_>x_vSWHgl>H=pshldN3((i#d{g&HIRbBZ+T!<*8l;U6Yh|+f=~Nz3;(QIRlW^gs^bUzb| z)B%BQ&@}ba553sz)xpn+&XuJ_mL%A;nTD9%Ezu-Y&$38&4suVE%?0J}F#-+c*A*C)Y?RG;H-n9h1?+lmyj z8I!A1+h|eYsNzr+V}UOCM<;^Scu%+-wSLo5!}(StagR;>+diC9mWgB`C}s<%i0-W$+y8&&lMi z#(-expyWylvdow(XwOmZ=z`dBll1_Y5d>3>?$CjNCAfSa zf>nt3T7d#93nx^(r}hA&iGJB|t@h4<^SUu;__g0&{f@!w3Y7EB^}|o=ZYS+uN)ueB zva`0&IWNXdix%j*!rxOF+w2bK$eoCi?i=Lx1oK`FDi+s8w4T20K-3KCRSROxXITVo zNyL_}$uO~YMQx9?7Wmw=eJ*~Pf>7I4=nuB3`I|u}&;L?4k#X{TV$Hn_;K5(OgQs>6 zVlO$GY#mDfd}Vdn%L+71s@*Z47$+^o)4TujB5u^wyevqSFTi~M>Iqhxg+28uL-cko#1-L`jIdZ22v zO^cX~zQK3E|LXex?>lBb3EOkFY}n@SmO%bZ-3L+d!Jq^GT_glHG4xf4W4!OD#^TBh Q0p0OE&1<-hcS&`0%>B z$9KK@_4ej7_wF8l`RmpGi0u$oajKvlqo@o-+S;$kd&yNJ98F(OJ| zqG`LtNXRNJe+yc-q*vd*4Q-dHE45Cm4v<>+OhV$T(F>Nut(BMD(UOvM>8aB-X-oR+ zEz+hEml&vi@?9S#QY^IP#Qlq1(XK3Q|iFI@c+BL;9@I9W+%I>fr7)IKk}s4IdfMw+wFAbjRP~~!H!1oqv59PW z$6ReHA^gP1HwB~$CsP#F?W)R^Z(h}YJnB8O4;2|fBTi2eu(ZZmGJ%!B4>it# z(m1_50Z}}T$cX1J95#)wWK9Vsxe=#*{l-HNuUj4Cw?z4@rPWdghj54SPs*5?C?{?& z#Pi9-nwUJ}A3}0_cOz9a8mD~ADW$-ME}q=t^-aRIPo>(s0PM8MSNZPJyAuKaI2)Kc zAe_uI$sUNH2Pe(5oit$sAwzZ^77)U48UD%Kh^nKB5mSZ0Qw!|g1TbEbf+33^D@By~ zdey`2B$6hS1Cy6NY@E0TEYksoMFSR;5jZC#S4=hEUhFPC^A~ze;3OX2siip ze0Iq#Fef@>zmw}KyAL|ZF1xpT2C?LK%1BL8VR4aYUM|Sv7 zvz1Y50MYuxRB6~^<(}@!`r~7Fc$vinR$t{swSa7{CBj5-NOJHsd&(s5qDcU&kJuG$ z`*P}F7;fYW&080Up1Q8-eKB!yu^|Z&0-JGS2Xwktv^3ca-I0*x>MScqnABfmlP#jh zodfizoe?3QraR^K^@T3T&@O56Nr)_q`EuN)Jfk@YVgvg`p1^DR)t_Bzr6X)1j@YI* zP}P$sIl9Ujx_FIOWyJOu1)X4|Tc+1SyKM3@{g$Rf#_}|sCv|APF4jrj3sjups;PQZ z)YyQhs1rVL1kYWQlx4A$V3L!A=#Sc}xx+J$A54oHyx;OV(L*0_jviV_s9$JZMK!?F zOOw)af(a&>&Vnj4^U7jhh_G{i;)zFNLd zWbe%B6e!!q=%xeNY+x#*vPqPanpHL*B~!EZa*NFkRU`gm!V;xT&r&n`bD-H$F&94U z6dk`R#;jlpHr<~2m^Jin=JE-s2IW0Mxn&d?0%EfT9K0{NT z_;yiyA!KXS3x520dR)%m`oMo#t-|d0N&6C zXHo1WN}QiNlB1h!{4Z0`0?9!|#YcWP8J`}`XV{AdS z@GERKil%T>JN|?1m25NWOk7GiSN>*8JdVld4nJS^_Z#!_iVQ@pHkyg$79=btAiw3U z@%mz4zD!-82NAy1Rp0DeP(n$hk|vcyX7xn+|C3s$0=71%T6T|}MnyDSX}W^^^9s2G z!7a}pn5!O8dE4Cu@9&~Xk!bvG>yEbtis^?TrCn^Y^~*wIqc>5teo+~p8`#nOVG^}= zk&%GnQ}$pYtH`y~tw1U=)rJ?OL3r|7WuPd@zaZX+oZuo>cW56Y_LzS}_cU=6LWJ2$ z6P-r{#7`9MM`{TsQ}pVJnOGDxNP(V0JLzX&8LfF#>xt*`6GD8FFHpPNs&-dDn5qkO zyP|1}g1OwxT#x?QVl&$Uy^vxa&)XsP)mqyvus&XqBQe%MVTYb@$;`Ol;^VM4-ZdC+1M!6}I#0#$S@^3k0${5Eg+O~f zwlWS$lkg8)9HQ3G$R*;~eJ#08XKNSXw^j_2#8>&%Vucm^?mXjpf39}RvU|SLWTlYY zT@c6EGjeFOqUhtGI}LIBJ?43D$k=rg#Du!)J!^%Hm|eDvV&TUzA~^>>e1lT76JQ+e zN^qfTV<(#QD$2{lHEzUGlGzAU!-SXWJq!dWOlm2J|G;P~BZRf-@zyi;>-CpZ`P9si z;oSW6Ks>6y@)Nk(hzoXve$1$k`wMMT)Iw#25%es=)IgnPX)G(PIlu6p!g` zb@5Qxdf0JJBmt|4%3+5qDG<9)lQ~*5SlU*Vxe9wWJME6)GORhyi0gj-`@r)*(lhnN zY=lJG zedJ*(oDtSbNvrNIU~P=O>R$}XA7T$%FKdk1-2*AO z`I9Gc`MJDzoFmJx)~Yj2laSEz8MN;YS8q3Od$v4Nm*VBMb}s%TWt3c2);d)!|3PT~ z+sbW6#CMf3{fB4yC|;PW6lu88JMflQ?$4P9%m2$-JA7AjNrzTMsMPT<;;P!J=bWHp zrQ^Ol(=_jYS!<-<=@No<^UtZ*h5wtlDyydLv(hsTF3+^iarsgH*R=*K-xX9|SP@~P zSc3meT*VEKNyDw3=09gTzWra;iX?BCL|y+W@V`{!zlaM|jTQNVs`1};5~v!WYW(d` zK&t^dl%LKMbSOW;35YfRJFWs%15^zOSrCT)zZ9Vu@l6DlENvrU7=rS=nfbX}O_ftJ z@v5A9G#kE{KaO_wOImCb8RLZqld_FrT;;qLO+y5BPKsucgdaieq>n+nb&zFg^~(|W zOBKHk>NGQ|joDVwi(AF+7G`b&^c;JsefO&Hs#H0Z0P4hd9>HT#h$+tY;xBX{jGY9r zEqOnw?Z7Z0!LQYCq}@26aU!AGiT_+Pvn#{SXb~f9nj5o>x)HcdUBq5P2&+1icgo#2 zHCyzOJi4QH{y{?SC6QC$HyL8Azi}{((Y)V$|57g{dMuC7G*>R7=O}kjb7v{h(O=Uk z-5v-y;c?Jn()u3B!3;I{<;1u$s(a94z3NfQ+=z0Dzhct7umFh-2lnouLk@Ilt_&e)n)ntrk2JtVHy!LqZ#S9kBC4q@bSRVhyHD2* z#FmU@W+G;i8}Q9Z3rtbvbd8F)iBYa))K>u}tGtaMY?jyC@uOxyJflL|*c6SzQfVCf zO&pu8!hVM}o0tSF_O|J17H>fb=+BAXDk3&9Sva_!c%E0?G}ms0G!QI#m^du4G9in@ zb7=-bw$x6NYfP9D19cPTcQ{$2#gf1_l4~-V=R&QFHunb)5T;cjwmTZ*A^b0o8UBpj zE`hRs3)JPr$1ocwY$PMt@CHv}9+k)1^JOraR!P&&D$i{SF^U@NPpu7LBJ_k)s}jmZ zoEA+7J|DYdJgc@V%AZjVF~SS+LhKwjq*@#R58f%RsEusiuW0j-1PNo#&6x-Uuh%mk zTOw}Y+H4IGbnaZ!(-3?3@(huvC}FT%6Ed9NYqpKb2~s);uoOcR34FGNjT1M$VT_aD zkh3;O%xsXN(wVT{Vlunr5`vd$quFj{WD`o6-Z|$XImk4*ytA{e2=6SW32>;^W%8XY z7lw-ZxJOUL!btBO8hfRx@{U0*rTCfxzcHwyB`S3a%`{{ODPcGpz6u9L|q*(Sn`x0$*CtW0q@|G#-iCM+S@Y3;W#H^x~(VJ_U8u{@lj0oETZ;J&!AwvVk zu(P7LS#>m5kAKm$Os(NLiTTro)Yn`mCj%N4I>4yFF9s&r8df;vjg_lLQbX!FR3v@i zYghgIcmm^WdCmbL-n+KC2h~klh?sFg@ZSl@i(@1CNId)P_KIkXvuC%6R*fCvP4< zaaRxThh0ptF*jNGmXxa+#l|HN7ngGq;a(?kjVc z(ZRX)FbU5r%pdPfbR&}7rZHcIPcSldCoWO3^nwHmV`$hdaJxeNTrRPaMH6SBE~;=9 zh&1CR;RF`tq}w&So6!(x;~X>{(mrcx?_HGW59M}L(VP?!WcQ*PA#Dp1;)uCE?Hsna zG>P6+=%-mO<~PJoGZ_U5>>XZPTU^DJ5`DrgjSt`@7^ld&m7JRkeTPcQISZ=_k^_Zh(@BGC|4PUYPpH+INzfASTZ#>%cue8yT>1a4@N!LzW*#%yA9 z%o5btV^JvtlybbHV1&A}G}mb#GkidJH#xUFXQ6Y<-7FH(_8gLt6Oc-^g)4D3IL3a5 zI#7=P%$NDf#o%eK?dur62J|_fzC-Jb`Lzfv*AU&}O(B_4X4Vdb;eSN%``*=6!+M~5 zYN^(F9+YWyQQ@i4Xa^bWm>~6ZT{DkB8jeFy7FDA}aOIZH(j|x6dG2B&_+=$}5gVz( z;NQz>tk=TBGSC9J__F3&FCCxME;?y#tYtNMXA;)D4}0hVRKW{w7Td+qqs)&?R9Z%M zUSVLeqX~)|Y?k>h7v7d;h1ywW1Jo)u{<>{}$d6wu+M?Nu^>-kDJdOYSra02ScDk{l z-~a>PL(eIJwZx(QDZ46}Gji8e zWo6NfyqD9|keUs-J8$7HeO4gwvm2&K$)D9Ky74Er9HTEhB|&&a4eUenotwUrvE0g? zma(l^((G^;L69=bebTU)Dk7iG(~O)iS=X46n&kfaZPisZ4DDdi=QR$2d1b! z%t$wvB@-trf3YRLt$Tt(eGDR zvX=1>h27oOyWbT*AqUPy`+g`~UtT=NkoBjyR>HdvEfvB2E0z<5xiEK6Ut}chTWZ_P zbSK`Hk@%V-Wp~n#6VjQvm1MmeMv*@on}v!T|5KcfB0wdkcF|l(+q&_X%IjBb!!&(k zD`BfE+D8&pmN4F$@zB&uM&`B*uL9*BsKRs7>9@?dYRPVFeec);oYAc=@=2|~z59iQ z|CZFQi0&agtpZ|S9A&MU;3mLaZn7hz0bBo@6!amVmel%_mdi3UHo`>{)B$THQTKI- z-5(W}wX?ovS+vj{9>}@5(9#{yB*DxiV`7ci#Hj9oDnTtHae4%yA9-l;&<~E%Uy_40 z_>-M^ZZkrT_BtydPzH}Vcr2e!rIih1KZzAexp;HR#Y#$rC2nu6$sPMS_}0pfTyIADtbw52=9%V>NIXl zkaBv|OTu=bgLi6ZIe!6EO+UP4VhGi=C(~m$@R<$-Z-wjKr|rpHUjk&k0)u7b&F?ap zCZU;=PU5#3+sfYsAg|54Hl#At&wk=dmLjEK+K8#$;xyeQs87r3T zw8YoFVG%n!R}fFQ81CRyzQ}f3|2j6NFAOS}Arwq@q8H~9?uj>} zY7>@CcE1KGIC@xwS;8&WevIsOHp;q}_0zJ#LIpfm>AJ=Ht!VtrQw4+JGS6~Ud^E|Z zf@RYfWjA%f<;e^AmZ7%Bg=1{$RK@_p-{~qbi7xkpBO+Hs13QWGh9V7#14TDzZZBsgPch%75Yp;qZXj(3GERJ1PCX0sOI6f|qzq;__=8q4{$ z6!!2OJ_vV1CNkPmh#Y>h(KGjhFa!k(TXM5SmZP^AEvA4tWA$6E!DYC!9&Bm3-ue$Cr{ zYh&2(12&{7q>bs?iP!j@r=Pau`KFHaZUz_;@s(YVzo7?1e&+CTe?9P_ znTTSz6eHp>6y<@Zjm%gpT=zH7Y>Dr3Hgf#nxn-Q@htkAHZL-;Z}w&2s*7%bH{du3L;5U zUkCgPRT}%*Q|o8LaMI;ORpEM%pL0oKYAh-I^T4z}Oa^LjiPNoLStMI` zFDKr~qsO8Ni{flO&}N_Ah;0g`L^GnfT^*6wl*7(fa4a6vgR`Rz-9?_PKw?nLIJ`=` zw@D@+Ds~nM61;vX+dP`s=vB1bb^;1VP#ASj2Rx-6+wx;q-n5oE%HR@i$;SbRoPE%w z*$$%=z!nLH;min>UX(wX4t32G(5h zq(2lEy1eL;0qs}5nSLdVd4`N4)A#b6V1M_{45mM^XbFy_}SNK)q^`#to^)srVu`7Y{Ua1&<5xHW- zd@VAU-C?&H)7wFyY;RlxBXZEbYhyTkY+gVFWrlbCa-X$-PVJHbRW(9+Y^FyvvjVT5 zz-NE0(|w-NK0u=SWX*aZa_%!YH9T@w^Lc`nxlYNo4iT4#wK@fgczn zPwd^{lg`)sEO^BdQ*ZeFZh;x}impvOMise!Y)e0VOD8nL8#h^_paNZ(3^EiKf}CLc z7ATi2-h75Nr$=@=Fgjbk_}nfCB+^L{PzYMK^6-S56B{{Sn%&JfHJ`bM#xkhUyu^xy z!w6sA@h(?V!V~(;dn#${az~374WA=rOM^!E@`YNGF1SLqC*64^hY|F1208a+>rQ03 zEnqIEx-QqB%s8nQ**H8Wh>H$`pAf^9a>-*xG=|s|AbY-}wQWcU<`g3t@qRDqG^Xf@ z&)OKMA*Y727?J~9JRRG-h%(0KI#VcUSZuUGB!rU46Qd~q>W`DvgM|yImLk>`Plwoa znDV{Q4i`a)}37f@VQ~bFg{CbgQL%K;Ob_Z8F6B<<=V&p>IcT zKJg0D{=2bcvCzqZqBb{*8yGr}fZNd#Em2}|+Q{Z1xX4%Nc)O|fb;ygjw0_Bn$TNT9VxgH@02=$g>S=TuOf(0WcAco z%pHCD!!-|UO`c#$xAd=7sMTSwpvL=xtHrw1=Stdg!)WxH|F-WczZ4U%xW3AD<> zVfor?nqh0YtBe?RSK;xOb*_~c20$ddI5WK*Ds;q=R++Qko`&~@x5 z7k4a`9`Ateaj=<#%3Sw{Use~1iw`y8?flON{#_UY;r~A8w0^{P(kk^^xp0P+0GI4G zIvRR7F?d0X5xar&VXj4?R6`V<%1+`$yqmiE60Jg4w`4eK)ge zcyNkfO2tgzzgEonk5uTDAHBGoMZV+wZv`IUE&fy3 z1IhxF1-M5*d+}GbA!s}QQ+Wx>0+hwSRH=G{dI9Ri|LuAq2L#sr-3tK3<9}DlgJ2p2 z(;%1z!88b_|JyMp5Hx|H>Hl`n1Og=xDE;^2h9GDJK_dtnLC^?-Mi4aq%vpk2O%N!7 zKnVm&U?~j5p;;4 zLj)Zn=nz4N2s%VDSp+&n&>?~j@&7}IC{pD^&BY&|_ED>q;B7ehW@Fu%#4h04KfS+o zT!2QE;sIf&xEJ`rlo-Kdn=WDUCi}_@B7=d z05=62e+0cvQ}DBUxQng}us!De-=A!DLv~$VPd({sK%VwWJMDS5e;J?vW5O9vjsDp! zyJWi-AaC0Bck}ThQnD_SL*56gtkT8SL~K%)j{M62U1TI|_9EeD<8WJfr5M>4^uIrB zElom7i#t`hxj)~0*(*uN3YGq406NnWzwj3FbCHFz>rACC|I>H8HAX@SK5xI4b#32D z4_Jg)DF1bU01h{AVClQ&&qZ2G$-adGt0JH{Ta|5aYs0N@KfY@LKe1O&fv<9Fx0IdON4YW3Z0izVC2A~>2PEtAh6l>|tER1&BLVrvDe0jLI`8h}m#%rAgxCNRweW*fn5V?3C2 zhJ#7xQcw+)Ks6B8xPaCGR0B{AmP?&LrvO?5Pz`<-K7vjGv<9G40G+~088m1OKx+V6 zgZ~q)L7fBuh(xIm!`DSbsNXBS)sl{dsVo8keT<%0;~4}xlq0Uqt_pDADZ>m8=RTGN969DR^> znH;o6{&SQ;@-krmpOY860Jl|`#lpW&Qf!Ek{Q5tgS&&dNsOs|g`wT)1usO#1KW8#l z*Y$iTGX7^E=@&r7e-0a%0*&kaICg&zvd%kFlaK|?(#q!r zf)-eO=x*6YfX-&+1S9BImycm8xquJ?gb*MG7Ka()hJqm67w?5n>%hon*)Z<91qN|H zT_qT=uEbVgX#T$tE+7kWLl)$gmci2o9gs#_j;%llvC^6agb*tZ1B4L&=^q4A-pkQ8 z2q8cS0TM1C;Q|saAX@q-!wV8FD@-&I zgUA2C60PN$Ua&+9JiiK_i33k1gVkvNTU4WM)WxU&-3#Dn?i)O|`_oH-CJHoBpo#k5 z!bE{)32br#*71XN{9xmRzavMmG7YRu11rR^OVgR2$zy8%ck)d3PufOB2(66;)+e~ZzU zk~Vdhx9Bqa=MwmW714ll0ObJg3(!7*b`ta#px*@H0SJ>oxCp{#5EX-{7(~S&D*itT z6+g}paDT7Yoc+mv$ZEw%tow1~>pQ!F|9Z_7*b7(zKbHo`YQ1O$Brey|}gZhBG{(sJCk9V)+C^{T3O`WZ9^+ z1kYrw+fyIvYm!}SMinnN6fPxQCu?fFlyzYic`qsSWyevkn;#KjNBt&G4L#E#PjZ1Z z4miu63#sVI0oS;6quFic!h0Q;UYX1|Z;OAV=2WXlJPG*#$lg6_3YZ51I~Hlqw-`D6 z&ec&vyDtkxy|wWfIf{<$YY#N|Zoaw7%`xA>1!5hM7s1Wfz15Vs^TBxSc6M@L^Km{o zkeHJ1eQ{iOcDq!wp7>_2RX?6U-`WNLKs0R@?ghT2)MZ+rTpE%;9=q`}c`4T7>+Jln zwO(42O<~yw)Y)jc$u-+}BT0qFvhAto5N}Mx+!-!bEX1|D6;7a%ddqBl97HwhcM}o~ z5SW;)a~F`)?#`Dlp3S^e1AE%L)Ye^h*V$>$pB))T{fXgAZ3#E6SF+keKfZZN~#!Y~`t^OXRD%~M%%enUCWA0XM1)7A^iU38%{jt^|^qAEI z@}OhfcQ%I$?=zl9?+0=NhPwDmcg9XH`6E#^vZ}aYet88`??2|c2}}}<(juW`SwKHiZ2m_J|`v&}a z;+nan$CR-)=adhHN`q#FKgqVwivwP(xkUN=!4^rSrM z-qJKC`0~iui*Ax zCa#)WnW}n869yCBgZ5T_ry&tT(pJt#2ZZ>>XNuQ+tDexT^eL=apC7@*%Qy4tEiBVB zQ$kk1#i3j!T>yzG&YtLw7fUe!O+d(YPTS2!fwe-U?&jpPyB3cl$Eg zT~$_An%f!o>7!6!&g$gug9qlzK^EL_eP6ej1J9g&NxjAyNw_X}vTM@fF#)_+_udwiSf%n(-d$32O|4g%(< zkxwc6f1wAlONac^@ z9g84^pk0f5eDAb6U-g-pEOuHGb=_mPnK0V@?TGK?oj#b$eQXzu^f9}ugQ1r2{e_s1!5wMdXN|M2dM{XNKh$k`LhwmHe=A@%W(7ZLDD*Yiz7`@+sD zC*%A5IOPtz$|s9&^@tgj^kAz$<*fTN%1loACX?ljgJWIl+*yamZK)jry8QJL zTI=k7JvVw)^MQ2bO}xjv{_`VY?|-k=WasxjP22yWJz4DP<&P)ECbmuA1rm9*g?^pBd@*j%64T zbIe^&+q7o|DW}}+eeR(3KCe0IP0!8VUDll#L}#-0O;WL={n=0h+@=d#pQqIn;CghP zHgy+3Hn0ETQ8wx4vY@`>Gq%_`>Mo#ECrM}E70e5O9^R4!hwj3WXn?yxOm$GNItob6 z&dTRjCmj1lRFibfJPHX}_+r243bfcD9Hx)MkZX{74cYM-g{vmhD_hoH`tbFlROx{x z%9clyo*jENLYp?NMiy?8WsfVcPBdywC%0~P^0GYs zz%A8(o;NLo+%jo-Om;@^+O-KE91lc62!W3|RMKqktr_R64CP9u03nw{$RlWphX*bN%wi5$wU&R@)`_FeO=?H=p6M`@ih5 z)b?J_e;y$uM0?~Fsk>^$aQ#28ufaugb5WSiJ+Ll;wJ5Rx{^L{J{4HYlpf&8cyK|%K z3q$|AMkCx`l>hWG#T9&vd*c!+f(g!|XU@O#IYio0f!y6R>aKY}M<0XM?!CzDK3V;4 z?%tW)I_J}uHI8hWqx`;BmQyq!f7n48KQZhdxjPL|GRu1y=gmET>G6(L2XJ@ukk-yp zZv4U{KSJT@USb~>wYbnChvY@Oy6sQZ1}!=?`X5%#BC(+&S?j(@aUwc72R z7(4DhV`)fKVbDGq?7+oLSWO>a7i8OeCR4B0yGsz_p<9lNxrcXr=s57UXP|lypS3pG z*IzmHxBajlGDbH$q_i3B!T(Y;UY5Eged&B^nl?N?WoD@d#ZzpF3`oV4I_wxTANpp!7TBT*wZYpz6)atz}ykGyhD8Clw^k=e?}CS#z)i%I^a?Dj{juP7=rc_I-&jg*j&@nHFS&LgzR@? zN5m6Si_-7*queoj>kcgOb`#bW-t(F;jO-XK8XT!!_sB=W$L?9Q15mxrd?xZMkDi11 zO)*K!ZaIA6nh!=Q_s|VGZmQ+CcsJw(5w!4voIBd z6wj!CDOn&nk+t1mBek0K{7TL2fnLSCiBL7?sJM|+Uq9gPlb((bi9ua@mV^CuUzr-h zr)L$a>4Vy}hg`OB8U8`+qJXCP=59<@I`_L~D9^isT;1GD2-+IZJ$yCUpktu2KJMeL zzCEIcD%UZ|AZ&U(y+MRHlYhUz;xh~9<_ z1XNFXbkYt}b}{10Q~Vak{Z{r-0{m@8&3jq`Rz6ViPB9~x4x>1^V1r6LZ-nu&E$uyg z$yJD;1da0L84Vf{+K;HR5mjV7oYx$2#UO1RX@g=M_ms0QV(imX?1^0{hW+uQH?P{6 zt_1+4s`I~}yao^RH8JYWdXBD#mQ!EurtL;vLOd@DUf`(m)6^j1rc?UcWr8Wfm58uGa*=cC*q5kH5 z<>f)TYuG_ECI5Nal<0?GIq(7cZ`3E7IJTj8e??&At3Q3|)UhY)#PC*cYZv9jMb|7& zZSo4ae8OTbvA*WKu*OdGf##{qqGyySkfKf^*1GgwFeyNoBpbMow)%{PQoaNR>tiZP z!7VQ_GRJO?`l;?TlODHk)NESwrS#!ggSNUZ zp+N3|`ea3qL$5oT(!)A&FZANg4^u9FzKRn%x<+QeqZkcmU})%)M!~P7ZrrS%%y{jl z^484woismrMPo7f6%r`zj}`qVtjyeSa2}LT`g*V zY3(Ls>IDagXHXs)7uo~-(CDoBtdif80UabHvHJ6$`)PhOGFQq^{XIn`|rWLYjr9w`8sgQ0zLCQwC3Yxa*TZ^ zJch#Qr%-r$-p%cl4vi(wsE{DRQC|)XuCgTm)Nr-PJ&iv1rTBLB`oS8A2hNEYlz_cW zoX^K!Jl7$2SO2uyfQ&@_s`41>PMRBUy-sW5P6KTXsV_&v*vIdQu}K*;EQE5IdOk6= zMVZ<=+E+KGL7h4GviVQ%`CbRKdz)q;L9vhWsW+*wgi|6P%{|q!46w@$u_Y+O6hXNEm2pO)9-Kk)#CMJN(zNonO*bC%_a{=>DushhWyTq zM{+S8Cis0{pSv5*Cb&*ODz`mxlT0vJud~4Y^_zaV+GORN&u7@tIZX4f@WR1I=(8GV z$G-2*pL(6IVbOv67Bg^Z6_oF(h{y7GgEOjM&~n{9lv>M9UQ6U8tEZMhOFC6>X@#EW z=L~Kx@>j=5NZ0Wc79&0dJa2tsL#`TA`V^4HoGkj0Qx+!kRPIX4){E7XE$~&MkLJg5 zrysl4Q(HuK`A47K5k3#Q{fX0u*n9jc z^84o@O0Hiff4ljoiR$~@1}8|#*z??~;I4|#)6p`gYdotzeipgrCdqw*X)|jN^VN|v-@4}Vft398 zQ60Cu>+LT%?XM~k_#*ECYG*X6#Isl5NnS@C*1cx=&elnynIz8In4m~!-=-g3=t|A+ z-eFl+KV3Kw6MBg$dAZ}%{(*(Qe9q%rv*YaV#?oJoeyM2W3zSs&N_D2EmBie`hRvgk z(NFK%I(6WKf0T|l5;HS5(ynC;al?k~n5{Ez9nk%Oot%L_=hRIm+a)(4n@=6Klil~& z=^0ldV5X{J4kuIB5@U8cK&TKPx~@FTlv>hRw5zf+Uzy~JnjZu+Ea zf!OtI!DH7U$z` zJ`=NYfXga!@}be;4q;J1rBRA{TIO}}0S>R#KTbeQM@u;j&-x}=J`{-;HX zO7^4BbIu0lWgY{$Grt^}vCCp+)^OjTwET}eIk7UMU^uz5E8eWO%YMFFe}T{+?R!Dp zL4tJ<5*Tl<6UUvFh+sgkNbo*qnWeB3rq4SRGV+V}H9?TM|EL2_u? zWK?+AWY5N)^S^3qRAV$TVMN#a?lR26X0Z~z0K$nATh6xkJx@Lv-Q(6_FO?--aU0{k zDUu>Q*1E))8hM@QVfMOF4C8(K_`vM6Fdj$g2=Yu{l|-mBKf(BwICA%8?yu+drn)=z z=Zn*;wSNo*#-+na<>U2G$le{&V|eZL+Z5Mp6D62uajq{y#lnb@d@(7T0%v^L_F+%^ zgzMf7#&ZP(r8T#d*B}4xBW#XlVWS>h8Y($7_+i+3^E_BY0})5fAb zkXf`w1Fk}L>jwCr=a$hn#n<+k+Xl4^Yl^M%ROLMn;g1Xxacr+g+^4Q{QL)x*w2<;x zHOjrVx1!5OG-Sq8OB&OUxD@x)b{};vKpf&>bE!DF6CtC3A2yS3+`^ z#FL_(%bADeRKfvq(%@S6;5DywyZmo{70N#^N{dz!6Hq5d!F z2CIDcTW`UcCyk!<^Hh*qeAa$p4&r$Q})mH*7y|IxU zH#^K4kxQmzF=bu}d(AKMjSlk(#4G1sZ>ARD2ejO)d$I1Bc1v|FT^(J=);nK}hHEG3 zc&qS9(4vP;q~0WrLj)|0a>~KO+M(&Yv$Ux)V79LCXyeg`^Emew?aLo0Wge-gWe!P=?=wscH%T5MHX*s_DHLO? zNkDXV)L^!5Q=hR-rJv80<1gEXDm$p=e4(@{1n94gQkWe!iFOd+reE)QKaCJ{-N|h^ zv**+aQ>^ssM0K;wu27z(8dxa zQ4L3RpdWuBRtn~-4>V+vgH(l?k7jzAhWbt0TH= zG7?y#f(StuBs10dcvmZu{Anlr>493Tp z$VTbP(Fiv+3Tkw2im~{Xi#FJf=WfdTA3NR5i43WX2=0RE`5^tmsz@m&72l6)zKfXo zQlw`*?yRauzjJ?tYkZG@LlDkgSB6VWk=ytgI}Nsz@u!>4R*;H^56x1#@onR6*WrJ@ z@|Bn*Ma3}H6nkoe${h9|u1L}>n1r}xm9-~Bk%gMrFr{0p^yh8^wh^z=j~zK0Ba2rt z?}}{e?AQ%-Zv@7q6F90n#v})SymUJ4!oT-)mFcNhAzRl33m(0F!4<9Z)Kw`Z$6fVl*f`<+96H0D;~@--#es9a zK*|j4KUNn=zK;^uqI@YcW-VDnZFQZVR?Gk-Gl@Dz4+(5LZDcSrY2>LwpikXyp_zPz zb}{XTT$w^>W}Lyw9;eD@jD+q-r=ly9`6IUnZHXVlMT*k-mWc#eZ0rfvQYb-_@q7HIj?QFmoQ%V%X~Gu zYbWotuu{@J9{Sp?nrQggquCZ<-A3HuW%5{XI-wNbqADq?z_2}Qdy003c?6~@@x$P$ zuv`6WQyJxu-^S~o{;T*tJl*%Y^EQPvTb&<<(aD^-V(*I5v45~ol3F&(yBLO zzDsVL5bl<`0c%gd(NkJc<_rOH`?J=%!7uexU`bZ-J+4q2u!e^Ncyi} zzUVbGytJu8xJ>d?r(rLW{IWqrpb}Pl_sDx{d<8^(D%6Q8jF`F`(JE@Ww=-)?Y-9b- zRX>{(#>2bEmGqwT)kPBe)LC?21W=qvrfgG2Hl6f)r+YgaU7I~ad1nP8nNc_V06+kZ z-8E53`dvaN3zP+YQI|=8RD1~4t-H;6LeZ1umTr%K%Z{66lS`=yQ?uZjaNXLriTxG` zu#$~h?`WD|rA?hxi&zo`v)AXIJ9LoR990q7(l35!*diN#wM;b*n!|qr*PK5z5r_n} zwoNo8xF57Wsk5_M*JnvNBI{itOJs$=PM-}nUwg|IZTJ+a^ms8JGcBH(%aCtr2zZx!_(+$js}{*Q^IRU`{ufTzfbDhPk2!|{^43q%#fztPL(6EmsX1~8 z%b5&V^DYZq)RAcX*_Pc((yQeMgx`RVkj%nSa6$y^l`-d=8m`ny{nHufu}Lf7f@}6` z-Yr(7%ZzzMUx(%rZAEt8q}yk+P*U{;NT$VZOpCoS>nS+8oifsxR#&tbn@XR@R;Oun zqR7j96I_aQ7~?0E6gep1B)p;nayR~awaL%pa)mEw%xxQeMeSlHC}b8ai#a~opStq( zf!N+}^D6P?a0yFUi4!b%VtUn-_LV0EiLznFHKfu!c+=Pf;HIHxN_e)S7(qeYo|#rv z9lxONI%o`mKJR*g;7jpu5?tW7S_*Jj5Nx(*#E3-nIIMD>#gUl{Xayk~xZ(pGzO3J6 z7))s8l??V=hQ5e}WJ=gSii9?S@QhC0F;#E9zIZvLp%p+6DKBGrP)yrsw@ed4l5%@|0 zXzU@TEh~PsiurQBW4pjZBBJN0_a?3pGX4OhZ&rg5+*+BP=Vl(F8Ey?fohzwSnd&)g2?Tp->QbBM@7Khfj=v#f zk>1z{DqJ6}2bmiT$#rjQdHwBcGIJHpQGExzh$06ZxB;md=zhVdL0Y*fXI=7$$qkr|fwbg7zu)w62$9b%dm zI>1VyEyCM$%C4!RpA2BwoAI+Dxrr@48p+xq^{v(qk2ag+J9)ZPBO?%-y=z`b5KQwj zq8~_&x}gVv&DS%$!-e3Qe^Q9C2qpwG9miRwcb?UI2a8l}-eV@xcS-ulqdcp<=AJliB(GV5$Pz7WxS_4}Ng z%eS=#qMLSqp5jD@d=}>7<@cP|<*b%Uvy)UZdu_Tb&$HUs>d@#K+1`HEM;KMO1SEURD<1Mk2!xxqh%FqwUkJiQ1I74->}(n4hK8D(9jV|1nTd=VQVa zw`=NAB4Xy~`{hlJ4#Gt{C?g_$k!@x-R~p#V???(i^Vb_+BQXeXa*dv$Yim8rBHbgAXIt7WFN;t zhJ%*Usw$0S#9(XGHg2zDnc%5t3lh%8;m~&Tp!h z_~0evA2X?Y^a1YZ31L_o;*BA|CD=rU+B`|tZzw%s=xL`4RQq<`(FC#GE{kC>Js75# z*slQrOLF=;6fG4TH3tP%7fmac>umsfEA5KjPTieh2f03I?6v<~d%2KNeiHhbTa!`iL+%~hJF@b{D@w7I#kB=&e=-wje%lJNiwnSklVTg<21;#E|w zC)@<%MJ7&Nc5Qd>Or$`)rL;j1b;%c37DQq_WnU^U$oYRM0guHN_-6fbg+axz@pz zD=Q6h9ne6rRPY2?R#c``2&f2X9!L;T5s>rugYEv^zdwJ!zrXs2j|V>Z;QMf0*ZX=s zUvDj%n15+v{-1|{z})X&2_cXzkX_ri?#Xo+lbj*b_U5e_)4*?FvYz@qef)U4`@vuS zKJ)a?$J+;=-#jBb^Y*0s+k(G8dwVXl?1ZE9*KZ3pIDg@~y7TYNe?N6_+B$8~MITbp zvsJienU5~(Awi&Kj^1r*!U=HI)lKT_MmX#(!loG_!x9P{7A)Ol|DLtTysE8p8DoFx z#(9g@wnFAD`pd!L73}7?!y)^75(ddXi z|AJru{u}KJ=5KL`QXcGgP3gbm20WX7=)xh+!;=0y`Aa-paj!O{vE%NWZdYNK20;hkzMDxVjkh)otxmMntkjYV*(MRI4B)u=XRA?jSthJ_mkOxHH= zwlCa7tN(#j&J>Ne`VYEOtC(oydrQpXO3F`g8#v(Oqx=#Mn#(6u1gKX*#_O)A<7}4& z!-iL001uv6vJ***DF<4K&`KiY0mps`ye@HGf>*Oc~lz90SG`o(PV*b2&x5?iT3eJ{#;wr-HLSV zcYzvj-g1~&Y12b5n3j2*%xKmMZ&7;8Lw}rIbCo5p*(TLiicS z*Y})DumKTD{l@YW4hw{fKPbpBOMd@n9H)|lhYwo=ENme2C9h#7fER46$6e@ev`rQ9 zqtzOGv?MKixKx@somPU%l&+H@5XeZQMOK#4IC@u*Ld+INBJ_^zcVrt+;lZT?z3xTQ zLERH7yd|&$DP3^L^5UpQbH`!g2H*$0eyv4(lrQ*q(Nz*rhL1?LbdbZ*_~)9txcW@* z5G^~$JE!LWgofW{vnWxeM6*R5UXS1rCQvl1K(2bS8tYS!DpgL~GKQ8VB%A?HxbqyZ zj~0CD6|)=yC6w42n@XtLesrP~tEW*Htmn8gOD8`ZZr(~r!P%5ZfG|Cy^`+rb>9vE!?Mb1c+o7XbT6>M&7?n(6!cwji`eSyD+rqNn;?i<-qZE(CsXv88gDM(3YYW4SmJpKec7d?3KEiW=rohKQ?3k4ZVjaDsy^9r`1iK z<23MIBRXfZge*-+ z=q!M|dn!A>aNgO)b�RThfsvjqLTFDJVd08BFpE9&b_7Q;Jx2eg_wz;4aAeIJmuN zZ-t;%^;A(GiF>JN0F$>%d_kt03`OT!6m=XLxN@i2Gl>8b=PGMP8s1b2HTQFnO~z=9 zYTHYvRyxrb9fV{wwWLF3IZ|piOvSJqErYafVZ4tAH!vO!JJgU$5x_{gMb-o0-zZcu zU-#t$leZ8Zq-0nQ+OM#wupZS~PY6Aa zm(+}8^HA7f#aKxhLv^O8$A4x7ZB@>0bhGpo?YGH1oyQL@dojR=Lml#9)8Ub8cs~v_ z-*j4#5|Z`&2~}^R@>M!|V~}kch(^d_%O`eoCS^HwvHEj@@?=Qqd^}o>4ecKhw`$Y_e z)&lSjnOXnKY;~F4g$#!p$0*pZv4yzbr!MA%SQi(GF&ZGmJmSB`+Nk=mN-Cp!E2{SP zPKrZ>Vp~-Pi+I?VZtPRI~MmE#}LEY&PFRl%j6}#0tC; zUJ`7h^{5GtE^L` zpMfpy`|~X$*q&ayAT+(1>c74^lyz}(1TTRp{cOK#Ck_(`v0G@qRIXGD(0xKIMtR5v zftN2GbzI=J6A%sT+}YV|UD0P0^~$x@6RKAmAV?iuUQIj_Kdx(e!nkXU!D|fE>ce5B ztc5iZQM_Ay*>0&U#|G;$q&HiCp3bxGZ`6{Nn9sqcdedwbWl9S&woTfqgI}~>g2Yhp zqixU!&a1U#qp78os2Gq1cDbxvLzoQMiFysh4&1fAjKv=hg^AD_6;fdnms|Jrp0$oX z+(~weL0{_YGzFnpMC=2SL#8DQg?+w*YwnOH_t}vAC_iUl!jlJb3WUFNOo{JoUsU(&| z*-wMdL(m)2(Z10#y?_@N6n|`Fl&Ur*Ikn<$$#KJI{KfC%t7FmZJS=^r)~1L=q@^9t zq(EXyYDqGL-}RJ-4Z2DaYNm-2Oysgs@I$~YS?q$PS2uhHaW2UCVd=~ruL`+YAimWl zvq)5`_)YYeip$*OkbWW;Cd$+tW7#-94+y=4@%snF4EdBQ35H#!ELY>4Cc%=BBAMCH z+FJI$;w-TXEKpT_0Dko8#rf4AZbpXvIxD+A;}$?xLsAK|lC1dr#t#=}m+;45_R@-p zAA2p{=)g@o^IokDEiL|dnfnK#@vPn(poS}c__5cbfA!~nd-1(^TT#4w#gc`+@e$1% z(rSy3`>a?re+7Nzdb`eB`{%*p+?=6p58Csm1`f?9Rc-OW~YD2x}-asgiE%P0vkf6ia%7mUW4 z8hQRq?`pRQ%WusQenAE@#f6vqV!AgP8U&l_w5g)>N;{>v-e#v1Q9S=i{gCc(uh~s* z{N}ZZ=vNDAX!EcV{Wq#io%yYRYboBlkT06HWC#e(Tp@fm& z)Z`HSli^q!!8oN4hvr(+?z)hU_D=r=XPf*87SlS*Ie4=O5Vmj1xh5*&=q&1hi6kF_ zwQ%^E;hg(1r`Bt}`9G9=P8bM4{dRDAuc!2;zt!qnTONb9B`>u8}KsE^zE; z(;G-OHvlt)ycoL=@w(jRdbKQ9@~VTAvsD8)YfmJ8U$Z@i6b;u2$z`ur zgRP8-{npr52(N4U+5C`+?l#u&(#X?SN97=mQGBN@`!~Ru88pA8^L_zWQ7Hp<+RSGW zKyK2EyPC*lFP2?&On|Kj@z+GF^F)>7T6)_oc^TutQgn3~`O&3ZC}VUM;UwK#pSe^i z&h~NazbYycAHwbohyZbh9(zi6&Lm62o{F*MX$PSJcpoxO){LN-UQj~T;jae)FZ}o_ zZPp6i`C%0nIwE9!)zU#g2N9p=o%4b8!U}@Gm1v1%@zmaVJ`;Z9762qOmOExCl#${P zwK}DJ2zVGy$aRD^};dWLvy{$+TJg}R}7XY0g_4(Gi-;Qo5pj3O(Mf%7_ zQ^>>A}MTRKy9kH6^kv#M;RWha0W>yHKKB%(c*P^@m{#Y2#Z#vce9r%sd+n$r)Z) z6i32PR+-1?&>SP3;t2z;EpdFW{tyd;snA^!~wNW-bqY*?-1-=*l5qsG^IE8*VTD7QxM>Ac%K zD-|Bk`e7gp+KjuWv5t$XQ5}Qf$>jUm##Em1tci9g4wK=QCOliFuqkC5)s088fsAxw zWHS$TfkYJN#pO+&;+Am_L1-J}?ESrnU{(m0vnLI_Y7&0tw#?RXkWII=Xp2_8%}Gpw z(6IT+FjS01Dr$S8R35OIKT8W<#8;;Es5Gnvt)9U{Tlri+y!cof7Ij?_IA!wB$J~=~ zntZO}GloXYvux}>0O8fqK*Z6sBHd~&b1%zQ%HJp~QMe(8*dH8|B`Q_QpV9Qm_Jzt^oX-uK-nx=%v$X=9f zWskXK+b(ZK-UaQCt=iD|-E=a0+ZLzl#x^@?nLYsk`Tgr;e75Z!FJLO4DuNA9Vv_GW zH&M);I>haLADFC6;-q4%V?zb3%5yWQX7%`Gy7g@s+wkX9uNNH~88&*R<)z8?T1ZGW z)vE@d=NSE{@_VXZ2bE;g%juVJ+u*^@W|FLlUrusosN_{pghK`;^we!FpT4l5=^{X{ zVXLB?-qJXR+Jo#IOMXO``Vol#N;wv(GFHgRM8&be z98PW1BCI+^(#o*xpSq8vy>j(fkJ9NURdA$11)y$_ zO#PfVOBx1b?|uQeK8(+dd}pMXovb;?`Z1THS?!{f@g28FF!B1O0%Vs9wR7_)Uy=2C zw-`y9cw3Cb9XXI~F)20fhUQm9U51;3C{Q642X-X|zTD_@dbC6Pjlp)up{9Bel&}dM z>QOyQ{&fvUwUQSbUnCF#a68vz`YAOwJsn8b{;;(})97YBE8rMgSWEA8-l~>ep-ECs zvIFKh_Fwd+Hg+5}>sXauB;5*f)6c!>WVWs+Qlu435BPJAiuepo>OeW0K5ohDC7Z26 zb(NQ@X|g&L_Kk!MSPrtb(Ov6D_-fO_*vML6q*)S=nP=}4g|3Y zv_c^E1M{<$o>09OtXOVN_3Bt#_xSNX-KHgKxZ2Z=FQVRON@DgrOBtXG8^4A446Xm> z#()>uGHsls2EdJLY?_Al9%*XDqcM%uN-r`QjYJxNbaNLM+ofvYjrFda1KX?1+>o`&>PoMS%2-H6A3m)VR7()<3 zc4+($i;a$C+{l4p?|5&L?aU%rJs?VCYlo)dLD!2MnA5Ksr4=xxUm^6c{p{sL?t8H* z=dQQHr%^&|Jn#chDQBs&dv#jv#6%M%BvEJTZ7cD(Jt8epUCgmw7PPIYAHlhXo0gd@ z-6wi-I99=zJO}gTDmemJe8=gmKglp%MX4mC^gjs7k?R@_ebqXQLVB~26Sy0gyy-1e z@1V(F*5jGg4KpWtz_+cbN2H<`wEl)XeP;vB|D$RkR8rHSk`oVUJ4-mZShjXTU98py z)#9Ugg|twoVdwLu@U&gIVl%13hRX8!7Se@dR^95Xbf!8fpi(>pb@wYU_s-)IY)*Pj6n_urM?o7#UW1qcL6PIyHlv+dA_-6}a?GU`72 ztI57Jxi8N@yM#KKdRGvvdAdM@_r6Fk~XEPqezq)s$ZjFYMM6+ zD&`r6@N!gUlv^>Q%?K?15q6}@wV5?@SK`vJ4C01ccBQk1iNp|3 zT{Z}8d>Vfdrx)j2x?%TxZ)Ve9U-G?)yAbCcqU#LvRBLg$-J>2iWo&CZRbvG^Q?ep} zh_Us$tW!wqw0T0AtWQ;A=zI9-%MqXTGz|dOZDV7`cXDCZ1vI`fFH-)RyaCX>%C?j> ziE6wRWzg!SC$lZl`P*SV0gRuDUgThARI-z;{vb7G=b0 zE)Djc*F}K&XxQ`N;ekUMWWCXNX@VifU9o49M_f)Ihfc^gmHr5w&Pk+@_oLGAdp2AL zX<)H7j@eP@F9!0Uzn(8lY^pj)hnC*Cqn;PTDe)tA%c>TMnmxPJG4ZzgouR3=5wH*B zV3^u^0!_X{oqYfW*Xi1cW}E4A`x4FjMU8(&8nRp{VP}dg)WRQ?QRvD0$LJ-e3!Po? z0eiX+phc^`h6ph_9j?2t{gy-KNMlNU2?%qgK;Ru$xZ(Br=JC8B)qiH&w8GjWJMop2{czR?pR z9)@MiOTN%;j=yTkQ_X;}fb7LNv>Q1_Nk*aei#Kd0A^6$yQvPpOGnCzck_#5+aaQ$C zuU=$5tVefr4P;H;*>YTBjQ5qYYt$L-x3hf8c9ahG5zD+J@TZVPoGO@*q(P<2qAPvMu@)VcLdD4D~+&m-)y$T$_$*zz$0IF$?Vn7&p zMU}f>$fJ_f`wMT7sQW1>V0Sd@)GK3Nmptr|ctn51YP+P_ zd>9h^n&UDn6g)|je{H%eI9s|&f75E4ErDWT-B80yhZ@-RDDbRmQspZxf#Sq9kbOT$ zbu1+psAq=XV+I_6OXV3nyGat9b*HXmF{T$aCJM94IB3y9s(y8;xC9qNchw>@FzN!1 z3J(Uh-N&G6=z8bA{3inp4eZ?DmHD;WsNMdHOoqlVBDlA4z|rR`dGIuy96s=jiWE~X z`_Jp&>eu#W**L==Y?W9ZQQiuG;GGjhFc}y6nNP8d(i_$T9k|RMT{bN2QLO121}e_$ zYNKE%0q-Z-Z1>%Cb{k+Lr4cbao4U9Rbxsfwv^+R{(ShCUI`Z3lHozmXTa+(!{k zpdJ;KOCvKZ!Jr>9u?Myy8kkIc-gaDN8VOnR;UO(cMWW&cp2tBd{V!Bw1^AU2?7hz~ zkwIHXDHoOgA}V)$)hGU=4nB&Yh!+(sWGxCy&h2QH1qe_Vy7TucjaCskkqU&e&Ob9w z1`&|JnOi*-@}l&hbjg=|DWXc3CQdn!D^@-EO3Y?@>z@=M>kk01;NA;jbM7lh?%!ak zcPYT;y}$$=5o>;{2BR81Zn|Vci?Bhg4{n=<<<_6ujhb^}gQ)GTHhI1{5rqFpMm%NT znGE1mrF1F5?@m)y8?bYLzU(7NQCv!W$HY-Iem5PGQHZ;mZn+F-U&S}Su7(FNmStp% zm0)^zQhcmcp^`1}#B;+R&qQMF60 z75XRvHkE{k;oVO|(F>XkwI$}V8;%L_!t9FuT`10B9|>5gm}5d!x%E&w=;Xr0(l>H2L7a-an_aPP;Vx3GP5V(U z>+>8FsiUayV~8>*!4kEhvc1Jx>-r^x^h|bY4{JRsuoN84E+XIjFATE5Sa zW+iC5nUy=13aq~7DyZV=z_+}hH0{5-loT}C&k)e;1hfXyjTd@BU}`Cpe+K~t-=H9ZV?l1P{GoQosLnAN7Y>k=C>{`6fjuKVIz+Xn^p zPwm3+pfHL9Ri?quLApED+s$jfSzJ(mdJ0)+ByEUj(yuGgtQCSSwm9%ge%x}1(r{1v z0+8vxIN$qQlZY;54EKN)gGz|`1d&i1XFmMS*KA10NQL9Z4Mv~C8^RlV?|p3^UB0g`~4J& zo+7>bw=^bC+*X9|DRCz(Q#=7yVIy~0E*H0vP?9a8w%<*JBpp(hGG2$}g~L|Wa$%dl zw5_SL1b|Ap{a9>!BB)=ED4lj_O$=3IKHd<3UDiHkjQ&zLWrPw{}ayW7mO^vAt* zN$%ZO=UmG^ zCwAtP*z9f3ISo6f{^tbt9MqZRVRHg|PGHYb&N&1-2e0R_|C}cQx;}Gm&YTZ6XVT5t zn{&qSoNK*c=^QKh|6nD{zGPms6U#k_{EUme; zGGVS?9zsR)EFzjSYot^PsGK~LAfh55AaH~G{qE;}{(Sy^{D;?z^Y^+wr}yE4-)2_k z%&fc<4Z5#Vm&XCXG2ojMUk0REObLkOsSD|cXBPdw`5u4n*0#_?c_+?UZ^M=}VX-fM=plKcYw13ayWe*6x)3sF`L1bqmUrX-gJb~zPqtgG_yZ_a?oWE`HY4eR zUDhr{esIiufJef<5tq>h6-faclMogHo2>sw}H{qDDB z3|qw+@mjjrS4^M#eUhDn>&xy@f6dQqQTOHhpcjT4_KMQ>uxQ+H4zj*tZz^8)EQbJI z93|IG&k?jxc}ThDSq?spC9a!}Ibyh(dM+V4x?Z$u07CW;tpS=QG zl^T|hvrrE4^f2mMe&hK7UYajYC0u?R?Uy2;QU??lYyrU=xmcd57>O;kuy}LZNJ3R{ zhA%JPR{UCG)h0rM`uQGv#?T!Qlw)80(%U6e6;J-kgn|2ZgyY$+#WBM1!{Fu^+S<%6 z;bh?H@E1)WL#tugG_+06noJ|MPMi=P=6l)Qyli=_HVATc{Mata26}zi!!>u#9 z#tHY(!E|PI*Y^yaKyG(+GRr>WJhK;4_CUT1NUY0q3ZJd$9M}8>^8Dau^G^ZWdB#9k zM)y?W*QNzq%=|34Be+BOupF&$nf9@alue!#KWbWI`Yai$#91(hY7X55xRWU&3tZ>1 zJPQkdV2bc~>f4E%`2VWO1s1fdYYuIV?@JHBNrC{EoWDDFdYpwKEzE;y@^U@dq2&jLOv$w4Dh= zG#0>CX3UF>nk%oIklmiNHp^3-bf|t~!;yHuJjf~Nv!N3JuM~1X6Yg&izclogBU5+KWkR<9Pl!|>7K((vvu!qfE?bsV? zor(5)@7Jm;oJ7ENlL0v82$3H%ONF6azbaFd>K}$uM)_|JwzUQRvj{KqB77`|Hlb#@ zS-7Sz{uPkqp)Ce6Gh#0##=W4@(8-d1*LzB&eQ_P^a*YUPyIhj`TcF&$2=le>ds_ot zPduOGb7@+#$XlIey}kxrj{5D62@&f zu)lN*1%k22%yMx{olA9zP$e%Bh2dl)Ev{bTTi3f9s0}&Jd~xFHh#P!Qpx&)qxA59i zq#Y8rj76#8V+VGxZe!y^VT@j~?$#4Uqv&ICb%qDo8d$$?U(7M!%BcM2^{b9sFIrT+ zJ4NqiN*LG6#%#zfpxn(BKD8*NhV>1Pq!!})xp~ymLCVk4lMvYg_On_?iPfjFg{B-C zvhA(;`Uf{sanH|fY+Anu;ADkJntn>jr({#?@7C_f;H+gKam{FvJgq46YP_kNI)Lum z*H67{y9~sC96f!G9z4f{%(e|E48yjfuneZD9H#<6)@-Pnie!fpvC4Q_HCAzuRC}b- zaN0&$KPrY1M#>xZ`0BdWWuj53kMf~rjlL`>vM1n^2$_9367PH$nu@y8-W^qXKFDfT&*?Na)UZbrr^Te2GzP;% zfH6K~^yYwY%q-n@9XUzC;J-r&4h9lQ7BjyzEKtg(=@f6eh00U`?UOBtM+XX3ug?{8 zx9i_eKCuDYuBty@RCjWvaOsL6cUa1+y!;B)C~h?}{zqbSOtma0hv2t0GIEo7roCSZ zeE(h`5O_+Am-^fM05e1r8NY%(x@EuQ_Vk8)ap1QHtt?U<$Fm&pybU#fP~?n zwu9F^kElQ=;=A}0#aX?5Ajhh0-K!K4EhCJcjB%8p4!AnWQ!Gqqv;LoX*wJp9hw=7+ z^xKjff2?yxfx{^_p2i%qlB0b$KPnGP-mybCRz*djJJI~`MA`x<)Uujfp|LVGOx6~$ zHdb!ie-PkAxRrV9l{x7A$0Ub=jnWm7c>V9hN)U~LHdHxENS$anbM~4EvcBH>0U%hQ z4M#?vT6K7Brji6Izj}c#bw7Z_Q)%{mwaCsUhr<=GI2#@e)dYgHw1s(EgyvlUs=Ot` zDiF0joCrohj>xqsNz8~iGFN9^@67_z3`SD(LN&UHr?BHal$?`wBV1dn_9V!lndoa+ z$T%Nbs$4gu?M+87OsZRHD%Rh7jA3MJi}m}e;?0Ey$Bj1K`b%7SC~rgjM}TymN|@Sd zZ}G%%8YHJ`yd(Po@n00k^uOB?;Cx_X8C=0Z4*9c`p?F%p)`%&E-&6f+#J+47 zTXG6MZBQ8AHc*2emB#>Kt$cejPW3TZqfS@1GUuPkp5ZhqO~471%TwpBXL~FdO%a2Bj|7ibA``-iaa04lomk7$aAGH>FN6tW$kr?V z)09B)&JV!Xl__dBSLY*n5^y`4B5f| z0^p37i`DF`=#YJt_@`p~R%NiC;4*3uglOKY^DS0QtpE2EzPZnzrJ*#ODr4wq0v@d# z`GD<`F#m&NBGN%8XfNG}dl#}X~xMWT~eyT%bet z@9q=hC2yPzHezXTtv29ras8eVN5-C8dO|>;0?O*mzrCfu2{9XAr|f= z-kdj+VKZZYCfEg0%@*VnqOp<$BY}m;o~R!1!qoWDnyUHTtfnFYi|M2sx?V|bmDu-o zib+tsi8=WAHIGk>Pnfwm{=E;i0I6?0RiO{x0tEu9d1FZekV<{fgB$<6catFslz%Mv zg)F!aTM|-cqy0|jr#njvJZ0|{XogEPS+!25nG=sUGv**T4(FxT&2y>e(GrI zxn{@+sAfiZ>EsBwao{XL`SJxnR;c`KlR6{#6xm4Veqq|eZC1xDlDLR4v;JU*_!Vv( zzE@+TYtd}=dq_~zM0Jqf45E*gF51y`{>e5d1cmvxN+T_GQ z_qr3uX4%SQyRJm)w|-4Bn}}T^}UmM zoe0DmC%n|bzP%D+$CKQEps<6R>`ExcM<(Sbaj^zD--h#xpf5ZxgMMtVQtKNgEvcY# zUgioCqM8lO(&8q>w;T;PHSg{^eYKSMXRA?3^(AA~p2b|4VZVcs??Y&k#`Fy$!Pn>P zsVnik6cP-t(#szZG&N*j#==`08(pyS(p&7tAi?$dUO7Hh%f8x+AOADQsnM&%*H2dh z9+{d?*uaFBWK)L%+MG9^YSkWy%no8?v?`0Ks znFO}URg3EH5lF-BvdWzxW?WsO)l;Nb(X88Hg~nv# zWtyc5^dm{`<{b#Nfkz~1LyI?MH%kYhg6Yc(%{yo&CbbzzMPGOanHZRks&*DhjN4n> zhi;9Mn`T*9HVDs1w)_!6QXbD`BO*!oky+v+M0j=JzOdBBnW=-A`G4uhBYtDETz>B> zB8h{jE5l%Yw#vClmz4oSA*l_&G8vcO^%$j% z$r3+JxG-wwnDdLEk?Y+XMWjuK)r!0v3ednVI{t2MGT-u;;3WbKB6|j0Ju+#b z_87zEv&3KP_fCBZ5JnG@Lw4f@P$MpQlyDy@r24=_hX9CP4Z_0bh=>$ccV#w3fz>)D zCigGqiH%bJ{ zN@hRzhW;L)2049{DcI#fhhlfA{+C`UY39Cn$jnh!tf5`{66^WvX`}eVEMn2q8xjAb z^zjzNuEyWW3Bqf^^qD6cMcPGiafmnlRG7e}-#0>iivzueE{zN-QvRhAoO?=S`Qaw^ zpXTLbKlZ89nnK|d&wy- zkeW6R?&bKaL+WwPgDLz8;i_oY{HWfo9PgVl$g}1K3duEu^ zr8qz7s(Kk~my@(}oy`Bs#XVh+gKYXM>H?Lx`x*-O;c3C+5ZA~{;`G-Q#zYW1>pe|d z;7%+~s!6z+MtkUt$c9vpXGyxS_htgcKiK6lN~|)Q#m&?EpVCY10}GROeBEkN+d}zq zyyHQFO~_%4MkiJ5)X?4#R2Ulzu7^a(^XR)U$a0$|PO_Epb4F9CG-t;V*IjdCh=rrs zS#1Uqf_^?38W>@G4xWM~^|$V38J$J?o{_uP9*VP^E|WV=%$>gFNzda-(cxfP?;5<+ zL`_#$mU9xaN5$&m#I(Vb49T~#G`zMapAp1G^g5d)oCH5!59J0?+uE!aA2q62HKI`W zLG)-i5gXKuH_mloZy+5nb$5wIeQQdBVR{U?Au>=59<^^7RC66%xJAz+1X-MHl#_H= zWVZs2o<2&%<2B+w?=NM#Ja|2Bhgf)XWd~t+D)wER@H0O)&Dl)jIj|DQOjbc>I6mzlF#O;T&sV5}D z2bfaaSiNri(#KCoYOr1q%j4#EbcB-iwRIvcq_uoU-86mx0@f7lhG5FvxG5J0S^csu zyVrz80m>0(cP21JS=S9`6j8`l0 zco4Sc$#j+pbwV!heD=!qxLYr#lz60GN5bYWdh~gR@Cxhk_@iE4>S=}Az>bxk`~=;& z5FUd{7b<_!dGu|n=CMk1Y|AC-zlQ2V@irZHuO-NbFV3X#@q7=n z6+MHq%4+>17MP~D-YAKBhY4!^vJ52N9*m;di)wKe2+JX)Ye(_Ha`DZ2?;Gvd{V(TW zQ!0h(15Ka~Ar7~BTi3x?>~~*_;#DN)DlS_5F@17SvM3Q2c|0;Qh^@~tREBk^{Y+*6B@p0CA^2QZT)H7i@7d;V6(#Sq)K2OEj(ps#vELZRs;_AsDN=^& z;@2`!GZ4g*^Aqt2PSW(Zyh0AwhOU3+WCYmq@%%a9SM3SrCy-G46=bn zF0*QKz4UUx*A>SyWNd~V>Z%Q4DSt`i&zs5IY?P@ZJgKm+GUbCvh6&pHi44c8 zWuNzX>QODj?n2S@+E{fqM=PlyVm?|?aN7ro7eamv#p8-Xc)NxZGzVUr`e^!;8&J=r z@kBS8(5_D0eoLUvw`2_Y*Ax0uWRbJ_WhM=G^W`P8VZ z!a(cOa-N}eKiWvyMM7qRz;lR&mlqEYkH*l^$p$6zDusIFk*7$1Br!L#e)|`an^Ern zUgBOx;}}1mRI3uhWo;BBk8Di669J*@=H+eW5dJSBwvdubLfjeVBavGhAxiUSb3uQ7I zT-AL=!iW@sW>5Z8v_)0V=DNs9|aB`45PwA~#)ka6& z^odEETrGmLBeH|=XQXqWflH1unOwJD&drA6k>D?n2TH{`-G%kjcVp$0K%HCaLpxzT zZvQL3x_-3PWYpP9sl-#fWQvpepP*w*LHA2fBsM`s(xo2XikdUZniDDZSAQ3I^hI0> zCXkXnjo6?T!>vfqcw2zUDHEPpDt<)lmva$WwYG)(yrdd#^R=h?R#lu#pTO&(9^ zm0En9dhoSX8$HalNBzhfVR04WU-lYvW|rN>|&AVj3gd`(^&F z0j0RR5^0^uDLpD<|E`p<+2Y80#Xye9ML8WnY+kSYc63~HPnBY-5NXEX_c?#bpYO7$ z;`oC#^&6GfNKFlX^8@A@xx$kdX7E1+_A;EsCg}wKGQ#DHP-W^}spd_Bxg%oVo-QmF z9;U2FvFg$y$lL;WLr0=haQ~}u%wVBlm++11JHRXH2HHEfV!u7OXt+{PiSM297b9%W z?Pbu93tn>WUBsOQE1pcR9i+Ov_PG{Jd!!8ff=P|9KN?Z5DTy2e+m z0h3pw>2rzXZSd8%tb4=+eV-zggUG4>>D;2}qS$ttfdN@TbstMK;iqKyib(y&-AIp29u+ z%2VXg&8Ocg2(v3mE)bbPIw6(^MlUqd=%qv?FQsd)C%3Q-E{l7dBrk@;U601j?&@Qfpvb7XlzP+Y z2c$A)=!^69Z%*TWEGnjtplLvmxVpehM+5ySC2IqYgu?nlq)|0ZAp8PX6`Px*^kO)L z8I<17lLR{uNBGkx59mGw;%=kT{(eg=FCxJ6xUEhWRfVFv3*lxjaNFNFM+wgNh@_Gj z)}s$H@y)w+F>>F)|F!+k5EKAKW5N>(*PzT(SV zYEqy1Nqs}r{JxX}IR5p6bMoUnvI)*GLcVXPo8oq1U)Cf20~n|j);RAKtBe^Golo9Y zohwfbX_z(hsTGmx9nUsC9u5Ct|B_$!rpv6puFL$#ciZ z?R#dj#WvZ@+~xgT7t8$Tb@ThpZkSDFurfAKH2_;WRe3AkAIn3&cOXhp%TXy?3XB$=chr(W&WnP(l6D7qlI7G8=juAD$scUm(j4n%~;?GPl}d z^Ttz&J2}OB{yDVyrpxT3*(_h%^1dzS+j1=|_mJh@`|k<%|1uXG%rlGC?A7<5UnVTi zFVnnTo~_H6WEsmX<4jXSUB>6jyk?nmEpyfN%N&1Me^}OSmi4Y>EpA!ET-JVMtwFx1w6p!@xHueNR*#kG%HZR62Px From d2817f48a1146b469d544ee78015251551d358c3 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sun, 25 Feb 2018 21:40:17 -0800 Subject: [PATCH 093/267] Use sync fs.mkdir Summary: This ensures that errors are actually noticed in case it is not possible to create the directory. This will also throw an error when used with the upcoming Node.js 10.x because there is no callback. Refs: https://github.com/nodejs/node/pull/18668 [CLI][MINOR][local-cli/library/library.js] - Use sync fs.mkdir for error handling Closes https://github.com/facebook/react-native/pull/18084 Differential Revision: D7083122 Pulled By: shergin fbshipit-source-id: a13b64e57860e1ab2c15e0c008211dc0dca3b2d2 --- local-cli/library/library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/library/library.js b/local-cli/library/library.js index e8246ff7a106fd..14afd6a4059b7f 100644 --- a/local-cli/library/library.js +++ b/local-cli/library/library.js @@ -29,7 +29,7 @@ function library(argv, config, args) { const source = path.resolve('node_modules', 'react-native', 'Libraries', 'Sample'); if (!fs.existsSync(libraries)) { - fs.mkdir(libraries); + fs.mkdirSync(libraries); } if (fs.existsSync(libraryDest)) { From 59c7b2cfac534a79ff2461af5fd2034b280812a3 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin <157534+moox@users.noreply.github.com> Date: Sun, 25 Feb 2018 21:55:18 -0800 Subject: [PATCH 094/267] Add missing mock for AppState (removeEventListener) Summary: I am testing with Jest a component that use [AppState.removeEventListener](https://facebook.github.io/react-native/docs/appstate.html#removeeventlistener) and I am currently facing a fatal error saying that `AppState.removeEventListener` is `undefined`. Create a component that uses `AppState`, e.g. ```jsx import React, { Component } from 'react'; import { AppState } from 'react-native'; class TestComponent extends Component { componentDidMount() { AppState.addEventListener('change', this.stateChangeListener); } componentWillUnmount() { AppState.removeEventListener('change', this.stateChangeListener); } } ``` It should pass test using Jest (snapshots) It's the continuation of #11199. This PR finish the mock for the native module `AppState`. [ GENERAL ] [ BUGFIX ] [AppState] Add missing mock for Jest for `removeEventListener` method. Closes https://github.com/facebook/react-native/pull/17908 Differential Revision: D7083144 Pulled By: shergin fbshipit-source-id: eafa07f064f971c3d657f2ffc9c00766c0925bac --- jest/setup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest/setup.js b/jest/setup.js index 6285550434e491..680e391ba78bd2 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -113,6 +113,7 @@ const mockNativeModules = { }, AppState: { addEventListener: jest.fn(), + removeEventListener: jest.fn(), }, AsyncLocalStorage: { multiGet: jest.fn((keys, callback) => process.nextTick(() => callback(null, []))), From 16c9e5b71500135a631480035af6cd2de3dafdc9 Mon Sep 17 00:00:00 2001 From: siddhantsoni Date: Sun, 25 Feb 2018 22:00:52 -0800 Subject: [PATCH 095/267] Fix: Added scroll Bounds check in scrollToOffset method in RCTScrollView on iOS Summary: The scrollToOffset method of RCTScrollView for iOS does not include bound check for the scroll offset provided to the method. This can cause the whole view to scroll out of screen if the offset provided is greater than the bounds of the View. The same does not happen on Android, where the scroll halts once the last item of the scrollView is in the viewport. I have added bounds check so the offset resets to the MaxOffset which makes sure the view does not scroll out of the viewport. The issue can be observed in the following snack: https://snack.expo.io/H1363Uo8f ![ezgif com-optimize 1](https://user-images.githubusercontent.com/16662518/36068270-2437ae88-0ef7-11e8-96dd-819b4ae0fd67.gif) To test my changes I ran the code provided in the snack above with the react-native dependency pointing to my branch. As can be see in the video attached below, the scroll halts once it hits the end of the ScrollView even if the scroll offset provided is higher than the bounds of the ScrollView. It also does not scroll up for negative scroll offset. ![ezgif com-optimize](https://user-images.githubusercontent.com/16662518/36068130-9ae4f918-0ef3-11e8-8728-af7b2888bdb8.gif) [IOS] [BUGFIX] [ScrollView] - Added bounds check to prevent ScrollView from scrolling to an offset which is out of bounds of the ScrollView for iOS. Closes https://github.com/facebook/react-native/pull/17927 Differential Revision: D7014466 Pulled By: shergin fbshipit-source-id: a817738d08e1057a4c70f43373132f88fa1461c4 --- React/Views/ScrollView/RCTScrollView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/React/Views/ScrollView/RCTScrollView.m b/React/Views/ScrollView/RCTScrollView.m index f146ba0d2369a0..6a8f3353942625 100644 --- a/React/Views/ScrollView/RCTScrollView.m +++ b/React/Views/ScrollView/RCTScrollView.m @@ -575,6 +575,9 @@ - (void)scrollToOffset:(CGPoint)offset - (void)scrollToOffset:(CGPoint)offset animated:(BOOL)animated { if (!CGPointEqualToPoint(_scrollView.contentOffset, offset)) { + CGFloat maxOffsetX = _scrollView.contentSize.width - _scrollView.bounds.size.width + _scrollView.contentInset.right; + CGFloat maxOffsetY = _scrollView.contentSize.height - _scrollView.bounds.size.height + _scrollView.contentInset.bottom; + offset = CGPointMake(MAX(0, MIN(maxOffsetX, offset.x)), MAX(0, MIN(maxOffsetY, offset.y))); // Ensure at least one scroll event will fire _allowNextScrollNoMatterWhat = YES; [_scrollView setContentOffset:offset animated:animated]; From a817c6404338b7b15aaeac5693ae3635a0a3dde0 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sun, 25 Feb 2018 23:13:35 -0800 Subject: [PATCH 096/267] RN: Use `$ReadOnly` in CoreEventTypes Reviewed By: sahrens Differential Revision: D7082715 fbshipit-source-id: d2f7e280d02bbd8e7dcba2d38b719fa4f82ecb8b --- Libraries/Types/CoreEventTypes.js | 99 ++++++++++++++++--------------- 1 file changed, 52 insertions(+), 47 deletions(-) diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index d0839cf46f84ea..012deaf6bf082f 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -11,55 +11,60 @@ 'use strict'; -export type Layout = {| - +x: number, - +y: number, - +width: number, - +height: number, -|}; -export type LayoutEvent = SyntheticEvent<{| - +layout: Layout, +export type SyntheticEvent = $ReadOnly<{| + bubbles: ?boolean, + cancelable: ?boolean, + currentTarget: number, + defaultPrevented: ?boolean, + dispatchConfig: $ReadOnly<{| + registrationName: string, + |}>, + eventPhase: ?number, + isDefaultPrevented: () => boolean, + isPropagationStopped: () => boolean, + isTrusted: ?boolean, + nativeEvent: T, + persist: () => void, + target: ?number, + timeStamp: number, + type: ?string, |}>; -export type SyntheticEvent = {| - +bubbles: ?boolean, - +cancelable: ?boolean, - +currentTarget: number, - +defaultPrevented: ?boolean, - +dispatchConfig: {| - +registrationName: string, - |}, - +eventPhase: ?number, - +isDefaultPrevented: () => boolean, - +isPropagationStopped: () => boolean, - +isTrusted: ?boolean, - +nativeEvent: T, - +persist: () => void, - +target: ?number, - +timeStamp: number, - +type: ?string, -|}; +export type Layout = $ReadOnly<{| + x: number, + y: number, + width: number, + height: number, +|}>; + +export type LayoutEvent = SyntheticEvent< + $ReadOnly<{| + layout: Layout, + |}>, +>; export type PressEvent = SyntheticEvent; -export type ScrollEvent = SyntheticEvent<{| - +contentInset: {| - +bottom: number, - +left: number, - +right: number, - +top: number, - |}, - +contentOffset: {| - +y: number, - +x: number, - |}, - +contentSize: {| - +height: number, - +width: number, - |}, - +layoutMeasurement: {| - +height: number, - +width: number, - |}, - +zoomScale: number, -|}>; +export type ScrollEvent = SyntheticEvent< + $ReadOnly<{| + contentInset: $ReadOnly<{| + bottom: number, + left: number, + right: number, + top: number, + |}>, + contentOffset: $ReadOnly<{| + y: number, + x: number, + |}>, + contentSize: $ReadOnly<{| + height: number, + width: number, + |}>, + layoutMeasurement: $ReadOnly<{| + height: number, + width: number, + |}>, + zoomScale: number, + |}>, +>; From 80c18395e24760cd12b69592a10037f071255437 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sun, 25 Feb 2018 23:13:36 -0800 Subject: [PATCH 097/267] RN: Flow Type for `PressEvent` Reviewed By: sahrens Differential Revision: D7082716 fbshipit-source-id: 13e1730b0b2380ae6be63e2b36bb40b9a44a99f4 --- Libraries/Types/CoreEventTypes.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index 012deaf6bf082f..56d4eecf8c348b 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -43,7 +43,20 @@ export type LayoutEvent = SyntheticEvent< |}>, >; -export type PressEvent = SyntheticEvent; +export type PressEvent = SyntheticEvent< + $ReadOnly<{| + changedTouches: $ReadOnlyArray<$PropertyType>, + force: number, + identifier: number, + locationX: number, + locationY: number, + pageX: number, + pageY: number, + target: ?number, + timestamp: number, + touches: $ReadOnlyArray<$PropertyType>, + |}>, +>; export type ScrollEvent = SyntheticEvent< $ReadOnly<{| From dabe8e0d019e03611bc937a63a456d8ce9a2ebd0 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez Esun Date: Mon, 26 Feb 2018 03:21:11 -0800 Subject: [PATCH 098/267] Allow passing custom configs through the CLI ("js1 run") Reviewed By: jeanlauliac Differential Revision: D7081913 fbshipit-source-id: f5952599c840f2c65213bd2928b21f0c1d84f510 --- local-cli/bundle/buildBundle.js | 1 + local-cli/server/runServer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 36081a6052cb8a..10d1ecc6b78ba3 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -82,6 +82,7 @@ async function buildBundle( assetExts: defaultAssetExts.concat(assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), + cacheStores: config.cacheStores, cacheVersion: config.cacheVersion, dynamicDepsInPackages: config.dynamicDepsInPackages, enableBabelRCLookup: config.getEnableBabelRCLookup(), diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 8054190e1b85b7..371f43a39af560 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -168,6 +168,7 @@ function getPackagerServer(args, config, reporter) { assetExts: defaultAssetExts.concat(args.assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), + cacheStores: config.cacheStores, cacheVersion: '3', enableBabelRCLookup: config.getEnableBabelRCLookup(), extraNodeModules: config.extraNodeModules, From 62efff8ab8e05d27da24e50d1751660138a8ac76 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 26 Feb 2018 09:03:55 -0800 Subject: [PATCH 099/267] Implement cloning for all ReactShadowNodes Reviewed By: achen1 Differential Revision: D7063509 fbshipit-source-id: 90df8a3d2e6f2a4efa13f5eb0337b191b690bf8f --- .../react/uimanager/LayoutShadowNode.java | 23 ++++++++++++- .../views/modal/ModalHostShadowNode.java | 11 +++++++ .../progressbar/ProgressBarShadowNode.java | 22 +++++++++++-- .../views/slider/ReactSliderManager.java | 17 ++++++++++ .../views/switchview/ReactSwitchManager.java | 17 ++++++++++ .../views/text/ReactBaseTextShadowNode.java | 33 +++++++++++++++++++ .../views/text/ReactRawTextShadowNode.java | 14 ++++++++ .../text/ReactTextInlineImageShadowNode.java | 7 ++++ .../react/views/text/ReactTextShadowNode.java | 16 +++++++++ .../text/ReactVirtualTextShadowNode.java | 11 +++++++ ...coBasedReactTextInlineImageShadowNode.java | 16 +++++++++ .../textinput/ReactTextInputShadowNode.java | 18 ++++++++++ 12 files changed, 201 insertions(+), 4 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java index ea83f81abc5134..b941c21672a4ae 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java @@ -37,6 +37,13 @@ private static class MutableYogaValue { float value; YogaUnit unit; + private MutableYogaValue() { } + + private MutableYogaValue(MutableYogaValue mutableYogaValue) { + this.value = mutableYogaValue.value; + this.unit = mutableYogaValue.unit; + } + void setFromDynamic(Dynamic dynamic) { if (dynamic.isNull()) { unit = YogaUnit.UNDEFINED; @@ -59,7 +66,21 @@ void setFromDynamic(Dynamic dynamic) { } } - private final MutableYogaValue mTempYogaValue = new MutableYogaValue(); + private final MutableYogaValue mTempYogaValue; + + public LayoutShadowNode() { + mTempYogaValue = new MutableYogaValue(); + } + + protected LayoutShadowNode(LayoutShadowNode node) { + super(node); + mTempYogaValue = new MutableYogaValue(node.mTempYogaValue); + } + + @Override + public LayoutShadowNode mutableCopy() { + return new LayoutShadowNode(this); + } @ReactProp(name = ViewProps.WIDTH) public void setWidth(Dynamic width) { diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java index 98c5f0db69aaa9..5e429ac67bb2c6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java @@ -21,6 +21,17 @@ */ class ModalHostShadowNode extends LayoutShadowNode { + public ModalHostShadowNode() {} + + private ModalHostShadowNode(ModalHostShadowNode node) { + super(node); + } + + @Override + public ModalHostShadowNode mutableCopy() { + return new ModalHostShadowNode(this); + } + /** * We need to set the styleWidth and styleHeight of the one child (represented by the * within the in Modal.js. This needs to fill the entire window. diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java index 7975f67fbd9cd3..5e44b62135e278 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java @@ -33,14 +33,30 @@ public class ProgressBarShadowNode extends LayoutShadowNode implements YogaMeasu private String mStyle = ReactProgressBarViewManager.DEFAULT_STYLE; - private final SparseIntArray mHeight = new SparseIntArray(); - private final SparseIntArray mWidth = new SparseIntArray(); - private final Set mMeasured = new HashSet<>(); + private final SparseIntArray mHeight; + private final SparseIntArray mWidth; + private final Set mMeasured; public ProgressBarShadowNode() { + mHeight = new SparseIntArray(); + mWidth = new SparseIntArray(); + mMeasured = new HashSet<>(); setMeasureFunction(this); } + public ProgressBarShadowNode(ProgressBarShadowNode node) { + super(node); + mWidth = node.mWidth.clone(); + mHeight = node.mHeight.clone(); + mMeasured = new HashSet<>(node.mMeasured); + setMeasureFunction(this); + } + + @Override + public ProgressBarShadowNode mutableCopy() { + return new ProgressBarShadowNode(this); + } + public @Nullable String getStyle() { return mStyle; } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java index 3c5547606dd8a6..9ab464ad0e19d6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java @@ -48,9 +48,26 @@ static class ReactSliderShadowNode extends LayoutShadowNode implements private boolean mMeasured; private ReactSliderShadowNode() { + initMeasureFunction(); + } + + private ReactSliderShadowNode(ReactSliderShadowNode node) { + super(node); + mWidth = node.mWidth; + mHeight = node.mHeight; + mMeasured = node.mMeasured; + initMeasureFunction(); + } + + private void initMeasureFunction() { setMeasureFunction(this); } + @Override + public ReactSliderShadowNode mutableCopy() { + return new ReactSliderShadowNode(this); + } + @Override public long measure( YogaNode node, diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java index 1bec8c42841ce9..62a3ad3f41fac3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java @@ -40,9 +40,26 @@ static class ReactSwitchShadowNode extends LayoutShadowNode implements private boolean mMeasured; private ReactSwitchShadowNode() { + initMeasureFunction(); + } + + private ReactSwitchShadowNode(ReactSwitchShadowNode node) { + super(node); + mWidth = node.mWidth; + mHeight = node.mHeight; + mMeasured = node.mMeasured; + initMeasureFunction(); + } + + private void initMeasureFunction() { setMeasureFunction(this); } + @Override + public ReactSwitchShadowNode mutableCopy() { + return new ReactSwitchShadowNode(this); + } + @Override public long measure( YogaNode node, diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java index 0be8fa6265512e..9b73869b1b9b69 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java @@ -280,6 +280,39 @@ private static int parseNumericFontWeight(String fontWeightString) { protected boolean mContainsImages = false; protected float mHeightOfTallestInlineImage = Float.NaN; + public ReactBaseTextShadowNode() {} + + public ReactBaseTextShadowNode(ReactBaseTextShadowNode node) { + super(node); + mLineHeight = node.mLineHeight; + mIsColorSet = node.mIsColorSet; + mAllowFontScaling = node.mAllowFontScaling; + mColor = node.mColor; + mIsBackgroundColorSet = node.mIsBackgroundColorSet; + mBackgroundColor = node.mBackgroundColor; + + mNumberOfLines = node.mNumberOfLines; + mFontSize = node.mFontSize; + mFontSizeInput = node.mFontSizeInput; + mLineHeightInput = node.mLineHeightInput; + mTextAlign = node.mTextAlign; + mTextBreakStrategy = node.mTextBreakStrategy; + + mTextShadowOffsetDx = node.mTextShadowOffsetDx; + mTextShadowOffsetDy = node.mTextShadowOffsetDy; + mTextShadowRadius = node.mTextShadowRadius; + mTextShadowColor = node.mTextShadowColor; + + mIsUnderlineTextDecorationSet = node.mIsUnderlineTextDecorationSet; + mIsLineThroughTextDecorationSet = node.mIsLineThroughTextDecorationSet; + mIncludeFontPadding = node.mIncludeFontPadding; + mFontStyle = node.mFontStyle; + mFontWeight = node.mFontWeight; + mFontFamily = node.mFontFamily; + mContainsImages = node.mContainsImages; + mHeightOfTallestInlineImage = node.mHeightOfTallestInlineImage; + } + // Returns a line height which takes into account the requested line height // and the height of the inline images. public float getEffectiveLineHeight() { diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java index 6bc7cc93d0f4f3..a37fab61a27d22 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactRawTextShadowNode.java @@ -22,6 +22,18 @@ public class ReactRawTextShadowNode extends ReactShadowNodeImpl { private @Nullable String mText = null; + public ReactRawTextShadowNode() { } + + private ReactRawTextShadowNode(ReactRawTextShadowNode node) { + super(node); + this.mText = node.mText; + } + + @Override + public ReactShadowNodeImpl mutableCopy() { + return new ReactRawTextShadowNode(this); + } + @ReactProp(name = PROP_TEXT) public void setText(@Nullable String text) { mText = text; @@ -36,4 +48,6 @@ public void setText(@Nullable String text) { public boolean isVirtual() { return true; } + + } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java index 7f63093b3778bf..637767cb8d5311 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java @@ -20,4 +20,11 @@ public abstract class ReactTextInlineImageShadowNode extends LayoutShadowNode { * place of this node. */ public abstract TextInlineImageSpan buildInlineImageSpan(); + + public ReactTextInlineImageShadowNode() {} + + protected ReactTextInlineImageShadowNode(ReactTextInlineImageShadowNode node) { + super(node); + } + } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java index 35e1824894dd52..72e044ee8b047a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java @@ -17,6 +17,7 @@ import android.view.Gravity; import android.widget.TextView; import com.facebook.infer.annotation.Assertions; +import com.facebook.react.uimanager.LayoutShadowNode; import com.facebook.react.uimanager.Spacing; import com.facebook.react.uimanager.UIViewOperationQueue; import com.facebook.yoga.YogaConstants; @@ -137,11 +138,26 @@ public long measure( }; public ReactTextShadowNode() { + initMeasureFunction(); + } + + private ReactTextShadowNode(ReactTextShadowNode node) { + super(node); + this.mPreparedSpannableText = node.mPreparedSpannableText; + initMeasureFunction(); + } + + private void initMeasureFunction() { if (!isVirtual()) { setMeasureFunction(mTextMeasureFunction); } } + @Override + public LayoutShadowNode mutableCopy() { + return new ReactTextShadowNode(this); + } + // Return text alignment according to LTR or RTL style private int getTextAlign() { int textAlign = mTextAlign; diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.java index 734549aebb81cd..6506e9697abb4a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.java @@ -11,4 +11,15 @@ public class ReactVirtualTextShadowNode extends ReactBaseTextShadowNode { public boolean isVirtual() { return true; } + + public ReactVirtualTextShadowNode() { } + + private ReactVirtualTextShadowNode(ReactVirtualTextShadowNode node) { + super(node); + } + + @Override + public ReactVirtualTextShadowNode mutableCopy() { + return new ReactVirtualTextShadowNode(this); + } } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java index e069c8f5cab4cc..56298de90205f3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java @@ -7,6 +7,7 @@ package com.facebook.react.views.text.frescosupport; +import com.facebook.react.uimanager.LayoutShadowNode; import javax.annotation.Nullable; import java.util.Locale; @@ -48,6 +49,21 @@ public FrescoBasedReactTextInlineImageShadowNode( mCallerContext = callerContext; } + private FrescoBasedReactTextInlineImageShadowNode(FrescoBasedReactTextInlineImageShadowNode node) { + super(node); + mHeaders = node.mHeaders; // mHeaders is immutable + mWidth = node.mWidth; + mHeight = node.mHeight; + mDraweeControllerBuilder = node.mDraweeControllerBuilder; + mCallerContext = node.mCallerContext; + mUri = node.mUri; + } + + @Override + public FrescoBasedReactTextInlineImageShadowNode mutableCopy() { + return new FrescoBasedReactTextInlineImageShadowNode(this); + } + @ReactProp(name = "src") public void setSource(@Nullable ReadableArray sources) { final String source = diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java index cdc1d1196fb4f5..375c02a6285711 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java @@ -14,6 +14,7 @@ import com.facebook.infer.annotation.Assertions; import com.facebook.react.bridge.JSApplicationIllegalArgumentException; import com.facebook.react.common.annotations.VisibleForTesting; +import com.facebook.react.uimanager.LayoutShadowNode; import com.facebook.react.uimanager.Spacing; import com.facebook.react.uimanager.ThemedReactContext; import com.facebook.react.uimanager.UIViewOperationQueue; @@ -47,6 +48,23 @@ public ReactTextInputShadowNode() { setMeasureFunction(this); } + private ReactTextInputShadowNode(ReactTextInputShadowNode node) { + super(node); + mMostRecentEventCount = node.mMostRecentEventCount; + mText = node.mText; + mLocalData = node.mLocalData; + setMeasureFunction(this); + ThemedReactContext themedContext = getThemedContext(); + if (themedContext != null) { + setThemedContext(themedContext); + } + } + + @Override + public ReactTextInputShadowNode mutableCopy() { + return new ReactTextInputShadowNode(this); + } + @Override public void setThemedContext(ThemedReactContext themedContext) { super.setThemedContext(themedContext); From bd30336d868958453d70609ab902cfea4e7d4ea4 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Mon, 26 Feb 2018 09:56:21 -0800 Subject: [PATCH 100/267] Bump metro@0.28.0 Reviewed By: davidaurelio Differential Revision: D7085296 fbshipit-source-id: 76032af022d37a28976b33176f9a573e39861a39 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9b8c58cb290d45..7afce5a614ec5a 100644 --- a/package.json +++ b/package.json @@ -174,8 +174,8 @@ "graceful-fs": "^4.1.3", "inquirer": "^3.0.6", "lodash": "^4.17.5", - "metro": "^0.27.0", - "metro-core": "^0.27.0", + "metro": "^0.28.0", + "metro-core": "^0.28.0", "mime": "^1.3.4", "minimist": "^1.2.0", "mkdirp": "^0.5.1", From 3eee96ab864d843ff6ff3f0437231425ed46cff7 Mon Sep 17 00:00:00 2001 From: Ken Woo Date: Mon, 26 Feb 2018 11:35:51 -0800 Subject: [PATCH 101/267] Change React Native application layout check Reviewed By: shergin Differential Revision: D7076910 fbshipit-source-id: dc6df2dee886bbdf139d6e50192d621efad6d57e --- React/Modules/RCTI18nUtil.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/React/Modules/RCTI18nUtil.m b/React/Modules/RCTI18nUtil.m index 183b4c4987d7c3..804154e2af8251 100644 --- a/React/Modules/RCTI18nUtil.m +++ b/React/Modules/RCTI18nUtil.m @@ -5,10 +5,10 @@ * LICENSE file in the root directory of this source tree. */ -#import - #import "RCTI18nUtil.h" +#import + @implementation RCTI18nUtil + (instancetype)sharedInstance @@ -98,9 +98,8 @@ - (BOOL)isDevicePreferredLanguageRTL // Check if the current application language is RTL - (BOOL)isApplicationPreferredLanguageRTL { - NSString *preferredAppLanguage = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0]; - NSLocaleLanguageDirection direction = [NSLocale characterDirectionForLanguage:preferredAppLanguage]; - return direction == NSLocaleLanguageDirectionRightToLeft; + NSWritingDirection direction = [NSParagraphStyle defaultWritingDirectionForLanguage:nil]; + return direction == NSWritingDirectionRightToLeft; } @end From ebbd4371c9853fd63b365fc56147b2e293a793e4 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Mon, 26 Feb 2018 12:22:30 -0800 Subject: [PATCH 102/267] Mark ObjC methods that are called from React Native as dynamic. Reviewed By: mmmulani Differential Revision: D7087100 fbshipit-source-id: 18e5726e5b48e7b71fcaab19f6fe73be0cad6233 --- React/Base/RCTBridgeModule.h | 2 +- React/Base/RCTConvert.h | 8 ++++---- React/Base/RCTDefines.h | 11 +++++++++++ React/Views/RCTViewManager.h | 12 ++++++------ 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/React/Base/RCTBridgeModule.h b/React/Base/RCTBridgeModule.h index 2f8887a58de644..f138868eb3062b 100644 --- a/React/Base/RCTBridgeModule.h +++ b/React/Base/RCTBridgeModule.h @@ -185,7 +185,7 @@ RCT_EXTERN void RCTRegisterModule(Class); \ */ #define RCT_REMAP_METHOD(js_name, method) \ _RCT_EXTERN_REMAP_METHOD(js_name, method, NO) \ - - (void)method; + - (void)method RCT_DYNAMIC; /** * Similar to RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD but lets you set diff --git a/React/Base/RCTConvert.h b/React/Base/RCTConvert.h index a92927a68d013c..5780c5f5f676a8 100644 --- a/React/Base/RCTConvert.h +++ b/React/Base/RCTConvert.h @@ -177,7 +177,7 @@ RCT_CUSTOM_CONVERTER(type, name, [json getter]) * This macro is used for creating converter functions with arbitrary logic. */ #define RCT_CUSTOM_CONVERTER(type, name, code) \ -+ (type)name:(id)json \ ++ (type)name:(id)json RCT_DYNAMIC \ { \ if (!RCT_DEBUG) { \ return code; \ @@ -216,7 +216,7 @@ RCT_CUSTOM_CONVERTER(type, type, [RCT_DEBUG ? [self NSNumber:json] : json getter * This macro is used for creating converters for enum types. */ #define RCT_ENUM_CONVERTER(type, values, default, getter) \ -+ (type)type:(id)json \ ++ (type)type:(id)json RCT_DYNAMIC \ { \ static NSDictionary *mapping; \ static dispatch_once_t onceToken; \ @@ -231,7 +231,7 @@ RCT_CUSTOM_CONVERTER(type, type, [RCT_DEBUG ? [self NSNumber:json] : json getter * multiple enum values combined with | operator */ #define RCT_MULTI_ENUM_CONVERTER(type, values, default, getter) \ -+ (type)type:(id)json \ ++ (type)type:(id)json RCT_DYNAMIC \ { \ static NSDictionary *mapping; \ static dispatch_once_t onceToken; \ @@ -246,7 +246,7 @@ RCT_CUSTOM_CONVERTER(type, type, [RCT_DEBUG ? [self NSNumber:json] : json getter * for typed arrays. */ #define RCT_ARRAY_CONVERTER_NAMED(type, name) \ -+ (NSArray *)name##Array:(id)json \ ++ (NSArray *)name##Array:(id)json RCT_DYNAMIC \ { \ return RCTConvertArrayValue(@selector(name:), json); \ } diff --git a/React/Base/RCTDefines.h b/React/Base/RCTDefines.h index 6956ec4df761b7..881af139d85c92 100644 --- a/React/Base/RCTDefines.h +++ b/React/Base/RCTDefines.h @@ -104,6 +104,17 @@ #define RCT_CONCAT2(A, B) A ## B #define RCT_CONCAT(A, B) RCT_CONCAT2(A, B) +/** + * This attribute is used for static analysis. + */ +#if !defined RCT_DYNAMIC +#if __has_attribute(objc_dynamic) +#define RCT_DYNAMIC __attribute__((objc_dynamic)) +#else +#define RCT_DYNAMIC +#endif +#endif + /** * Throw an assertion for unimplemented methods. */ diff --git a/React/Views/RCTViewManager.h b/React/Views/RCTViewManager.h index 7be342a8e25b62..2edadcc775e117 100644 --- a/React/Views/RCTViewManager.h +++ b/React/Views/RCTViewManager.h @@ -65,13 +65,13 @@ typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary *)propConfig_##name { return @[@#type]; } ++ (NSArray *)propConfig_##name RCT_DYNAMIC { return @[@#type]; } /** * This macro maps a named property to an arbitrary key path in the view. */ #define RCT_REMAP_VIEW_PROPERTY(name, keyPath, type) \ -+ (NSArray *)propConfig_##name { return @[@#type, @#keyPath]; } ++ (NSArray *)propConfig_##name RCT_DYNAMIC { return @[@#type, @#keyPath]; } /** * This macro can be used when you need to provide custom logic for setting @@ -80,19 +80,19 @@ typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary *)propConfigShadow_##name { return @[@#type]; } ++ (NSArray *)propConfigShadow_##name RCT_DYNAMIC { return @[@#type]; } /** * This macro maps a named property to an arbitrary key path in the shadow view. */ #define RCT_REMAP_SHADOW_PROPERTY(name, keyPath, type) \ -+ (NSArray *)propConfigShadow_##name { return @[@#type, @#keyPath]; } ++ (NSArray *)propConfigShadow_##name RCT_DYNAMIC { return @[@#type, @#keyPath]; } /** * This macro can be used when you need to provide custom logic for setting @@ -101,6 +101,6 @@ RCT_REMAP_VIEW_PROPERTY(name, __custom__, type) \ */ #define RCT_CUSTOM_SHADOW_PROPERTY(name, type, viewClass) \ RCT_REMAP_SHADOW_PROPERTY(name, __custom__, type) \ -- (void)set_##name:(id)json forShadowView:(viewClass *)view +- (void)set_##name:(id)json forShadowView:(viewClass *)view RCT_DYNAMIC @end From 3756d41de1feb167482f01b26f9a5f2563ef8bff Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Mon, 26 Feb 2018 13:41:48 -0800 Subject: [PATCH 103/267] Add testOnly_pressed to TouchableHighlight Reviewed By: yungsters Differential Revision: D7043098 fbshipit-source-id: 1df06df6820d81b37dc9a167a7931ed20df44f0f --- .../Touchable/TouchableHighlight.js | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index 823bd63edaf65f..6493a5147b67b4 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -176,6 +176,10 @@ const TouchableHighlight = createReactClass({ * @platform ios */ tvParallaxProperties: PropTypes.object, + /** + * Handy for snapshot tests. + */ + testOnly_pressed: PropTypes.bool, }, mixins: [NativeMethodsMixin, Touchable.Mixin], @@ -184,11 +188,23 @@ const TouchableHighlight = createReactClass({ getInitialState: function() { this._isMounted = false; - return { - ...this.touchableGetInitialState(), - extraChildStyle: null, - extraUnderlayStyle: null, - }; + if (this.props.testOnly_pressed) { + return { + ...this.touchableGetInitialState(), + extraChildStyle: { + opacity: this.props.activeOpacity, + }, + extraUnderlayStyle: { + backgroundColor: this.props.underlayColor, + }, + }; + } else { + return { + ...this.touchableGetInitialState(), + extraChildStyle: null, + extraUnderlayStyle: null, + }; + } }, componentDidMount: function() { @@ -280,6 +296,9 @@ const TouchableHighlight = createReactClass({ _hideUnderlay: function() { clearTimeout(this._hideTimeout); this._hideTimeout = null; + if (this.props.testOnly_pressed) { + return; + } if (this._hasPressHandler()) { this.setState({ extraChildStyle: null, From 84ad5d3d3c797f7003f97a3c1e267e7b6056d34e Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 26 Feb 2018 19:42:07 -0800 Subject: [PATCH 104/267] Explicitly handle null props in bindings Reviewed By: fkgozali, mdvacca Differential Revision: D7080813 fbshipit-source-id: 7c9706df719a39e11a3d99c2de38af992b62dabf --- ReactCommon/jschelpers/JSCWrapper.h | 1 + ReactCommon/jschelpers/JavaScriptCore.h | 1 + ReactCommon/jschelpers/systemJSCWrapper.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/ReactCommon/jschelpers/JSCWrapper.h b/ReactCommon/jschelpers/JSCWrapper.h index 19cc720f96b317..cc2bc1ee107b4e 100644 --- a/ReactCommon/jschelpers/JSCWrapper.h +++ b/ReactCommon/jschelpers/JSCWrapper.h @@ -139,6 +139,7 @@ struct JSCWrapper { JSC_WRAPPER_METHOD(JSValueToObject); JSC_WRAPPER_METHOD(JSValueToStringCopy); JSC_WRAPPER_METHOD(JSValueUnprotect); + JSC_WRAPPER_METHOD(JSValueIsNull); // Sampling profiler JSC_WRAPPER_METHOD(JSSamplingProfilerEnabled); diff --git a/ReactCommon/jschelpers/JavaScriptCore.h b/ReactCommon/jschelpers/JavaScriptCore.h index 056da7167fb875..ff3dfd3b5dd072 100644 --- a/ReactCommon/jschelpers/JavaScriptCore.h +++ b/ReactCommon/jschelpers/JavaScriptCore.h @@ -122,6 +122,7 @@ jsc_poison(JSStringCopyCFString JSStringCreateWithCharacters JSStringCreateWithC #define JSC_JSValueToObject(...) __jsc_wrapper(JSValueToObject, __VA_ARGS__) #define JSC_JSValueToStringCopy(...) __jsc_wrapper(JSValueToStringCopy, __VA_ARGS__) #define JSC_JSValueUnprotect(...) __jsc_wrapper(JSValueUnprotect, __VA_ARGS__) +#define JSC_JSValueIsNull(...) __jsc_wrapper(JSValueIsNull, __VA_ARGS__) jsc_poison(JSValueCreateJSONString JSValueGetType JSValueGetTypedArrayType JSValueIsArray JSValueIsBoolean JSValueIsDate JSValueIsEqual JSValueIsInstanceOfConstructor diff --git a/ReactCommon/jschelpers/systemJSCWrapper.cpp b/ReactCommon/jschelpers/systemJSCWrapper.cpp index b2720923301309..45e0597efe8173 100644 --- a/ReactCommon/jschelpers/systemJSCWrapper.cpp +++ b/ReactCommon/jschelpers/systemJSCWrapper.cpp @@ -119,6 +119,7 @@ const JSCWrapper* systemJSCWrapper() { .JSValueToObject = JSValueToObject, .JSValueToStringCopy = JSValueToStringCopy, .JSValueUnprotect = JSValueUnprotect, + .JSValueIsNull = JSValueIsNull, .JSSamplingProfilerEnabled = JSSamplingProfilerEnabled, .JSPokeSamplingProfiler = From 07334cb47b96df2f50eea4af4b709ff34e6d1834 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 26 Feb 2018 19:51:02 -0800 Subject: [PATCH 105/267] Clean up unused modules Reviewed By: fkgozali Differential Revision: D7092777 fbshipit-source-id: 619a78911f2857f1183597143aec86957f277f9e --- .../Renderer/shims/ReactGlobalSharedState.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Libraries/Renderer/shims/ReactGlobalSharedState.js diff --git a/Libraries/Renderer/shims/ReactGlobalSharedState.js b/Libraries/Renderer/shims/ReactGlobalSharedState.js deleted file mode 100644 index 089449a9491972..00000000000000 --- a/Libraries/Renderer/shims/ReactGlobalSharedState.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @providesModule ReactGlobalSharedState - */ - -'use strict'; - -const { - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactNative'); - -module.exports = - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactGlobalSharedState; From da84eba318ae69fea28f40418178bdeb35c4a99b Mon Sep 17 00:00:00 2001 From: Jamie Curtis Date: Tue, 27 Feb 2018 04:16:01 -0800 Subject: [PATCH 106/267] Catch exception and report it when making a network request with invalid URL on Android Summary: Currently if you invoke `fetch()` with an invalid URL ("aaa" for example) you cannot catch the error in javascript since it's not reported. Instead the entire app crashes. Fixes #7436 and #18087 Hopefully. Fix using fetch on Android with user generated input. Added relevant unit test `./scripts/run-android-local-unit-tests.sh` all pass [ANDROID] [BUGFIX] [fetch] - Allow "unexpected url" exception to be caught on Android when using fetch Closes https://github.com/facebook/react-native/pull/18103 Differential Revision: D7097110 Pulled By: hramos fbshipit-source-id: 69144e8a0f7404d9bcc7c71a94650de36a48c84a --- .../modules/network/NetworkingModule.java | 8 +++++- .../modules/network/NetworkingModuleTest.java | 28 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java index 2635157116643c..cc9c6349053047 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java @@ -264,7 +264,13 @@ public void sendRequest( return; } - Request.Builder requestBuilder = new Request.Builder().url(url); + Request.Builder requestBuilder; + try { + requestBuilder = new Request.Builder().url(url); + } catch (Exception e) { + ResponseUtil.onRequestError(eventEmitter, requestId, e.getMessage(), null); + return; + } if (requestId != 0) { requestBuilder.tag(requestId); diff --git a/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java b/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java index 29e3e6a27d9757..456a108f346922 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java @@ -168,6 +168,34 @@ public void testFailPostWithoutContentType() throws Exception { verifyErrorEmit(emitter, 0); } + @Test + public void testFailInvalidUrl() throws Exception { + RCTDeviceEventEmitter emitter = mock(RCTDeviceEventEmitter.class); + ReactApplicationContext context = mock(ReactApplicationContext.class); + when(context.getJSModule(any(Class.class))).thenReturn(emitter); + + OkHttpClient httpClient = mock(OkHttpClient.class); + OkHttpClient.Builder clientBuilder = mock(OkHttpClient.Builder.class); + when(clientBuilder.build()).thenReturn(httpClient); + when(httpClient.newBuilder()).thenReturn(clientBuilder); + NetworkingModule networkingModule = new NetworkingModule(context, "", httpClient); + + mockEvents(); + + networkingModule.sendRequest( + "GET", + "aaa", + /* requestId */ 0, + /* headers */ JavaOnlyArray.of(), + /* body */ null, + /* responseType */ "text", + /* useIncrementalUpdates*/ true, + /* timeout */ 0, + /* withCredentials */ false); + + verifyErrorEmit(emitter, 0); + } + private static void verifyErrorEmit(RCTDeviceEventEmitter emitter, int requestId) { ArgumentCaptor captor = ArgumentCaptor.forClass(WritableArray.class); verify(emitter).emit(eq("didCompleteNetworkResponse"), captor.capture()); From 52acbbdd62fb8c329f323793f98d009420458f7c Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 27 Feb 2018 08:10:25 -0800 Subject: [PATCH 107/267] iOS: adjusted JSI binding for C++ FabricUIManager Reviewed By: sebmarkbage, shergin Differential Revision: D7078631 fbshipit-source-id: 6df21e52d3941372a9845fdcf2aed777de7cb359 --- ReactCommon/fabric/FabricUIManager.cpp | 4 +--- ReactCommon/fabric/FabricUIManager.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ReactCommon/fabric/FabricUIManager.cpp b/ReactCommon/fabric/FabricUIManager.cpp index c58fd859f141af..1a383519a83924 100644 --- a/ReactCommon/fabric/FabricUIManager.cpp +++ b/ReactCommon/fabric/FabricUIManager.cpp @@ -38,9 +38,7 @@ ShadowNodeSetRef FabricUIManager::createChildSet(int rootTag) { void FabricUIManager::appendChildToSet(const ShadowNodeSetRef &childSet, const ShadowNodeRef &childNode) { } -void FabricUIManager::completeRoot(int rootTag) { +void FabricUIManager::completeRoot(int rootTag, const ShadowNodeSetRef &childSet) { } }} - - diff --git a/ReactCommon/fabric/FabricUIManager.h b/ReactCommon/fabric/FabricUIManager.h index 118a713962a37a..7362c54dfa30cf 100644 --- a/ReactCommon/fabric/FabricUIManager.h +++ b/ReactCommon/fabric/FabricUIManager.h @@ -27,7 +27,7 @@ class FabricUIManager { void appendChild(const ShadowNodeRef &parentNode, const ShadowNodeRef &childNode); ShadowNodeSetRef createChildSet(int rootTag); void appendChildToSet(const ShadowNodeSetRef &childSet, const ShadowNodeRef &childNode); - void completeRoot(int rootTag); + void completeRoot(int rootTag, const ShadowNodeSetRef &childSet); }; }} From 28c694f25ad3a8934afacbd4e23fa511bab44c09 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 27 Feb 2018 08:10:30 -0800 Subject: [PATCH 108/267] iOS - expose C++ FabricUIManager to the bridge via a wrapper class Reviewed By: shergin Differential Revision: D7093253 fbshipit-source-id: 7317144ad2cb5b8903227c779798e1576f8de2c2 --- React/Fabric/RCTFabricUIManager.h | 48 ------------- React/Fabric/RCTFabricUIManager.mm | 86 ----------------------- React/Fabric/RCTFabricUIManagerWrapper.h | 45 ++++++++++++ React/Fabric/RCTFabricUIManagerWrapper.mm | 49 +++++++++++++ 4 files changed, 94 insertions(+), 134 deletions(-) delete mode 100644 React/Fabric/RCTFabricUIManager.h delete mode 100644 React/Fabric/RCTFabricUIManager.mm create mode 100644 React/Fabric/RCTFabricUIManagerWrapper.h create mode 100644 React/Fabric/RCTFabricUIManagerWrapper.mm diff --git a/React/Fabric/RCTFabricUIManager.h b/React/Fabric/RCTFabricUIManager.h deleted file mode 100644 index 371ac19ba6984c..00000000000000 --- a/React/Fabric/RCTFabricUIManager.h +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import - -#import -#import -#import - -@class RCTShadowView; - -/** - * The RCTFabricUIManager is the module responsible for updating the view hierarchy. - */ -@interface RCTFabricUIManager : NSObject - -- (RCTShadowView *)createNode:(nonnull NSNumber *)reactTag - viewName:(NSString *)viewName - rootTag:(nonnull NSNumber *)rootTag - props:(NSDictionary *)props - instanceHandle:(void *)instanceHandle; - -- (RCTShadowView *)cloneNode:(RCTShadowView *)node; -- (RCTShadowView *)cloneNodeWithNewChildren:(RCTShadowView *)node; -- (RCTShadowView *)cloneNodeWithNewProps:(RCTShadowView *)node - newProps:(NSDictionary *)props; -- (RCTShadowView *)cloneNodeWithNewChildrenAndProps:(RCTShadowView *)node - newProps:(NSDictionary *)props; -- (void)appendChild:(RCTShadowView *)parentNode - childNode:(RCTShadowView *)childNode; - -- (NSMutableArray *)createChildSet:(nonnull NSNumber *)rootTag; -- (void)appendChildToSet:(NSMutableArray *)childSet - childNode:(RCTShadowView *)childNode; -- (void)completeRoot:(nonnull NSNumber *)rootTag - childSet:(NSArray *)childSet; - -@end - -@interface RCTBridge (RCTFabricUIManager) - -@property (nonatomic, readonly) RCTFabricUIManager *fabricUIManager; - -@end diff --git a/React/Fabric/RCTFabricUIManager.mm b/React/Fabric/RCTFabricUIManager.mm deleted file mode 100644 index 71d2198b8eb657..00000000000000 --- a/React/Fabric/RCTFabricUIManager.mm +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import "RCTFabricUIManager.h" - -// This file contains experimental placeholders, nothing is finalized. -@implementation RCTFabricUIManager - -- (void)dealloc -{ -} - -- (void)invalidate -{ -} - -- (RCTShadowView *)createNode:(nonnull NSNumber *)reactTag - viewName:(NSString *)viewName - rootTag:(nonnull NSNumber *)rootTag - props:(NSDictionary *)props - instanceHandle:(void *)instanceHandle -{ - return nil; -} - -- (RCTShadowView *)cloneNode:(RCTShadowView *)node -{ - return nil; -} -- (RCTShadowView *)cloneNodeWithNewChildren:(RCTShadowView *)node -{ - return nil; -} - -- (RCTShadowView *)cloneNodeWithNewProps:(RCTShadowView *)node - newProps:(NSDictionary *)props -{ - return nil; -} -- (RCTShadowView *)cloneNodeWithNewChildrenAndProps:(RCTShadowView *)node - newProps:(NSDictionary *)props -{ - return nil; -} -- (void)appendChild:(RCTShadowView *)parentNode - childNode:(RCTShadowView *)childNode -{ - -} - -- (NSMutableArray *)createChildSet:(nonnull NSNumber *)rootTag -{ - return [NSMutableArray array]; -} - -- (void)appendChildToSet:(NSMutableArray *)childSet - childNode:(RCTShadowView *)childNode -{ - if (!childNode) { - // TODO: until this class is fully implemented, we may get nil from JS. - return; - } - - [childSet addObject:childNode]; -} - -- (void)completeRoot:(nonnull NSNumber *)rootTag - childSet:(NSArray *)childSet -{ - -} - -@end - -@implementation RCTBridge (RCTFabricUIManager) - -- (RCTFabricUIManager *)fabricUIManager -{ - return [self jsBoundExtraModuleForClass:[RCTFabricUIManager class]]; -} - -@end diff --git a/React/Fabric/RCTFabricUIManagerWrapper.h b/React/Fabric/RCTFabricUIManagerWrapper.h new file mode 100644 index 00000000000000..1db660fcf380a4 --- /dev/null +++ b/React/Fabric/RCTFabricUIManagerWrapper.h @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#import +#import +#import + +namespace facebook { +namespace react { + +class FabricUIManager; + +} +} + +using namespace facebook::react; + +/** + * An ObjC++ wrapper around the C++ FabricUIManager instance, so that the RCTCxxBridge can access it as needed. + */ +@interface RCTFabricUIManagerWrapper : NSObject + +- (instancetype)initWithManager:(std::shared_ptr)manager; +- (std::shared_ptr)manager; + +@end + +@interface RCTBridge (RCTFabricUIManagerWrapper) + +/** + * To access via the bridge: + * + * std::shared_ptr fabricUIManager = [_bridge fabricUIManager]; + */ +- (std::shared_ptr)fabricUIManager; + +@end diff --git a/React/Fabric/RCTFabricUIManagerWrapper.mm b/React/Fabric/RCTFabricUIManagerWrapper.mm new file mode 100644 index 00000000000000..e1fc129d8a7bac --- /dev/null +++ b/React/Fabric/RCTFabricUIManagerWrapper.mm @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTFabricUIManagerWrapper.h" + +#include + +// This file contains experimental placeholders, nothing is finalized. +@implementation RCTFabricUIManagerWrapper +{ + std::shared_ptr _manager; +} + +- (instancetype)initWithManager:(std::shared_ptr)manager +{ + self = [super init]; + if (self) { + _manager = manager; + } + return self; +} + +- (std::shared_ptr)manager +{ + return _manager; +} + +- (void)invalidate +{ +} + +@end + +@implementation RCTBridge (RCTFabricUIManagerWrapper) + +- (std::shared_ptr)fabricUIManager +{ + RCTFabricUIManagerWrapper *wrapper = [self jsBoundExtraModuleForClass:[RCTFabricUIManagerWrapper class]]; + if (wrapper) { + return [wrapper manager]; + } + return nullptr; +} + +@end From a759a44358711180b37cf4ad25f28af47e3de298 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Tue, 27 Feb 2018 08:28:13 -0800 Subject: [PATCH 109/267] npmignore: ignore tests and fixtures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This try to address #17672 and https://github.com/facebook/metro/issues/139. We should probably not include these folders in the released version of React Native, as they are used only for testing—am I incorrect? cc MoOx, t4deu. I ran: ``` npm pack tar -t -f react-native-1000.0.0.tgz | less ``` Then verified that `__fixture__` was not part of the package. https://github.com/facebook/react-native/pull/17672 [GENERAL] [BUGFIX] [.npmignore] - Do not publish test-specific files Closes https://github.com/facebook/react-native/pull/18019 Differential Revision: D7098211 Pulled By: jeanlauliac fbshipit-source-id: 0748ad8c064450bd2a9f4d6f49675a7f74fb300f --- Libraries/.npmignore | 1 + local-cli/.npmignore | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 Libraries/.npmignore create mode 100644 local-cli/.npmignore diff --git a/Libraries/.npmignore b/Libraries/.npmignore new file mode 100644 index 00000000000000..c912533dd7d2dd --- /dev/null +++ b/Libraries/.npmignore @@ -0,0 +1 @@ +__tests__ diff --git a/local-cli/.npmignore b/local-cli/.npmignore new file mode 100644 index 00000000000000..e40506d719b298 --- /dev/null +++ b/local-cli/.npmignore @@ -0,0 +1,2 @@ +__fixtures__ +__tests__ From b60a727adbcfa785e3d1b13bf069b766216e60f8 Mon Sep 17 00:00:00 2001 From: Josh Hargreaves Date: Tue, 27 Feb 2018 09:59:34 -0800 Subject: [PATCH 110/267] Fix crashes onKeyPress Android Summary: There appear to be two different types of crashes related to the recent addition of `onKeyPress` on Android introduce in `0.53`. This PR addresses the cause of both of them. Firstly, it seems possible to get an `indexOutOfBoundsException` with some 3rd-party keyboards as observed in https://github.com/facebook/react-native/issues/17974 & https://github.com/facebook/react-native/issues/17922. I have simplified the backspace determining logic slightly, and also put in an explicit check for zero case so it is not possible to get an indexOutOfBoundsException & it should make sense in the context of the onKeyPress logic. Secondly, it appears that `EditText#onCreateInputConnection` can return null. In this case, if we set `null` to be the target of our subclass of `ReactEditTextInputConnectionWrapper`, we will see the crashes as seen [here](https://github.com/facebook/react-native/issues/17974#issuecomment-368471737), whereby any of methods executed in the `InputConnection` interface can result in a crash. It's hard to reason about the state when `null` is returned from `onCreateInputConnection`, however I would might reason that any soft keyboard input cannot update the `EditText` with a `null` `input connection`, as there is no way of interfacing with the `EditText`. I'm am not sure, if there is a later point where we might return/set this input connection at a later point? As without the `InputConnection` onKeyPress will not work. But for now, this will fix this crash at least. I have not managed to reproduce these crashes myself yet, but users have confirmed that the `indexOutOfBounds` exception is fixed with the 'zero' case and has been confirmed on the respective issues https://github.com/facebook/react-native/issues/17974#issuecomment-368471737. For the `null` inputConnection target case, I have verified that explicitly setting the target as null in the constructor of `onCreateInputConnection` results in the same stack trace as the one linked. Here is also a [reference](https://github.com/stripe/stripe-android/pull/392/files#diff-6cc1685c98457d07fd4e2dd83f54d5bb) to the same issue closed with the same fix for another project on github. It is also important to verify that the behavior of `onKeyPress` still functions the same after this change, which can be verified by running the RNTesterProject and the `KeyboardEvents` section in `InputText`. The cases to check that I think are important to check are: - Cursor at beginning of input & backspace - Return key & return key at beginning of input - Select text then press delete - Selection then press a key - Space key - Different keyboard types This should not be a breaking change. [ANDROID] [BUGFIX] [TextInput] - Fixes crashes with TextInput introduced in 0.53. Closes https://github.com/facebook/react-native/pull/18114 Differential Revision: D7099570 Pulled By: hramos fbshipit-source-id: 75b2dc468c1ed398a33eb00487c6aa14ae04e5c2 --- .../facebook/react/views/textinput/ReactEditText.java | 8 +++++--- .../ReactEditTextInputConnectionWrapper.java | 11 ++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index 0dde905faed0ee..e15dd5a7969cda 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -172,14 +172,16 @@ protected void onScrollChanged(int horiz, int vert, int oldHoriz, int oldVert) { @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { ReactContext reactContext = (ReactContext) getContext(); - ReactEditTextInputConnectionWrapper inputConnectionWrapper = - new ReactEditTextInputConnectionWrapper(super.onCreateInputConnection(outAttrs), reactContext, this); + InputConnection inputConnection = super.onCreateInputConnection(outAttrs); + if (inputConnection != null) { + inputConnection = new ReactEditTextInputConnectionWrapper(inputConnection, reactContext, this); + } if (isMultiline() && getBlurOnSubmit()) { // Remove IME_FLAG_NO_ENTER_ACTION to keep the original IME_OPTION outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NO_ENTER_ACTION; } - return inputConnectionWrapper; + return inputConnection; } @Override diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java index f0e12e61f340e5..cc2976efdf8679 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java @@ -92,14 +92,15 @@ public boolean setComposingText(CharSequence text, int newCursorPosition) { int previousSelectionEnd = mEditText.getSelectionEnd(); String key; boolean consumed = super.setComposingText(text, newCursorPosition); + int currentSelectionStart = mEditText.getSelectionStart(); boolean noPreviousSelection = previousSelectionStart == previousSelectionEnd; - boolean cursorDidNotMove = mEditText.getSelectionStart() == previousSelectionStart; - boolean cursorMovedBackwards = mEditText.getSelectionStart() < previousSelectionStart; - if ((noPreviousSelection && cursorMovedBackwards) - || !noPreviousSelection && cursorDidNotMove) { + boolean cursorDidNotMove = currentSelectionStart == previousSelectionStart; + boolean cursorMovedBackwardsOrAtBeginningOfInput = + (currentSelectionStart < previousSelectionStart) || currentSelectionStart <= 0; + if (cursorMovedBackwardsOrAtBeginningOfInput || (!noPreviousSelection && cursorDidNotMove)) { key = BACKSPACE_KEY_VALUE; } else { - key = String.valueOf(mEditText.getText().charAt(mEditText.getSelectionStart() - 1)); + key = String.valueOf(mEditText.getText().charAt(currentSelectionStart - 1)); } dispatchKeyEventOrEnqueue(key); return consumed; From c87d03a8b21180fa110b7ee849e51bd0388760d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Tue, 27 Feb 2018 10:00:50 -0800 Subject: [PATCH 111/267] Update danger token Summary: Closes https://github.com/facebook/react-native/pull/18111 Differential Revision: D7099636 Pulled By: hramos fbshipit-source-id: fc95ba83c34e0061c13fb831ea3496d7e8f3793a --- .circleci/config.yml | 4 +++- bots/README.md | 4 ++-- bots/dangerfile.js | 14 ++------------ 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cc86a51c4688e8..7ef8e3be5f9972 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -547,8 +547,9 @@ jobs: - run: name: Analyze Pull Request command: | + # DANGER_GITHUB_API_TOKEN=Facebook-Open-Source-Bot public_repo access token if [ -n "$CIRCLE_PR_NUMBER" ]; then - cd bots && DANGER_GITHUB_API_TOKEN="e622517d9f1136ea8900""07c6373666312cdfaa69" yarn danger + cd bots && DANGER_GITHUB_API_TOKEN="b186c9a82bab3b08ec80""c0818117619eec6f281a" yarn danger else echo "Skipping pull request analysis." fi @@ -556,6 +557,7 @@ jobs: - run: name: Analyze Code command: | + # GITHUB_TOKEN=eslint-bot public_repo access token if [ -n "$CIRCLE_PR_NUMBER" ]; then cat <(echo eslint; yarn --silent lint --format=json; echo flow; yarn --silent flow check --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" CI_USER=$CIRCLE_PROJECT_USERNAME CI_REPO=$CIRCLE_PROJECT_REPONAME PULL_REQUEST_NUMBER=$CIRCLE_PR_NUMBER node bots/code-analysis-bot.js else diff --git a/bots/README.md b/bots/README.md index 58cf901f82062c..985687f387b207 100644 --- a/bots/README.md +++ b/bots/README.md @@ -9,10 +9,10 @@ If you'd like to make changes to the Dangerfile, find an existing PR on the Reac Then, run from the React Native root directory: ``` -cd .circleci +cd bots npm install .. -node .circleci/node_modules/.bin/danger pr https://github.com/facebook/react-native/pull/1 +node bots/node_modules/.bin/danger pr https://github.com/facebook/react-native/pull/1 ``` And you will get the responses from parsing the Dangerfile. diff --git a/bots/dangerfile.js b/bots/dangerfile.js index fc727e2f0a1b9f..bd625afb3ce388 100644 --- a/bots/dangerfile.js +++ b/bots/dangerfile.js @@ -45,7 +45,7 @@ if (!includesTestPlan) { // Regex looks for given categories, types, a file/framework/component, and a message - broken into 4 capture groups const releaseNotesRegex = /\[(ANDROID|CLI|DOCS|GENERAL|INTERNAL|IOS|TVOS|WINDOWS)\]\s*?\[(BREAKING|BUGFIX|ENHANCEMENT|FEATURE|MINOR)\]\s*?\[(.*)\]\s*?\-\s*?(.*)/ig; -const includesReleaseNotes = danger.github.pr.body.toLowerCase().includes('release notes'); +const includesReleaseNotes = danger.github.pr.body && danger.github.pr.body.toLowerCase().includes('release notes'); const correctlyFormattedReleaseNotes = releaseNotesRegex.test(danger.github.pr.body); const releaseNotesCaptureGroups = releaseNotesRegex.exec(danger.github.pr.body); @@ -86,8 +86,7 @@ if (danger.github.pr.additions + danger.github.pr.deletions > bigPRThreshold) { warn(`${title} - ${idea}`); // markdown('@facebook-github-bot large-pr'); -} -if (danger.git.modified_files + danger.git.added_files + danger.git.deleted_files > bigPRThreshold) { +} else if (danger.git.modified_files + danger.git.added_files + danger.git.deleted_files > bigPRThreshold) { const title = ':exclamation: Big PR'; const idea = `This PR is extremely unlikely to get reviewed because it touches ${danger.git.modified_files + danger.git.added_files + danger.git.deleted_files} files.`; warn(`${title} - ${idea}`); @@ -95,15 +94,6 @@ if (danger.git.modified_files + danger.git.added_files + danger.git.deleted_file // markdown('@facebook-github-bot large-pr'); } -// Warns if the bots whitelist file is updated. -const issueCommandsFileModified = includes(danger.git.modified_files, 'bots/IssueCommands.txt'); -if (issueCommandsFileModified) { - const title = ':exclamation: Bots'; - const idea = 'This PR appears to modify the list of people that may issue ' + - 'commands to the GitHub bot.'; - warn(`${title} - ${idea}`); -} - // Warns if the PR is opened against stable, as commits need to be cherry picked and tagged by a release maintainer. // Fails if the PR is opened against anything other than `master` or `-stable`. const isMergeRefMaster = danger.github.pr.base.ref === 'master'; From 38197c8230657d567170cdaf8ff4bbb4aee732b8 Mon Sep 17 00:00:00 2001 From: Peter Argany Date: Tue, 27 Feb 2018 10:42:44 -0800 Subject: [PATCH 112/267] Support Input Accessory View (iOS Only) [1/N] Reviewed By: mmmulani Differential Revision: D6886573 fbshipit-source-id: 71e1f812b1cc1698e4380211a6cedd59011b5495 --- .../TextInput/InputAccessoryView.js | 114 ++++++++++++++++++ Libraries/Components/TextInput/TextInput.js | 7 ++ .../Text/RCTText.xcodeproj/project.pbxproj | 18 +++ .../Text/TextInput/RCTBaseTextInputView.h | 1 + .../Text/TextInput/RCTBaseTextInputView.m | 38 +++++- .../TextInput/RCTBaseTextInputViewManager.m | 1 + .../Text/TextInput/RCTInputAccessoryView.h | 19 +++ .../Text/TextInput/RCTInputAccessoryView.m | 69 +++++++++++ .../TextInput/RCTInputAccessoryViewContent.h | 14 +++ .../TextInput/RCTInputAccessoryViewContent.m | 75 ++++++++++++ .../TextInput/RCTInputAccessoryViewManager.h | 12 ++ .../TextInput/RCTInputAccessoryViewManager.m | 28 +++++ RNTester/js/TextInputExample.ios.js | 37 ++++++ 13 files changed, 427 insertions(+), 6 deletions(-) create mode 100644 Libraries/Components/TextInput/InputAccessoryView.js create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryView.h create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryView.m create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryViewContent.h create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryViewContent.m create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryViewManager.h create mode 100644 Libraries/Text/TextInput/RCTInputAccessoryViewManager.m diff --git a/Libraries/Components/TextInput/InputAccessoryView.js b/Libraries/Components/TextInput/InputAccessoryView.js new file mode 100644 index 00000000000000..cd12758435ff96 --- /dev/null +++ b/Libraries/Components/TextInput/InputAccessoryView.js @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule InputAccessoryView + * @flow + * @format + */ +'use strict'; + +const ColorPropType = require('ColorPropType'); +const React = require('React'); +const StyleSheet = require('StyleSheet'); +const ViewPropTypes = require('ViewPropTypes'); + +const requireNativeComponent = require('requireNativeComponent'); + +const RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView'); + +/** + * Note: iOS only + * + * A component which enables customization of the keyboard input accessory view. + * The input accessory view is displayed above the keyboard whenever a TextInput + * has focus. This component can be used to create custom toolbars. + * + * To use this component wrap your custom toolbar with the + * InputAccessoryView component, and set a nativeID. Then, pass that nativeID + * as the inputAccessoryViewID of whatever TextInput you desire. A simple + * example: + * + * ```ReactNativeWebPlayer + * import React, { Component } from 'react'; + * import { AppRegistry, TextInput, InputAccessoryView, Button } from 'react-native'; + * + * export default class UselessTextInput extends Component { + * constructor(props) { + * super(props); + * this.state = {text: 'Placeholder Text'}; + * } + * + * render() { + * const inputAccessoryViewID = "uniqueID"; + * return ( + * + * + * this.setState({text})} + * value={this.state.text} + * /> + * + * + *