TypeError: Cannot read properties of undefined (reading 'android') when running expo prebuild #43
Closed
3 tasks done
Labels
bug
Something isn't working
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
The text was updated successfully, but these errors were encountered: