@momo-kits/foundation 0.75.1-beta.14 → 0.75.1-beta.16

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.
@@ -57,7 +57,7 @@ const ScreenContainer: React.FC<ScreenContainerProps> = ({
57
57
  const results = validateChildren(children, [Section, Card]);
58
58
  if (Array.isArray(results)) {
59
59
  return results.map((item, index) => {
60
- const space = item.props.useMargin === false ? 0 : Spacing.M;
60
+ const space = item.props?.useMargin === false ? 0 : Spacing.M;
61
61
  return (
62
62
  <View
63
63
  key={`ScreenItem${index}`}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.75.1-beta.14",
3
+ "version": "0.75.1-beta.16",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/publish.sh CHANGED
@@ -12,11 +12,8 @@ echo VERSION: $VERSION
12
12
 
13
13
  rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type.js' --exclude 'prop-types.js' ./* dist
14
14
 
15
- #babel component to dist
16
- #babel ./dist -d dist --copy-files
17
-
18
15
  cd dist
19
- npm publish --tag beta --access=public
16
+ npm publish --tag latest --access=public
20
17
 
21
18
  #clear dist and package json
22
19
  cd ..