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

180
Visualizações
React native flatlist pull from bottom functionality

I know how to implement a "pull to refresh" from the top of the list functionality using the onRefresh prop,is there a way to do something similar for the bottom end of the list,so when i "pull" from the bottom would trigger a function ?

The onEndReached prop does'nt really work as i would like,since it runs a function everytime you reach the end of the list,i dont want that,i want nothing to run unless i "pull" from the bottom.

I tried to invert the flatlist using the invert prop,which makes use of the onRefresh prop when pulling from the bottom(its upside down),and it works perfectly,but i want to have them both.

Any ideas ?

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

0

Found it,i just added a negative value to onEndReachedThreshold prop,so onEndReachedThreshold={-0.5} will run the onEndReached function when "pulling" to as much as half of the flatlist height.

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