@lodev09/react-native-true-sheet 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
#import <react/renderer/components/TrueSheetSpec/EventEmitters.h>
|
|
15
15
|
#import <react/renderer/components/TrueSheetSpec/Props.h>
|
|
16
16
|
#import <react/renderer/components/TrueSheetSpec/RCTComponentViewHelpers.h>
|
|
17
|
+
#import "TrueSheetView.h"
|
|
17
18
|
#import "TrueSheetViewController.h"
|
|
18
19
|
#import "utils/LayoutUtil.h"
|
|
19
20
|
|
|
@@ -128,6 +129,9 @@ using namespace facebook::react;
|
|
|
128
129
|
|
|
129
130
|
- (RCTScrollViewComponentView *)findScrollViewInSubviews:(NSArray<UIView *> *)subviews {
|
|
130
131
|
for (UIView *subview in subviews) {
|
|
132
|
+
if ([subview isKindOfClass:TrueSheetView.class]) {
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
131
135
|
if ([subview isKindOfClass:RCTScrollViewComponentView.class]) {
|
|
132
136
|
return (RCTScrollViewComponentView *)subview;
|
|
133
137
|
}
|
|
@@ -161,7 +165,7 @@ using namespace facebook::react;
|
|
|
161
165
|
CGFloat closestDistance = CGFLOAT_MAX;
|
|
162
166
|
|
|
163
167
|
for (UIView *sibling in self.subviews) {
|
|
164
|
-
if (sibling == scrollView) {
|
|
168
|
+
if (sibling == scrollView || [sibling isKindOfClass:TrueSheetView.class]) {
|
|
165
169
|
continue;
|
|
166
170
|
}
|
|
167
171
|
|
package/package.json
CHANGED