You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Currently when we add component into `GestureDetector`, we add `collapsable={false}` to its props. However, it [does nothing on web](necolas/react-native-web#1703), so we can safely remove it. This way we can get rid of the following error:
```
Warning: Received `false` for a non-boolean attribute `collapsable`.
```
Closes#3201
## Test plan
<details>
<summary>Tested on the following code:</summary>
```jsx
import {
GestureHandlerRootView,
GestureDetector,
Gesture,
} from 'react-native-gesture-handler';
import { View } from 'react-native';
import { Svg, Circle } from 'react-native-svg';
import { useState, useCallback } from 'react';
export default function App() {
const [circleFill, setCircleFill] = useState('blue');
const switchCircleColor = useCallback(
() => setCircleFill((old) => (old === 'blue' ? 'brown' : 'blue')),
[setCircleFill]
);
const tapGestureCircle = Gesture.Tap().runOnJS(true).onEnd(switchCircleColor);
return (
<GestureHandlerRootView style={{ flex: 1, paddingTop: 200 }}>
<View style={{ padding: 10, borderWidth: 1, alignSelf: 'flex-start' }}>
<Svg width={200} height={200}>
<GestureDetector gesture={tapGestureCircle}>
<Circle r={200} cx={210} cy={210} fill={circleFill} />
</GestureDetector>
</Svg>
</View>
</GestureHandlerRootView>
);
}
```
</details>
0 commit comments