callstack / callstack/react-native-pager-view

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

オープン
#154 コメント 4 件 リアクション 6 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
3.4k
フォーク
476
平均マージ
10日 21時間
マージ済み PR(30日)
2

説明

# 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,
},
});
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue は README の ViewPager 例を指していますが、実装ファイルもテストも指定していません。まず、コンテンツに依存する親の高さで例を再現し、ViewPager のレイアウト動作を調査してください。柔軟な高さがサポートされているかを明らかにし、その結果の動作を文書化または検証できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
mobile
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。