From f9ff975ee1f49196ad2cbee9d82e20616da03b0b Mon Sep 17 00:00:00 2001 From: ryo-rm <6457344+ryo-rm@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:27:12 +0900 Subject: [PATCH] fix: MapboxGL.UserTrackingModes variable is undefined --- javascript/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/index.js b/javascript/index.js index a53e23344..07f7b324e 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -1,6 +1,6 @@ import { NativeModules } from 'react-native'; -import { Camera, UserTrackingModes } from './components/Camera'; +import { Camera, UserTrackingMode } from './components/Camera'; import { Atmosphere } from './components/Atmosphere'; import MapView from './components/MapView'; import Light from './components/Light'; @@ -45,7 +45,7 @@ const MapboxGL = { ...NativeModules.MGLModule }; // static methods MapboxGL.requestAndroidLocationPermissions = requestAndroidLocationPermissions; -MapboxGL.UserTrackingModes = UserTrackingModes; +MapboxGL.UserTrackingModes = UserTrackingMode; // components MapboxGL.MapView = MapView;