Skip to content

Commit 06e2b0a

Browse files
fix: upgrades for expo
1 parent 08357ed commit 06e2b0a

21 files changed

+10879
-5718
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,11 @@ If that is **not possible** use the following props on the surrounding ScrollVie
354354
This is to prevent the need to press 2 times before save or close button in modal works (1 press for closing keyboard, 1 press for confirm/close)
355355
[React Native Issue: #10138](https://github.com/facebook/react-native/issues/10138)
356356

357+
358+
357359
## Android Caveats
358360
We recommend Hermes with React Native >= 0.66 you won't need these polyfills at all!
361+
359362
### Below React Native 0.66
360363
You will need to add a polyfill for the Intl API on Android if:
361364

example/app.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
"android",
1313
"web"
1414
],
15+
"jsEngine": "hermes",
1516
"ios": {
16-
"supportsTablet": true
17+
"supportsTablet": true,
18+
"jsEngine": "jsc"
1719
},
1820
"assetBundlePatterns": [
1921
"**/*"

example/metro.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path')
2-
const blacklist = require('metro-config/src/defaults/blacklist')
2+
const exclusionList = require('metro-config/src/defaults/exclusionList')
33
const escape = require('escape-string-regexp')
44
const pak = require('../package.json')
55

@@ -16,7 +16,7 @@ module.exports = {
1616
// We need to make sure that only one version is loaded for peerDependencies
1717
// So we blacklist them at the root, and alias them to the versions in example's node_modules
1818
resolver: {
19-
blacklistRE: blacklist(
19+
blacklistRE: exclusionList(
2020
modules.map(
2121
(m) =>
2222
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)

example/package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,19 @@
1212
"test": "jest"
1313
},
1414
"dependencies": {
15-
"expo": "^40.0.0",
16-
"expo-splash-screen": "~0.8.1",
17-
"react": "16.13.1",
18-
"react-dom": "16.13.1",
19-
"react-native": "0.63.4",
20-
"react-native-paper": "^4.9.1",
21-
"react-native-unimodules": "~0.12.0",
22-
"react-native-web": "~0.14.9"
15+
"expo": "^44.0.0",
16+
"expo-splash-screen": "~0.14.1",
17+
"react": "17.0.1",
18+
"react-dom": "17.0.1",
19+
"react-native": "^0.66.4",
20+
"react-native-paper": "^4.11.1",
21+
"react-native-web": "^0.17.5"
2322
},
2423
"devDependencies": {
25-
"@babel/core": "~7.12.10",
24+
"@babel/core": "^7.12.9",
2625
"@babel/runtime": "^7.9.6",
2726
"babel-plugin-module-resolver": "^4.0.0",
28-
"babel-preset-expo": "8.3.0",
29-
"expo-cli": "^4.0.13"
27+
"babel-preset-expo": "9.0.1",
28+
"expo-cli": "^5.0.3"
3029
}
3130
}

example/src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ function App() {
198198
value={inputDate}
199199
onChange={setInputDate}
200200
inputMode="start"
201-
// FIXME : remove the ts error
202-
// @ts-ignore
203-
autoCompleteType={'birthdate-full'}
201+
autoComplete={'birthdate-full'}
204202
/>
205203
</Row>
206204
<Row>

example/src/ReadMeExampleDatePickerInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function ReadMeExampleDatePickerInput() {
1313
value={inputDate}
1414
onChange={(d) => setInputDate(d)}
1515
inputMode="start"
16-
autoCompleteType="birthdate-full"
16+
autoComplete="birthdate-full"
1717
// mode="outlined" (see react-native-paper docs)
1818
// other react native TextInput props
1919
/>

example/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"resolveJsonModule": true,
1313
"esModuleInterop": true,
1414
"moduleResolution": "node"
15-
}
15+
},
16+
"extends": "expo/tsconfig.base"
1617
}

example/yarn.lock

Lines changed: 3865 additions & 4499 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@
5454
"@types/jest": "^26.0.24",
5555
"@types/react": "^16.14.20",
5656
"@types/react-native": "^0.66.1",
57+
"babel-loader": "^8.2.3",
5758
"commitlint": "^11.0.0",
5859
"eslint": "^7.32.0",
5960
"eslint-config-prettier": "^8.3.0",
6061
"eslint-plugin-prettier": "^4.0.0",
62+
"expo-cli": "^5.0.3",
6163
"husky": "^4.2.5",
6264
"jest": "^26.0.1",
6365
"pod-install": "^0.1.28",

src/Date/CalendarEdit.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function CalendarEdit({
8888
validRange={validRange}
8989
locale={locale}
9090
withModal={false}
91-
autoCompleteType={'off'}
91+
autoComplete={'off'}
9292
/>
9393
) : null}
9494
{mode === 'range' ? (
@@ -104,7 +104,7 @@ function CalendarEdit({
104104
validRange={validRange}
105105
locale={locale}
106106
withModal={false}
107-
autoCompleteType={'off'}
107+
autoComplete={'off'}
108108
/>
109109
<View style={styles.separator} />
110110
<DatePickerInput
@@ -117,7 +117,7 @@ function CalendarEdit({
117117
validRange={validRange}
118118
locale={locale}
119119
withModal={false}
120-
autoCompleteType={'off'}
120+
autoComplete="off"
121121
/>
122122
</>
123123
) : null}

0 commit comments

Comments
 (0)