We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06474a0 commit 6d12e0cCopy full SHA for 6d12e0c
src/gesture/gesture-responder.tsx
@@ -1,5 +1,5 @@
1
import React, { FC, useRef } from 'react';
2
-import { PanResponder, StyleSheet, View } from 'react-native';
+import { PanResponder, View } from 'react-native';
3
import type { TouchPoint } from '../types';
4
import type { IGestureProps } from './types';
5
@@ -35,9 +35,17 @@ const GestureHandler: FC<IGestureProps> = ({
35
},
36
});
37
38
+ // @ts-ignore
39
return (
40
<View
- style={{ ...StyleSheet.absoluteFill, ...{ backgroundColor: 'transparent' } }}
41
+ style={{
42
+ backgroundColor: 'transparent',
43
+ position: 'absolute',
44
+ left: 0,
45
+ right: 0,
46
+ top: 0,
47
+ bottom: 0,
48
+ }}
49
{...panResponder.panHandlers}
50
/>
51
);
0 commit comments