Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda