callstack / callstack/react-native-pager-view

(Android) Views position is not correctly when rotate the screen

Open
#471 5 comments 0 reactions 0 assignees View on GitHub
android Resolution: Needs Repro
Dominant language
TypeScript
Stars
3.4k
Forks
476
Avg merge
10d 21h
Merged PRs (30d)
2

Description

## Environment
The repo example.

## Description
When you set prop `setOffscreenPageLimit`(ex: setOffscreenPageLimit=1).The view is not displayed correctly after rotating the device.

![Screenshot](https://user-images.githubusercontent.com/37471959/139384385-2a744994-3b8f-4622-b1d0-0072bec55daa.jpeg)

## Reproducible Demo
1.Set prop `setOffscreenPageLimit={xxx}`
2.Swipe to second view.
3.Turn on automatic rotation on the device.
4.Rotate the device.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.