form
form copied to clipboard
str.replaceAll is not a function on react-native (Android)
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-Native
Your minimal, reproducible example
Didn't have time to prepare a working example for a React-Native app
Steps to reproduce
-
FieldApi.updateis being called on mount the form -
getByis called wherestr.replaceAllis 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
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
- OS: Android (React-Native)
- Version: 0.29.2
TanStack Form adapter
None
TanStack Form version
v0.29.2
TypeScript version
No response
Additional context
No response
This is super helpful, thank you! We'll get this patched
Sorry for how long this took - should be fixed now!