Skip to content

Commit 7176b5d

Browse files
authored
v47.3.2 (#680)
* Upgraded packages to expo 48 versions * v48.0.0 * ci on 47 branch instead of 46 * yarn.lock * Upgrade rn + remove webpack config resolution * Cast aspect ratio to number * Remove fonts from examples to get rid of warnings * Remove webpack alias for react-native * Move deprecated components into deprecated folder + minor cleanup * Delete rn maps patch * Added deprecated comments * Fixed linting * Downgrade date time picker due to react-native-datetimepicker/datetimepicker#750 not fixed yet * v47.3.2
1 parent dd35084 commit 7176b5d

26 files changed

+64
-59
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- 46
7+
- 47
88
pull_request:
99
types: [assigned, opened, synchronize, reopened]
1010

@@ -61,8 +61,8 @@ jobs:
6161
--yes \
6262
--no-verify-access
6363
64-
- name: Release packages (46)
65-
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/46'
64+
- name: Release packages (47)
65+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/47'
6666
env:
6767
NODE_AUTH_TOKEN: ${{ secrets.JIGSAW_AUTH_TOKEN }}
6868
run: |
@@ -71,8 +71,8 @@ jobs:
7171
--yes \
7272
--no-verify-access
7373
74-
- name: Release packages (46)
75-
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/46'
74+
- name: Release packages (47)
75+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/47'
7676
env:
7777
NODE_AUTH_TOKEN: ${{ secrets.JIGSAW_AUTH_TOKEN }}
7878
run: |

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@draftbit/example",
33
"description": "Example app for @draftbit/ui",
4-
"version": "47.3.1",
4+
"version": "47.3.2",
55
"private": true,
66
"main": "__generated__/AppEntry.js",
77
"scripts": {
@@ -15,8 +15,8 @@
1515
"clean:modules": "rimraf node_modules"
1616
},
1717
"dependencies": {
18-
"@draftbit/maps": "47.3.1",
19-
"@draftbit/ui": "47.3.1",
18+
"@draftbit/maps": "47.3.2",
19+
"@draftbit/ui": "47.3.2",
2020
"@expo/dev-server": "0.1.123",
2121
"@expo/webpack-config": "^0.17.2",
2222
"@react-navigation/drawer": "^5.12.9",

example/src/DatePickerExample.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ function DatePickerExample({ theme }) {
123123
mode={"date"}
124124
style={{
125125
backgroundColor: "red",
126-
fontFamily: "AbrilFatface_400Regular",
127126
fontSize: 22,
128127
paddingBottom: 16,
129128
paddingTop: 16,
@@ -139,7 +138,6 @@ function DatePickerExample({ theme }) {
139138
mode={"time"}
140139
style={{
141140
backgroundColor: "black",
142-
fontFamily: "AbrilFatface_400Regular",
143141
fontSize: 26,
144142
color: `white`,
145143
paddingBottom: 16,

example/src/LayoutExample.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ function LayoutExample({ theme }) {
3939
</Section>
4040
<Divider />
4141
<Divider />
42-
<Surface>
43-
<Section title="Circle">
44-
<Circle />
45-
</Section>
46-
</Surface>
42+
<Section title="Circle">
43+
<Circle bgColor="black" />
44+
</Section>
4745
</ScreenContainer>
4846
);
4947
}

example/src/PickerExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ function PickerExample({ theme }) {
155155
style={{
156156
fontSize: 30,
157157
color: "red",
158-
fontFamily: "Courier New",
159158
}}
160159
leftIconName={"AntDesign/caretleft"}
161160
/>

example/src/TextFieldExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export default function TextFieldExample() {
9090
style={{
9191
fontSize: 30,
9292
color: "red",
93-
fontFamily: "Courier New",
9493
}}
9594
/>
9695
<TextField

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "47.3.1",
2+
"version": "47.3.2",
33
"npmClient": "yarn",
44
"useWorkspaces": true,
55
"packages": ["packages/*", "example"],

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
"bracketSpacing": true
8585
}
8686
]
87+
},
88+
"parserOptions": {
89+
"requireConfigFile": false
8790
}
8891
},
8992
"resolutions": {
@@ -103,7 +106,8 @@
103106
"tabWidth": 2,
104107
"trailingComma": "es5",
105108
"useTabs": false,
106-
"bracketSpacing": true
109+
"bracketSpacing": true,
110+
"endOfLine": "auto"
107111
},
108112
"lint-staged": {
109113
"*.{js,ts,tsx,jsx}": "eslint --cache --fix",

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@draftbit/core",
3-
"version": "47.3.1",
3+
"version": "47.3.2",
44
"description": "Core (non-native) Components",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",
@@ -39,7 +39,7 @@
3939
"dependencies": {
4040
"@date-io/date-fns": "^1.3.13",
4141
"@draftbit/react-theme-provider": "^2.1.1",
42-
"@draftbit/types": "47.3.1",
42+
"@draftbit/types": "47.3.2",
4343
"@expo/vector-icons": "^13.0.0",
4444
"@material-ui/core": "^4.11.0",
4545
"@material-ui/pickers": "^3.2.10",

packages/core/src/components/AspectRatio.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const AspectRatio: React.FC<React.PropsWithChildren<Props>> = (props) => {
2121
if (layout) {
2222
const { width = 0, height = 0 } = layout;
2323
if (width === 0) {
24-
style.push({ width: height * (1 / aspectRatio), height });
24+
style.push({ width: height * (1 / +aspectRatio), height });
2525
} else {
26-
style.push({ width, height: width * (1 / aspectRatio) });
26+
style.push({ width, height: width * (1 / +aspectRatio) });
2727
}
2828
}
2929
return (

0 commit comments

Comments
 (0)