Skip to content

Commit c43e93d

Browse files
committed
Reverted ca9d1b3bf5a6f46ec29babe8685634690ff9a2bc to unbreak groups
1 parent 77a0cf2 commit c43e93d

File tree

11 files changed

+233
-941
lines changed

11 files changed

+233
-941
lines changed

Examples/UIExplorer/UIExplorerIntegrationTests/RCTUIManagerScenarioTests.m

Lines changed: 115 additions & 360 deletions
Large diffs are not rendered by default.
2 Bytes
Loading

Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,21 @@
1414

1515
#import <XCTest/XCTest.h>
1616

17-
#import "RCTRootView.h"
18-
#import "RCTShadowView.h"
1917
#import "RCTSparseArray.h"
2018
#import "RCTUIManager.h"
2119
#import "UIView+React.h"
2220

2321
@interface RCTUIManager (Testing)
2422

2523
- (void)_manageChildren:(NSNumber *)containerReactTag
24+
moveFromIndices:(NSArray *)moveFromIndices
25+
moveToIndices:(NSArray *)moveToIndices
2626
addChildReactTags:(NSArray *)addChildReactTags
2727
addAtIndices:(NSArray *)addAtIndices
2828
removeAtIndices:(NSArray *)removeAtIndices
2929
registry:(RCTSparseArray *)registry;
3030

3131
@property (nonatomic, readonly) RCTSparseArray *viewRegistry;
32-
@property (nonatomic, readonly) RCTSparseArray *shadowViewRegistry; // RCT thread only
3332

3433
@end
3534

@@ -52,11 +51,6 @@ - (void)setUp
5251
UIView *registeredView = [[UIView alloc] init];
5352
[registeredView setReactTag:@(i)];
5453
_uiManager.viewRegistry[i] = registeredView;
55-
56-
RCTShadowView *registeredShadowView = [[RCTShadowView alloc] init];
57-
registeredShadowView.viewName = @"RCTView";
58-
[registeredShadowView setReactTag:@(i)];
59-
_uiManager.shadowViewRegistry[i] = registeredShadowView;
6054
}
6155
}
6256

@@ -73,6 +67,8 @@ - (void)testManagingChildrenToAddViews
7367

7468
// Add views 1-5 to view 20
7569
[_uiManager _manageChildren:@20
70+
moveFromIndices:nil
71+
moveToIndices:nil
7672
addChildReactTags:tagsToAdd
7773
addAtIndices:addAtIndices
7874
removeAtIndices:nil
@@ -105,6 +101,8 @@ - (void)testManagingChildrenToRemoveViews
105101

106102
// Remove views 1-5 from view 20
107103
[_uiManager _manageChildren:@20
104+
moveFromIndices:nil
105+
moveToIndices:nil
108106
addChildReactTags:nil
109107
addAtIndices:nil
110108
removeAtIndices:removeAtIndices
@@ -142,9 +140,11 @@ - (void)testManagingChildrenToAddRemoveAndMove
142140
{
143141
UIView *containerView = _uiManager.viewRegistry[20];
144142

145-
NSArray *removeAtIndices = @[@2, @3, @5, @8, @4, @9];
146-
NSArray *addAtIndices = @[@0, @6, @1, @7];
147-
NSArray *tagsToAdd = @[@11, @12, @5, @10];
143+
NSArray *removeAtIndices = @[@2, @3, @5, @8];
144+
NSArray *addAtIndices = @[@0, @6];
145+
NSArray *tagsToAdd = @[@11, @12];
146+
NSArray *moveFromIndices = @[@4, @9];
147+
NSArray *moveToIndices = @[@1, @7];
148148

149149
// We need to keep these in array to keep them around
150150
NSMutableArray *viewsToRemove = [NSMutableArray array];
@@ -160,6 +160,8 @@ - (void)testManagingChildrenToAddRemoveAndMove
160160
}
161161

162162
[_uiManager _manageChildren:@20
163+
moveFromIndices:moveFromIndices
164+
moveToIndices:moveToIndices
163165
addChildReactTags:tagsToAdd
164166
addAtIndices:addAtIndices
165167
removeAtIndices:removeAtIndices

Libraries/Components/ScrollView/ScrollView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ var ScrollView = React.createClass({
279279

280280
var contentContainer =
281281
<View
282-
collapsible={false}
283282
ref={INNERVIEW}
284283
style={contentContainerStyle}
285284
removeClippedSubviews={this.props.removeClippedSubviews}>

Libraries/Components/View/View.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ var View = React.createClass({
8383
},
8484

8585
propTypes: {
86-
/**
87-
* When false, indicates that the view should not be collapsed, even if it is
88-
* layout-only. Defaults to true.
89-
*/
90-
collapsible: PropTypes.bool,
91-
9286
/**
9387
* When true, indicates that the view is an accessibility element. By default,
9488
* all the touchable elements are accessible.

Libraries/ReactNative/ReactNativeViewAttributes.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@ ReactNativeViewAttributes.UIView = {
2424
onLayout: true,
2525
onAccessibilityTap: true,
2626
onMagicTap: true,
27-
collapsible: true,
28-
29-
// If editing layout-only view attributes, make sure
30-
// -[RCTShadowView isLayoutOnly] in RCTShadowView.m
31-
// is up-to-date! If any property below is set, the
32-
// view should not be collapsible, but this is done
33-
// on the native side.
34-
onMoveShouldSetResponder: true,
35-
onResponderGrant: true,
36-
onResponderMove: true,
37-
onResponderReject: true,
38-
onResponderRelease: true,
39-
onResponderTerminate: true,
40-
onResponderTerminationRequest: true,
41-
onStartShouldSetResponder: true,
42-
onStartShouldSetResponderCapture: true,
4327
};
4428

4529
ReactNativeViewAttributes.RCTView = merge(

Libraries/Text/RCTShadowRawText.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ - (void)setText:(NSString *)text
2020
}
2121
}
2222

23-
- (BOOL)isLayoutOnly
24-
{
25-
return YES;
26-
}
27-
2823
- (NSString *)description
2924
{
3025
NSString *superDescription = super.description;

0 commit comments

Comments
 (0)