@builder.io/sdk-react-native 0.1.8 → 0.1.9

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.
@@ -33,11 +33,9 @@ function SectionComponent(props) {
33
33
  return (React.createElement(react_native_1.View, { ...props.attributes, style: {
34
34
  width: "100%",
35
35
  alignSelf: "stretch",
36
- flexGrow: "1",
36
+ flexGrow: 1,
37
37
  boxSizing: "border-box",
38
- maxWidth: `${props.maxWidth && typeof props.maxWidth === "number"
39
- ? props.maxWidth
40
- : 1200}px`,
38
+ maxWidth: props.maxWidth || 1200,
41
39
  display: "flex",
42
40
  flexDirection: "column",
43
41
  alignItems: "stretch",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-native",
3
3
  "description": "Builder.io SDK for React Native",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -9,13 +9,9 @@ export default function SectionComponent(props) {
9
9
  style={{
10
10
  width: "100%",
11
11
  alignSelf: "stretch",
12
- flexGrow: "1",
12
+ flexGrow: 1,
13
13
  boxSizing: "border-box",
14
- maxWidth: `${
15
- props.maxWidth && typeof props.maxWidth === "number"
16
- ? props.maxWidth
17
- : 1200
18
- }px`,
14
+ maxWidth: props.maxWidth || 1200,
19
15
  display: "flex",
20
16
  flexDirection: "column",
21
17
  alignItems: "stretch",