Skip to content

Commit

Permalink
Fix tab onclick
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeHop committed May 10, 2021
1 parent 6e814d1 commit 27bdca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Swiper({style, data, isStaticPills, initialScrollIndex,
if (buttonsCoords[index]?.x !== e.x)
buttonsCoords[index] = e.nativeEvent.layout;
};
const onButtonPress = index => () => flatList.current?.scrollToIndex({index});
const onButtonPress = index => flatList.current?.scrollToIndex({index});

const onFlatListScroll = e => {
// update X
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-screens-swiper",
"version": "1.1.10",
"version": "1.1.11",
"description": "This lib. provide swiper view functionality with tab navigation on the top.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 27bdca1

Please sign in to comment.