Skip to content

Commit 6d12e0c

Browse files
committed
[task] edit warning ts style object type
1 parent 06474a0 commit 6d12e0c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/gesture/gesture-responder.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { FC, useRef } from 'react';
2-
import { PanResponder, StyleSheet, View } from 'react-native';
2+
import { PanResponder, View } from 'react-native';
33
import type { TouchPoint } from '../types';
44
import type { IGestureProps } from './types';
55

@@ -35,9 +35,17 @@ const GestureHandler: FC<IGestureProps> = ({
3535
},
3636
});
3737

38+
// @ts-ignore
3839
return (
3940
<View
40-
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+
}}
4149
{...panResponder.panHandlers}
4250
/>
4351
);

0 commit comments

Comments
 (0)