callstack / callstack/react-native-pager-view

could it possible that ViewPager do not need to set a style with a specific height?

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

Descripción

# Question
the example in `readme` provide a `style={{ flex: 1 }}` to `ViewPager`(like bellow),and it occupy all screen height; but in my case, the pager's height is not specific,it depends; but without a specific height, `ViewPager` show nothing

so, could the height of `ViewPager` be flexible ?
```
import React from 'react';
import {StyleSheet, View, Text} from 'react-native';
import ViewPager from '@react-native-community/viewpager';

const MyPager = () => {
return (


First page


Second page


);
};

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

El issue apunta al ejemplo de ViewPager del README, pero no menciona ningún archivo de implementación ni ninguna prueba. Empieza reproduciendo el ejemplo con una altura del elemento padre dependiente del contenido e inspecciona el comportamiento del layout de ViewPager. Se considera completado cuando se haya establecido si se admiten alturas flexibles y se haya documentado o verificado el comportamiento resultante.

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

Evaluación

Stack tecnológico
react-native
Área
mobile
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
28/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.