Skip to content

James-Whitfield/rn-formdata-issue

Repository files navigation

React Native Form Data Issue

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.

Reproduction Steps

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 i to 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 numberOfKeyValuePairs values in index.tsx to see if crash will happen.

Error Report Example

Error report

About

Repo to show issue with react native form data on IOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors