@sdcx/bottom-sheet 0.11.0 → 0.12.0

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.
@@ -143,7 +143,6 @@
143
143
 
144
144
  - (void)reactSetFrame:(CGRect)frame {
145
145
  [super reactSetFrame:frame];
146
-
147
146
  }
148
147
 
149
148
  - (void)layoutSubviews {
@@ -298,7 +297,7 @@
298
297
  return;
299
298
  }
300
299
 
301
- [self settleToState:state withFling:NO];
300
+ [self settleToState:state withFling:YES];
302
301
  }
303
302
 
304
303
  - (void)settleToState:(RNBottomSheetState)state withFling:(BOOL)fling {
@@ -3,7 +3,7 @@
3
3
  @interface RNBottomSheetOffsetChangedEvent ()
4
4
 
5
5
  @property (nonatomic, assign) CGFloat progress;
6
- @property (nonatomic, assign) CGFloat offest;
6
+ @property (nonatomic, assign) CGFloat offset;
7
7
  @property (nonatomic, assign) CGFloat minY;
8
8
  @property (nonatomic, assign) CGFloat maxY;
9
9
 
@@ -22,7 +22,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
22
22
  if (self = [super init]) {
23
23
  _viewTag = viewTag;
24
24
  _progress = progress;
25
- _offest = offset;
25
+ _offset = offset;
26
26
  _minY = minY;
27
27
  _maxY = maxY;
28
28
  }
@@ -44,7 +44,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
44
44
  - (NSArray *)arguments {
45
45
  return @[self.viewTag, RCTNormalizeInputEventName(self.eventName), @{
46
46
  @"progress": @(self.progress),
47
- @"offset": @(self.offest),
47
+ @"offset": @(self.offset),
48
48
  @"expandedOffset": @(self.minY),
49
49
  @"collapsedOffset": @(self.maxY)
50
50
  }];
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": "0.11.0",
4
+ "version": "0.12.0",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
7
7
  "react-native": "src/index",