react native scrollbar position issue
scrollIndicatorInsets={{ right: 1 }}
Here is what the above code is Doing:
1. We’re setting the scroll view’s contentInset to { top: 1, left: 0, bottom: 1, right: 1 }.
2. We’re setting the scroll view’s scrollIndicatorInsets to { right: 1 }.
The contentInset is the padding around the content. The scrollIndicatorInsets is the padding around the scroll indicators.
The reason we’re setting the contentInset to { top: 1, left: 0, bottom: 1, right: 1 } is because we want to make sure that the scroll indicators are always visible.
The reason we’re setting the scrollIndicatorInsets to { right: 1 } is because we want to make sure that the right scroll indicator is always visible.
The reason we’re setting the contentInset to { top: 1, left: 0, bottom: 1, right: 1 } is because we want to make sure that the scroll indicators are always visible.
The reason we’re setting the scrollIndicatorInsets to { right: 1 } is because we want to make sure that the right scroll indicator is always visible.