Skip to content

Commit 3b8d478

Browse files
authored
react-native-gesture-handler to 2.5.0 (#2108)
1 parent b88a0d6 commit 3b8d478

File tree

6 files changed

+1
-6
lines changed

6 files changed

+1
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"react-autobind": "^1.0.6",
9595
"react-dom": "^15.4.2",
9696
"react-native": "0.66.4",
97-
"react-native-gesture-handler": "2.4.1",
97+
"react-native-gesture-handler": "2.5.0",
9898
"react-native-haptic-feedback": "^1.11.0",
9999
"react-native-linear-gradient": "2.5.6",
100100
"react-native-navigation": "^7.19.1",

src/components/drawer/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ class Drawer extends PureComponent<DrawerProps> {
331331
});
332332

333333
return (
334-
// @ts-expect-error related to missing children type started on react 18
335334
<RectButton
336335
key={index}
337336
testID={item.testID}

src/components/sortableGridList/SortableItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ function SortableItem(props: PropsWithChildren<SortableItemProps & ReturnType<ty
161161

162162
return (
163163
<View reanimated style={[style, animatedStyle]} onLayout={onLayout}>
164-
{/* @ts-expect-error related to children type issue that started on react 18 */}
165164
<GestureDetector gesture={gesture}>
166165
<View>{props.children}</View>
167166
</GestureDetector>

src/components/sortableList/SortableListItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ const SortableListItem = (props: Props) => {
146146
});
147147

148148
return (
149-
// @ts-expect-error related to children type issue that started on react 18
150149
<GestureDetector gesture={dragAfterLongPressGesture}>
151150
<View reanimated style={draggedAnimatedStyle} onLayout={index === 0 ? onItemLayout : undefined}>
152151
{children}

src/components/tabController/TabBarItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ export default function TabBarItem({
208208
});
209209

210210
return (
211-
// @ts-expect-error caused by @types/react v18 and should be fixed by gesture-handler lib
212211
<GestureDetector gesture={gesture}>
213212
<View
214213
reanimated

src/incubator/panView/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ const PanView = (props: Props) => {
166166
return (
167167
// TODO: delete comments once completed
168168
<View ref={containerRef} style={containerStyle} onLayout={onLayout}>
169-
{/* @ts-expect-error missing children TS error started with react 18 */}
170169
<PanGestureHandler onGestureEvent={isEmpty(directions) ? undefined : onGestureEvent}>
171170
<Animated.View
172171
// !visible.current && styles.hidden is done to fix a bug is iOS

0 commit comments

Comments
 (0)