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

Fix PagerDotIndicator Container Taking Up Entire Width of View on iOS

Open kas opened this issue 5 years ago • 1 comments

This fixes an issue on iOS where the container holding the dots takes up the entire width to the left and right of the dots. Before this fix, the container would block any elements that are rendered to the left and right of the dots. After this fix, the container shrinks down to only occupy the space that the dots occupy.

Here's some images showing the issue using the React Native Inspector:

Before

image

After

image

kas avatar May 28 '19 22:05 kas

Realized we need to keep position: 'absolute' or it interrupts how far down other elements can render.

kas avatar May 28 '19 22:05 kas