There appears to be an issue with react native when sending formdata as part of an api request on IOS physical devices and simulators.
There is a previous closed issue with no solution provided here
The issue only appears when the FormData object has over 300 keys.
This repo has been created to reproduce the issue. A single button has been added to the home screen which will cause the crash.
This issue does not occur on any android device tested.
You must be able to run the app on an IOS simulator of physical device so a Mac will be required.
- clone repo
- install node.js (18.20.2)
- run
npm ito install dependencies from repo root folder. - follow expo setup for ios devices here
- run ios app
npm run ios - Click only button on home screen
- App will crash
- Try different
numberOfKeyValuePairsvalues inindex.tsxto see if crash will happen.
