Open isaachinman opened 4 months ago
Update: after digging deeper, this was indeed user error. The new Expo router exposes error boundaries, and our team had incorrectly used Restyle theme elements which expected a ThemeProvider, but none was present.
I think all that needs to be done here is to surface the error in a much more straightforward way. Perhaps just throw a straightforward "No ThemeProvider" error?
Current behavior
I was just notified of a fatal error via Sentry. The stack trace is below.
It's probably relevant to note that this crash occurred immediately after a user touch event:
Touch event within element: Text
.Expected behavior
The
@shopify/restyle
package should never fatally crash a RN app, regardless of user error or incorrect configuration.I suspect this crash was somehow due to incorrect configuration, but I have no idea how/where, and moreover the crash only occurred on a single user device, across hundreds of sessions/devices.
Stack trace
To Reproduce
TBD.
Platform:
Environment
@shopify/restyle@v2.4.2