React-Native-ViewPager icon indicating copy to clipboard operation
React-Native-ViewPager copied to clipboard

Fit ViewPager height to content without setting fixed height

Open FaBeyyy opened this issue 7 years ago • 1 comments

Is there a way of setting the ViewPager height to the content height? I tried flex: 0 but it just renders nothing.

<View style={styles.ViewPagerContainer}>
                <ViewPager
                    onPageScroll={e => this.tryLoadMoreEventsOnEndReached(e.position, this.props.eventList)}
                    style={styles.ViewPager}>
                    {mapToEventItem(this.props.eventList.results, this.props.navigator)}
                </ViewPager>
            </View>`

FaBeyyy avatar Jan 09 '18 19:01 FaBeyyy

anyone could give us a workaround or something? thanks!

lefrankleal avatar Jul 06 '20 05:07 lefrankleal