callstack / callstack/react-native-pager-view

Does not work within a ScrollView, bad performance when rendering multiple list components with real time data

Abierto
#995 2 comentarios 10 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
3.4k
Forks
476
Merge medio
10 d 21 h
PR fusionados (30 d)
2

Descripción

## Environment

react-native @ 0.79.1
react-native-pager-view @ 6.7.1

## Description

Since @MrRefactor requested a new issue to be created (https://github.com/callstack/react-native-pager-view/issues/784), here it is. Compared to version `7.0.0.rc0`, the current implementation performs much worse, especially in the case of a pager with multiple list components that have many rows and real-time data updates within. Also, the ScrollView bug persists, we are still not able to scroll a ScrollView when a Pager is rendered inside of it unless we perform the scroll gesture outside of the pager. I don't understand why support for the ScrollView based implementation was dropped as it performed perfectly well and IMO it should replace the current one. Honestly, based on the many threads and reports about this bug, I feel like this issue is being neglected.

## Reproducible Demo

```
import React from 'react';
import { ScrollView, StyleSheet, View, Text } from 'react-native';
import PagerView from 'react-native-pager-view';

const MyPager = () => {
return (



First page


Second page



);
};

const styles = StyleSheet.create({
pagerView: {
flex: 1,
},
});

export default MyPager;
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el ejemplo reproducible de MyPager en el issue usando React Native 0.79.1 y react-native-pager-view 6.7.1. Investiga los casos de PagerView dentro de ScrollView y de actualización en tiempo real de múltiples listas; se considera terminado cuando el ScrollView padre puede desplazarse al iniciar el gesto sobre el pager y mejora el rendimiento del renderizado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react-native
Área
mobile, performance
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.