Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Expose the style prop accepted by the Pager component #1260

Merged

Conversation

simonbuerger
Copy link
Contributor

Pager component already has a style prop, this just exposes it to the end user

Motivation

I have a use case where part of the custom tab bar needed to overlap part of the scene. The only way to do it would be to add a negative top margin to the Pager view, however the style prop that is exposed on the Pager view is not exposed on the TabView so currently I can't achieve this use case.

@github-actions
Copy link

Hey simonbuerger! Thanks for opening your first pull request in this repo. If you haven't already, make sure to read our contribution guidelines.

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks good 👍🏻

@okwasniewski okwasniewski merged commit 77dec4f into satya164:main Sep 8, 2022
szymonrybczak pushed a commit to szymonrybczak/react-native-tab-view that referenced this pull request Sep 24, 2022
okwasniewski pushed a commit that referenced this pull request Sep 30, 2022
* feat: add disableChangeTabAnimation to TabView

* refactor: change prop name

* fix: update dependencies array

* feat: add animationEnabled on web

* feat: expose the style prop accepted by the Pager component (#1260)

* fix: animation when swiping on web

* fix: reset pendingIndexRef & remove unncecessary checks

Co-authored-by: Szymon Rybczak <szymon.rybczak@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants