Skip to content

Commit 4726566

Browse files
luancurtivonovak
andauthored
fix: expo plugin using getAppThemeGroup (#978)
* fix: expo plugin using getAppThemeGroup * Bump expo peer dep * update lockfile --------- Co-authored-by: Vojtech Novak <[email protected]>
1 parent 5dc2c75 commit 4726566

File tree

3 files changed

+1316
-594
lines changed

3 files changed

+1316
-594
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"eslint-plugin-ft-flow": "^2.0.1",
8585
"eslint-plugin-jest": "^28.6.0",
8686
"eslint-plugin-prettier": "^4.2.1",
87-
"expo": "^51.0.18",
87+
"expo": "^52.0.30",
8888
"expo-module-scripts": "^3.5.2",
8989
"flow-bin": "^0.217.0",
9090
"flow-typed": "^3.9.0",
@@ -107,7 +107,7 @@
107107
"invariant": "^2.2.4"
108108
},
109109
"peerDependencies": {
110-
"expo": ">=50.0.0",
110+
"expo": ">=52.0.0",
111111
"react": "*",
112112
"react-native": "*",
113113
"react-native-windows": "*"

plugin/src/withDateTimePickerStyles.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ const DATE_PICKER_STYLE_NAME = 'DatePickerDialogTheme';
8484
const TIME_PICKER_THEME_ATTRIBUTE = 'android:timePickerStyle';
8585
const TIME_PICKER_STYLE_NAME = 'TimePickerTheme';
8686

87-
const {assignStylesValue, getAppThemeLightNoActionBarGroup} =
88-
AndroidConfig.Styles;
87+
const {assignStylesValue, getAppThemeGroup} = AndroidConfig.Styles;
8988

9089
const {assignColorValue} = AndroidConfig.Colors;
9190

@@ -239,7 +238,7 @@ const setAndroidPickerStyles = (
239238

240239
styles = assignStylesValue(styles, {
241240
add: true,
242-
parent: getAppThemeLightNoActionBarGroup(),
241+
parent: getAppThemeGroup(),
243242
name: themeAttribute,
244243
value: `@style/${styleName}`,
245244
});

0 commit comments

Comments
 (0)