When the app is opened on Android and the user reach a screen where tanstack-form is used the app crashes because str.replaceAll is being called when the form is mounted. str.replaceAll doesn't exist without hermes enabled on React-Native
Your minimal, reproducible example
Didn't have time to prepare a working example for a React-Native app
Steps to reproduce
FieldApi.update is being called on mount the form
getBy is called where str.replaceAll is used
The app crashes
Expected behavior
The app shouldn't crash, I fixed the problem with polyfill but I think you could probably easily change the use of replaceAll to avoid this Android issue
Describe the bug
When the app is opened on Android and the user reach a screen where tanstack-form is used the app crashes because
str.replaceAll
is being called when the form is mounted.str.replaceAll
doesn't exist without hermes enabled on React-NativeYour minimal, reproducible example
Didn't have time to prepare a working example for a React-Native app
Steps to reproduce
FieldApi.update
is being called on mount the formgetBy
is called wherestr.replaceAll
is usedExpected behavior
The app shouldn't crash, I fixed the problem with polyfill but I think you could probably easily change the use of
replaceAll
to avoid this Android issueHow often does this bug happen?
None
Screenshots or Videos
No response
Platform
TanStack Form adapter
None
TanStack Form version
v0.29.2
TypeScript version
No response
Additional context
No response