Skip to content

Commit 27bdca1

Browse files
committed
Fix tab onclick
1 parent 6e814d1 commit 27bdca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/Swiper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Swiper({style, data, isStaticPills, initialScrollIndex,
2222
if (buttonsCoords[index]?.x !== e.x)
2323
buttonsCoords[index] = e.nativeEvent.layout;
2424
};
25-
const onButtonPress = index => () => flatList.current?.scrollToIndex({index});
25+
const onButtonPress = index => flatList.current?.scrollToIndex({index});
2626

2727
const onFlatListScroll = e => {
2828
// update X

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-screens-swiper",
3-
"version": "1.1.10",
3+
"version": "1.1.11",
44
"description": "This lib. provide swiper view functionality with tab navigation on the top.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)