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

131
Views
Unexpected reserved word 'await' for react native

Hi theres error on paypal for react native. I got this code from a documentation for paypal-react-native. The code is not working for some reason Here is the Code

const {
    nonce,
    payerId,
    email,
    firstName,
    lastName,
    phone
  } = await requestOneTimePayment(
    token,
    {
      amount: '5',
      currency: 'GBP',
      shippingAddressRequired: false,
      userAction: 'commit',   
      intent: 'authorize', 
    }
  );
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

await is a promise that you are returning a value, and the rest of your code will not run until it has completed.

It can only be used within asynchronous functions.

async function asyncCall() {
  console.log('calling');
  const result = await resolveAfter2Seconds();
  console.log(result);
  // expected output: "resolved"
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function

about 4 years ago · Juan Pablo Isaza Report
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!