Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
Using AWS S3 API with react native

I am studying React Native, I played with AWS S3 before, I have set some images in my buckets, I want to do a GET, from my code, and that images are set to private.

I want to call S3 API using the React Native way just like I did on my Angular2 Project. I checked online, only found that there are third party plugin used for upload images to S3.

How would I be able to create a new S3 object in react nativevar s3 = new AWS.S3(); and call a function like s3.listBuckets(function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); or simply get a private image on my bucket.

Many thanks!

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This functionality is now provided in the new AWS Amplify library on the AWS official repo: https://github.com/aws/aws-amplify

You can use the storage module: https://github.com/aws/aws-amplify/blob/master/media/storage_guide.md

import { Storage } from 'aws-amplify'
Storage.configure( { level: 'private' } );
Storage.get('myfile.gif');

This is an example of a private image but you can do more with the library. It will also use credentials for the user in Authenticated or UnAuthenticated state from the Auth module which integrates with Amazon Cognito.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda