Skip to content

Commit 9c1533a

Browse files
committed
chore: update additional dependencies
1 parent 20c6bf2 commit 9c1533a

File tree

5 files changed

+1677
-3259
lines changed

5 files changed

+1677
-3259
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
lib/
3+
examples/
4+
coverage/

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:@react-native/babel-preset'],
33
};

package.json

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -50,33 +50,45 @@
5050
"registry": "https://registry.npmjs.org/"
5151
},
5252
"devDependencies": {
53-
"@commitlint/config-conventional": "^17.0.2",
54-
"@evilmartians/lefthook": "^1.5.0",
55-
"@react-native/eslint-config": "^0.72.2",
56-
"@release-it/conventional-changelog": "^5.0.0",
57-
"@types/jest": "^28.1.2",
53+
"@babel/core": "^7.25.2",
54+
"@babel/preset-env": "^7.25.3",
55+
"@babel/runtime": "^7.25.0",
56+
"@commitlint/config-conventional": "^19.8.1",
57+
"@evilmartians/lefthook": "^1.12.3",
58+
"@react-native-community/cli": "20.0.0",
59+
"@react-native-community/cli-platform-android": "20.0.0",
60+
"@react-native-community/cli-platform-ios": "20.0.0",
61+
"@react-native/babel-preset": "0.81.1",
62+
"@react-native/eslint-config": "0.81.1",
63+
"@react-native/metro-config": "0.81.1",
64+
"@react-native/typescript-config": "0.81.1",
65+
"@release-it/conventional-changelog": "^8.0.0",
66+
"@types/jest": "^29.5.13",
5867
"@types/react": "^19.1.0",
59-
"@types/react-native": "0.73.0",
60-
"commitlint": "^17.0.2",
68+
"@types/react-test-renderer": "^19.1.0",
69+
"babel-plugin-module-resolver": "^5.0.0",
70+
"commitlint": "^19.8.1",
6171
"del-cli": "^5.0.0",
62-
"eslint": "^8.4.1",
63-
"eslint-config-prettier": "^8.5.0",
64-
"eslint-plugin-prettier": "^4.0.0",
65-
"jest": "^28.1.1",
66-
"prettier": "^2.0.5",
72+
"eslint": "^8.57.0",
73+
"eslint-config-prettier": "^9.1.0",
74+
"jest": "^29.6.3",
75+
"prettier": "^3.5.0",
6776
"react": "^19.1.0",
6877
"react-native": "0.81.1",
69-
"react-native-builder-bob": "^0.23.1",
70-
"react-native-webview": "^13.6.2",
71-
"release-it": "^15.0.0",
72-
"typescript": "^5.0.2"
78+
"react-native-builder-bob": "^0.40.13",
79+
"react-native-safe-area-context": "^5.6.1",
80+
"react-native-webview": "11.26.1",
81+
"react-test-renderer": "19.1.0",
82+
"release-it": "^19.0.4",
83+
"typescript": "^5.8.3"
7384
},
7485
"resolutions": {
7586
"@types/react": "^18.0.0 || ^19.0.0"
7687
},
7788
"peerDependencies": {
7889
"react": ">=18.0.0",
79-
"react-native": ">=0.72.0",
90+
"react-native": "*",
91+
"react-native-safe-area-context": "*",
8092
"react-native-webview": "*"
8193
},
8294
"workspaces": [
@@ -85,7 +97,7 @@
8597
],
8698
"packageManager": "[email protected]",
8799
"engines": {
88-
"node": ">= 18.0.0"
100+
"node": ">= 20.0.0"
89101
},
90102
"jest": {
91103
"preset": "react-native",
@@ -121,24 +133,8 @@
121133
"extends": [
122134
"@react-native",
123135
"prettier"
124-
],
125-
"rules": {
126-
"prettier/prettier": [
127-
"error",
128-
{
129-
"quoteProps": "consistent",
130-
"singleQuote": true,
131-
"tabWidth": 2,
132-
"trailingComma": "es5",
133-
"useTabs": false
134-
}
135-
]
136-
}
136+
]
137137
},
138-
"eslintIgnore": [
139-
"node_modules/",
140-
"lib/"
141-
],
142138
"prettier": {
143139
"quoteProps": "consistent",
144140
"singleQuote": true,
@@ -162,6 +158,6 @@
162158
},
163159
"dependencies": {
164160
"react-redux": "^9.2.0",
165-
"redux": "^4.2.1"
161+
"redux": "^5.0.1"
166162
}
167163
}

src/components/Survey.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import {
99
Appearance,
1010
Modal,
1111
Platform,
12-
SafeAreaView,
1312
StyleSheet,
1413
View,
1514
useColorScheme,
1615
Linking,
1716
} from 'react-native';
1817
import { connect } from 'react-redux';
1918
import { WebView } from 'react-native-webview';
19+
import { SafeAreaView, SafeAreaProvider } from 'react-native-safe-area-context';
2020

2121
import { Colors, DefaultHost, Themes } from '../constants';
2222
import { EventMessageTypes, InteractionEvents } from '../interaction-events';
@@ -215,12 +215,13 @@ const SurveyView: (Props: Props) => React.ReactElement = ({
215215
animationType="slide"
216216
onRequestClose={dismiss}
217217
>
218-
<SafeAreaView
219-
style={{
220-
...styles.container,
221-
backgroundColor: backgroundColor,
222-
}}
223-
>
218+
<SafeAreaProvider>
219+
<SafeAreaView
220+
style={{
221+
...styles.container,
222+
backgroundColor: backgroundColor,
223+
}}
224+
>
224225
{isLoading && (
225226
<View
226227
style={{
@@ -261,7 +262,8 @@ const SurveyView: (Props: Props) => React.ReactElement = ({
261262
style={{ backgroundColor: backgroundColor }}
262263
/>
263264
)}
264-
</SafeAreaView>
265+
</SafeAreaView>
266+
</SafeAreaProvider>
265267
</Modal>
266268
</View>
267269
);

0 commit comments

Comments
 (0)