Skip to content

Commit 7aae922

Browse files
committed
Fix warning in MapView tests
1 parent 755feac commit 7aae922

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/maps/src/__tests__/MapView.test.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jest.mock("../components/react-native-maps", () => {
1919
animateCamera = mockAnimateCamera;
2020
}
2121

22-
const Marker = (props: any) => {
23-
return <>{props.children}</>;
24-
};
22+
class Marker extends React.Component {
23+
render(): React.ReactNode {
24+
return <>{this.props.children}</>;
25+
}
26+
}
2527

2628
return {
2729
__esModule: true,

0 commit comments

Comments
 (0)