Skip to content

Commit

Permalink
remove onviewableItemsChanged callback on web
Browse files Browse the repository at this point in the history
  • Loading branch information
metkm committed Jan 17, 2025
1 parent c296849 commit 260ed8e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/lines/line/LineBusStops.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Ionicons from '@react-native-vector-icons/ionicons'
import { FlashList, FlashListProps, ViewToken, ListRenderItem } from '@shopify/flash-list'
import { useCallback, useEffect, useMemo, useRef } from 'react'
import { StyleSheet, View, ViewStyle } from 'react-native'
import { Platform, StyleSheet, View, ViewStyle } from 'react-native'
import Animated, {
runOnJS,
useAnimatedReaction,
Expand Down Expand Up @@ -228,8 +228,15 @@ export const LineBusStops = ({ lineCode, variant = 'solid' }: LineBusStopsProps)
fadingEdgeLength={40}
onScrollBeginDrag={handleScrollDragStart}
onMomentumScrollEnd={handleScrollMomentumEnd}
onViewableItemsChanged={handleViewableItemsChanged}
drawDistance={1}
{
...Platform.OS === 'web'
? {
onViewableItemsChanged: handleViewableItemsChanged,
}
: {}
}

// viewabilityConfig={{
// minimumViewTime: 200,
// waitForInteraction: true,
Expand Down

0 comments on commit 260ed8e

Please sign in to comment.