Expo SDK 36 Android standalone frequent crashes on startup

When opening a built version or android SDK, app crashes on startup because of shadow node related errors.

Logs from expo client when opening a build gives errors like:
Error while updating property ‘X’ in shadow node of type: RCTView…
(for example, Error while updating property ‘marginRight’ in shadow node of type: RCTView)

Looking logs from Android Studio when debugging APK, they give next errors starting with:
java.lang.IllegalArgumentException method com.facebook.react.uimanager, for example

method com.facebook.react.uimanager.LayoutShadowNode.setFlex argument 1 has type float, got null

method com.facebook.react.uimanager.LayoutShadowNode.setShouldNotifyOnLayout argument 1 has type boolean, got java.lang.Float

method com.facebook.react.uimanager.LayoutShadowNode.setPaddings argument 1 has type int, got null

or with method com.facebook.react.views

method com.facebook.react.views.text.ReactBaseTextShadowNode.setFontSize argument 1 has type float, got com.facebook.react.bridge.DynamicFromObject

method com.facebook.react.views.text.ReactBaseTextShadowNode.setFontFamily argument 1 has type java.lang.String, got java.lang.Integer

method com.facebook.react.views.text.ReactBaseTextShadowNode.setAllowFontScaling argument 1 has type boolean, got null

It doesn’t crash all the time, chances are roughly 50/50.
It works normally all the time when using the app locally from a metro builder.

It doesn’t crash when I’m logged out (the first page is sign-in form, and when logged in, it sends you directly to a page with a google map and only in this situation app crashes, so maybe that’s also relevant)

Hi. This looks like the issue with Dark Mode on Android that has just been fixed:

1 Like

Yes, that fixed the problem. Thank you :slight_smile:

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.