From eea4a3c4a99cf1dbb44bf31fc0fb18f7e32d3f08 Mon Sep 17 00:00:00 2001 From: aleqsio Date: Wed, 5 Oct 2022 16:06:30 +0200 Subject: [PATCH] Update event type in expo home --- home/screens/GeofencingScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/screens/GeofencingScreen.tsx b/home/screens/GeofencingScreen.tsx index 6ec1c75cf09f2..16c8a40c0b965 100644 --- a/home/screens/GeofencingScreen.tsx +++ b/home/screens/GeofencingScreen.tsx @@ -13,7 +13,7 @@ import { Text, View, } from 'react-native'; -import MapView, { Circle, MapEvent } from 'react-native-maps'; +import MapView, { Circle, MapPressEvent } from 'react-native-maps'; import NavigationEvents from '../components/NavigationEvents'; import Button from '../components/PrimaryButton'; @@ -150,7 +150,7 @@ export default class GeofencingScreen extends React.Component { } }; - onMapPress = ({ nativeEvent: { coordinate } }: MapEvent) => { + onMapPress = ({ nativeEvent: { coordinate } }: MapPressEvent) => { this.setState( (state) => ({ geofencingRegions: [