@momo-kits/foundation 0.150.2-beta.12 → 0.150.2-beta.13

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.
@@ -214,8 +214,8 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
214
214
  return;
215
215
  }
216
216
  closeAnimation(() => {
217
+ navigator?.pop();
217
218
  runOnJS(() => {
218
- navigator?.pop();
219
219
  callback?.();
220
220
  })();
221
221
  });
package/Layout/Card.tsx CHANGED
@@ -33,9 +33,10 @@ const Card: React.FC<CardProps> = ({
33
33
  const gutterSize = 8;
34
34
  const margin = 12;
35
35
  const widthSection = Dimensions.get('window').width - margin * 2;
36
- const sizePerSpan =
36
+ const sizePerSpan = Math.round(
37
37
  (widthSection - margin * 2 - gutterSize * (numberOfColumns - 1)) /
38
- numberOfColumns;
38
+ numberOfColumns,
39
+ );
39
40
 
40
41
  const gridContext: GridContextProps = {
41
42
  numberOfColumns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.150.2-beta.12",
3
+ "version": "0.150.2-beta.13",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},