Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
formdata.entries() not a function in react native

i am adding a key and value to formdata, and when i try to console.log() it says data.entries not a function. i tried consoling it directly it shows like this

{
"_parts": [
    [
        "referral_product[0]",
        "rgvsrh_09"
    ]
]

}

here is my code

 var formdata= new FormData();
  formdata.append('referral_product[0]', `${props.Refferel}_${props.product_id}`);
  for (var pair of formdata.entries()) {
    console.log(pair[0]+ ', ' + pair[1]); 
}

here is the minimum reproducable code https://drive.google.com/file/d/1S2MsrRKE7R6vg26Lmd5Wx5FQ01kRvTf1/view?usp=sharing

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!