Skip to content

Commit

Permalink
fix(marker): remove spamming warning from MapMarker (react-native-map…
Browse files Browse the repository at this point in the history
  • Loading branch information
sharvilak11 committed Apr 18, 2023
1 parent 13c4aec commit 8825312
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MapMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@ export class MapMarker extends React.Component<MapMarkerProps> {
* See https://reactnative.dev/docs/new-architecture-library-intro#migrating-off-setnativeprops
*/
setNativeProps(props: Partial<NativeProps>) {
console.warn(
'setNativeProps is deprecated and will be removed in next major release',
);
// setNativeProps is deprecated and will be removed in next major release
// @ts-ignore
this.marker.current?.setNativeProps(props);
}
Expand Down

0 comments on commit 8825312

Please sign in to comment.