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

92
Visualizações
Custom scrollable view in React Native

I have this scenario where I need to use a flatlist within a scrollview but react native keeps on showing a warning which says, virtualizedLists should never be nested. So I resorted to keep the scrollview as a wrapper and use a view with a scrolling functionality(if possible). Anyone have any idea how to achieve such thing without using any 3rd party packages? Thanks in advance!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I have this problem in some of my apps.
One could restructure the code and add the components above and below the FlatList as header or footer components (ListHeaderComponent & ListFooterComponent).
Or one could simply tell React Native to ignore the error messages :P

I have not yet found a real problem that has occurred because I ignored the warning. But be aware as it is unsupported the behavior might change in the future.

If you want to ignore "VirtualizedLists should never be nested" error messages. You just have to add the code below in your App.tsx:

import { LogBox } from "react-native";

useEffect(() => {
    LogBox.ignoreLogs(["VirtualizedLists should never be nested"]);
});
about 4 years ago · Juan Pablo Isaza 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