Skip to content

Commit b3dcbd1

Browse files
committed
Fix type being overly restrictive.
1 parent f12e445 commit b3dcbd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

react-native/components/Hitbox/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from "react";
22
import {
33
LayoutChangeEvent,
44
MeasureOnSuccessCallback,
5+
StyleProp,
56
TouchableOpacity,
67
ViewStyle,
78
} from "react-native";
@@ -19,7 +20,7 @@ type Component = React.FunctionComponent<
1920
/**
2021
* Passed down to TouchableOpacity.
2122
*/
22-
readonly style?: ViewStyle;
23+
readonly style?: StyleProp<ViewStyle>;
2324

2425
/**
2526
* Passed to useMeasure.

0 commit comments

Comments
 (0)