@sdcx/bottom-sheet 1.0.2 → 1.0.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#import "
|
|
1
|
+
#import "RNBottomSheet.h"
|
|
2
2
|
#import "RNBottomSheetStateChangedEvent.h"
|
|
3
3
|
#import "RNBottomSheetOffsetChangedEvent.h"
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ RCTSendStateForNativeAnimations_DEPRECATED(NSInteger tag, NSString *state) {
|
|
|
36
36
|
|
|
37
37
|
using namespace facebook::react;
|
|
38
38
|
|
|
39
|
-
@interface
|
|
39
|
+
@interface RNBottomSheet () <UIGestureRecognizerDelegate>
|
|
40
40
|
|
|
41
41
|
@property(nonatomic, assign) BottomSheetStatus status;
|
|
42
42
|
@property(nonatomic, assign) BottomSheetStatus finalStatus;
|
|
@@ -54,7 +54,7 @@ using namespace facebook::react;
|
|
|
54
54
|
|
|
55
55
|
@end
|
|
56
56
|
|
|
57
|
-
@implementation
|
|
57
|
+
@implementation RNBottomSheet {
|
|
58
58
|
__weak UIView *_rootView;
|
|
59
59
|
BOOL _isInitialRender;
|
|
60
60
|
__weak UIView *_reactRootView;
|
|
@@ -159,7 +159,7 @@ using namespace facebook::react;
|
|
|
159
159
|
if (!self.draggable) {
|
|
160
160
|
return NO;
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
|
|
163
163
|
if (gestureRecognizer != self.panGestureRecognizer) {
|
|
164
164
|
return YES;
|
|
165
165
|
}
|
|
@@ -524,7 +524,7 @@ using namespace facebook::react;
|
|
|
524
524
|
if (_reactRootView) {
|
|
525
525
|
return;
|
|
526
526
|
}
|
|
527
|
-
|
|
527
|
+
|
|
528
528
|
UIView *v = self;
|
|
529
529
|
while (v) {
|
|
530
530
|
if ([NSStringFromClass([v class]) isEqualToString:@"RCTSurfaceView"]) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdcx/bottom-sheet",
|
|
3
3
|
"description": "A react-native BottomSheet component.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dist",
|
|
12
12
|
"android",
|
|
13
13
|
"ios",
|
|
14
|
+
"react-native.config.js",
|
|
14
15
|
"RNBottomSheet.podspec",
|
|
15
16
|
"!android/build",
|
|
16
17
|
"!ios/build",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
},
|
|
46
47
|
"ios": {
|
|
47
48
|
"componentProvider": {
|
|
48
|
-
"BottomSheet": "
|
|
49
|
+
"BottomSheet": "RNBottomSheet"
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|