Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Upgrade expo to sdk 38 (#29)
Browse files Browse the repository at this point in the history
* Upgrade expo to sdk 38

* Upgrade packages

* Remove bad word

* Update packages
  • Loading branch information
hyochan authored Sep 24, 2020
1 parent 33f3ff2 commit 041f108
Show file tree
Hide file tree
Showing 10 changed files with 3,372 additions and 7,030 deletions.
1 change: 0 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"name": "dooboo",
"slug": "dooboo-expo",
"privacy": "public",
"sdkVersion": "37.0.0",
"platforms": [
"ios",
"android",
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
setupFiles: [
...expoPreset.setupFiles,
...jestPreset.setupFiles,
'<rootDir>/test/jestSetup.js',
'<rootDir>/test/jestSetup.ts',
],
/* eslint-disable */
Expand Down
74 changes: 36 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,59 +19,57 @@
"author": "hyochan <[email protected]>",
"license": "MIT",
"dependencies": {
"@react-native-community/masked-view": "0.1.6",
"@react-navigation/core": "^5.10.0",
"@react-navigation/native": "^5.5.1",
"@react-navigation/stack": "^5.5.1",
"expo": "^37.0.12",
"expo-localization": "~8.1.0",
"i18n-js": "^3.7.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/core": "^5.12.2",
"@react-navigation/native": "^5.7.2",
"@react-navigation/stack": "^5.8.0",
"expo": "^38.0.9",
"expo-localization": "~8.2.1",
"expo-splash-screen": "^0.5.0",
"i18n-js": "^3.7.1",
"react": "16.11.0",
"react-dom": "16.11.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz",
"react-native-gesture-handler": "~1.6.0",
"react-native-reanimated": "~1.7.0",
"react-native-safe-area-context": "0.7.3",
"react-native-screens": "~2.2.0",
"react-native-svg": "11.0.1",
"react-native-web": "0.11",
"react-native-webview": "8.1.1",
"react-native-reanimated": "~1.9.0",
"react-native-safe-area-context": "3.0.2",
"react-native-screens": "~2.9.0",
"react-native-svg": "12.1.0",
"react-native-web": "~0.13.4",
"react-native-webview": "9.4.0",
"react-navigation-stack": "^2.3.10",
"sentry-expo": "^2.1.2",
"styled-components": "^5.1.1"
},
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/preset-typescript": "^7.10.1",
"@dooboo/eslint-config": "^0.4.2",
"@testing-library/jest-native": "^3.1.0",
"@testing-library/react-native": "^5.0.3",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/preset-typescript": "^7.10.4",
"@dooboo/eslint-config": "^0.4.3",
"@testing-library/jest-native": "^3.3.0",
"@testing-library/react-native": "^5",
"@types/expo": "^33.0.1",
"@types/i18n-js": "^3.0.3",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.38",
"@types/react-native": "^0.62.13",
"@types/jest": "^26.0.8",
"@types/react": "~16.9.44",
"@types/react-native": "~0.62",
"@types/react-test-renderer": "^16.9",
"@types/styled-components": "^5.1.0",
"abort-controller": "^3.0.0",
"babel-jest": "^26.0.1",
"babel-preset-expo": "^8.2.1",
"@types/styled-components": "^5.1.2",
"babel-jest": "^26.2.2",
"babel-preset-expo": "^8.2.3",
"babel-preset-react-native": "4.0.1",
"codecov": "^3.7.0",
"eslint": "^7.2.0",
"jest": "^25.5.4",
"jest-expo": "^37.0.0",
"jest-expo-ts": "^22.0.1",
"codecov": "^3.7.2",
"eslint": "^7.6.0",
"jest": "^26.2.2",
"jest-expo": "^38.0.2",
"jest-fetch-mock": "^3.0.3",
"jest-styled-components": "^7.0.2",
"jetifier": "^1.6.6",
"metro-react-native-babel-preset": "^0.59.0",
"metro-react-native-babel-preset": "^0.61.0",
"prettier": "^2.0.5",
"react-native-typescript-transformer": "^1.2.13",
"react-test-renderer": "^16.13.1",
"ts-jest": "^25.5.1",
"ts-jest": "^26.1.4",
"tslib": "^2.0.0",
"typescript": "^3.9.5"
"typescript": "~3.9.7"
}
}
2 changes: 1 addition & 1 deletion src/apis/__tests__/sample.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('testing sample api', () => {
const mockedResult = JSON.stringify({ data: '12345' });
fetchMock.mockResponseOnce(mockedResult);

return sample({ zoyi: 'zoyi' }).then(async (res) => {
return sample({ dooboolab: 'dooboolab' }).then(async (res) => {
const result = await res.text();
expect(result).toEqual(mockedResult);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
}
}
>
<RNCSafeAreaView
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
Object {
Expand Down Expand Up @@ -36,6 +36,14 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
}
}
>
<View
collapsable={false}
style={
Object {
"opacity": 1,
}
}
/>
<View
accessibilityElementsHidden={false}
closing={false}
Expand All @@ -44,6 +52,7 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
onClose={[Function]}
onGestureBegin={[Function]}
onGestureCanceled={[Function]}
onGestureEnd={[Function]}
onOpen={[Function]}
onTransitionStart={[Function]}
pointerEvents="box-none"
Expand Down Expand Up @@ -88,12 +97,12 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
style={
Object {
"flex": 1,
"opacity": 1,
}
}
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Expand Down Expand Up @@ -247,7 +256,7 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
]
}
>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-login"
Expand Down Expand Up @@ -302,15 +311,15 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
Login
</Text>
</View>
</TouchableOpacity>
</View>
<View
style={
Object {
"marginTop": 8,
}
}
/>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-navigate"
Expand Down Expand Up @@ -345,15 +354,15 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
Navigate to Temp
</Text>
</View>
</TouchableOpacity>
</View>
<View
style={
Object {
"marginTop": 8,
}
}
/>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-theme"
Expand Down Expand Up @@ -388,7 +397,7 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
Change theme
</Text>
</View>
</TouchableOpacity>
</View>
</View>
</View>
</View>
Expand Down Expand Up @@ -419,9 +428,9 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
style={
Object {
"backgroundColor": "#323739",
"borderBottomColor": "rgb(224, 224, 224)",
"borderBottomColor": "rgb(216, 216, 216)",
"flex": 1,
"shadowColor": "rgb(224, 224, 224)",
"shadowColor": "rgb(216, 216, 216)",
"shadowOffset": Object {
"height": 0.5,
"width": 0,
Expand Down Expand Up @@ -497,7 +506,7 @@ exports[`[Stack] navigator should renders [Dark] mode 1`] = `
</View>
</View>
</View>
</RNCSafeAreaView>
</RNCSafeAreaProvider>
</View>
`;

Expand All @@ -509,7 +518,7 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
}
}
>
<RNCSafeAreaView
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
Object {
Expand Down Expand Up @@ -553,9 +562,9 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
style={
Object {
"backgroundColor": "white",
"borderBottomColor": "rgb(224, 224, 224)",
"borderBottomColor": "rgb(216, 216, 216)",
"flex": 1,
"shadowColor": "rgb(224, 224, 224)",
"shadowColor": "rgb(216, 216, 216)",
"shadowOffset": Object {
"height": 0.5,
"width": 0,
Expand Down Expand Up @@ -645,6 +654,14 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
}
}
>
<View
collapsable={false}
style={
Object {
"opacity": 1,
}
}
/>
<View
accessibilityElementsHidden={false}
closing={false}
Expand All @@ -653,6 +670,7 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
onClose={[Function]}
onGestureBegin={[Function]}
onGestureCanceled={[Function]}
onGestureEnd={[Function]}
onOpen={[Function]}
onTransitionStart={[Function]}
pointerEvents="box-none"
Expand Down Expand Up @@ -697,12 +715,12 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
style={
Object {
"flex": 1,
"opacity": 1,
}
}
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Expand Down Expand Up @@ -856,7 +874,7 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
]
}
>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-login"
Expand Down Expand Up @@ -911,15 +929,15 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
Login
</Text>
</View>
</TouchableOpacity>
</View>
<View
style={
Object {
"marginTop": 8,
}
}
/>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-navigate"
Expand Down Expand Up @@ -954,15 +972,15 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
Navigate to Temp
</Text>
</View>
</TouchableOpacity>
</View>
<View
style={
Object {
"marginTop": 8,
}
}
/>
<TouchableOpacity
<View
activeOpacity={0.5}
onPress={[Function]}
testID="btn-theme"
Expand Down Expand Up @@ -997,7 +1015,7 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
Change theme
</Text>
</View>
</TouchableOpacity>
</View>
</View>
</View>
</View>
Expand All @@ -1008,6 +1026,6 @@ exports[`[Stack] navigator should renders without crashing 1`] = `
</View>
</View>
</View>
</RNCSafeAreaView>
</RNCSafeAreaProvider>
</View>
`;
Loading

0 comments on commit 041f108

Please sign in to comment.