Closed fredrikburmester closed 3 weeks ago
Thanks, fixed in 1.1.1
. I'm gonna open a PR on the Expo repo, the ConfigPlugin
type is incorrect.
EDIT: Started here, will see with the expo team if this is the best way to do this as the PR could quickly become huge.
Before submitting a new issue
Bug summary
Description
When using the
withAndroidEdgeToEdgeTheme
plugin, an error occurs if theandroid
property is not present in theprops
object when running expo prebuild.Error Message
TypeError: [android.styles]: withAndroidStylesBaseMod: Cannot read properties of undefined (reading 'android')
Steps to Reproduce
withAndroidEdgeToEdgeTheme
plugin in an Expo projectexpo prebuild
Proposed Fix
I've created a patch that adds a check for the
android
property and provides a default empty object if it's not present. Here's the patch:Library version
1.1.0
Environment info
Steps to reproduce
withAndroidEdgeToEdgeTheme
plugin in an Expo projectexpo prebuild
Reproducible sample code