# Unable to get the BlueDot to work on v6

**URL:** <https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456>\
**Category:** Mappedin SDK for React Native\
**Tags:** react-native\
**Created:** [October 15, 2025, 3:11am UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456 "2025-10-15T03:11:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kramakant](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@kramakant](https://community.mappedin.com/u/kramakant)\
**Post date:** [October 15, 2025, 3:11am UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/1 "2025-10-15T03:11:01Z")

</div>

Trying to get the BlueDot to work within a React native app (have gotten it to work on React Web, without any issues). Below is the simple implementation, based on documentation and one of the predefined map. Attached is the error I get. Any help is much appreciated, feeling stuck. I have installed @mappedin\*\*/blue-dot.\*\*

import React, { useEffect, useCallback } from ‘react’;  
import { View, Text, TouchableOpacity } from ‘react-native’;  
import { MapView, useMap } from ‘@mappedin/react-native-sdk’;  
import { useBlueDot, useBlueDotEvent } from ‘@mappedin/blue-dot/rn’;

export default function App() {

return (  
\<MapView mapData={{  
key: “mik\_yeBk0Vf0nNJtpesfu560e07e5”,  
secret: “mis\_2g9ST8ZcSFb5R9fPnsvYhrX3RyRwPtDGbMGweCYKEq385431022”,  
mapId: “64ef49e662fd90fe020bee61”,  
}}\>  
);  
}

function BlueDotDisplay() {  
// All methods are async and return Promises  
const {  
isReady,  
isEnabled,  
state,  
position,  
floor,  
following,  
accuracy,  
heading,  
enable,  
disable,  
update,  
follow,  
unfollow  
} = useBlueDot();

// Listen for position updates  
useBlueDotEvent(‘position-update’, useCallback((event) =\> {  
console.log(‘Position updated:’, event.coordinate, event.floor);  
}, ));

// Listen for state changes  
useBlueDotEvent(‘state-change’, useCallback((event) =\> {  
console.log(‘State changed:’, event.state);  
}, ));

// Listen for follow mode changes  
useBlueDotEvent(‘follow-change’, useCallback((event) =\> {  
console.log(‘Follow mode:’, event.following);  
}, ));

useEffect(() =\> {  
if (isReady && !isEnabled) {  
// All methods are async - use await or .then()  
enable({  
radius: 15,  
color: ‘#ff0000’,  
watchDevicePosition: false  
});  
}  
}, [isReady, isEnabled, enable]);

const handleUpdatePosition = useCallback(async () =\> {  
try {  
// Update position manually  
await update({  
latitude: 43.6532,  
longitude: -79.3832,  
accuracy: 5,  
heading: 90,  
floorOrFloorId: floor  
});

```auto
  // Enable follow mode
  await follow('position-and-heading', {
    zoomLevel: 19
  });
} catch (error) {
  console.error('Failed to update position:', error);
}

```

}, [update, follow, floor]);

return (

Is Ready: {isReady ? ‘Yes’ : ‘No’}  
Is Enabled: {isEnabled ? ‘Yes’ : ‘No’}  
State: {state}  
Following: {following ? ‘Yes’ : ‘No’}  
{position && (  
Position: {position.latitude.toFixed(4)}, {position.longitude.toFixed(4)}  
)}  
{accuracy && Accuracy: {accuracy.toFixed(1)}m}  
{heading && Heading: {heading.toFixed(0)}}  
Update Position & Follow  
);  
}

 ![Screenshot 2025-10-15 at 8.37.56 AM](https://canada1.discourse-cdn.com/flex004/uploads/mappedin/original/1X/06489d21077a35edcfb29157b9a0c23d8cc8ec58.png)

---

<div class="post-metadata">

**Author:** ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)\
**Post date:** [October 16, 2025, 2:26pm UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/2 "2025-10-16T14:26:35Z")

</div>

Thank you for the detailed report. I’m able to reproduce this behaviour and am investigating it with our development team.

---

<div class="post-metadata">

**Author:** ![kramakant](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@kramakant](https://community.mappedin.com/u/kramakant)\
**Post date:** [October 16, 2025, 2:56pm UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/3 "2025-10-16T14:56:44Z")

</div>

Thanks for the quick response, looking forward to the resolution.

---

<div class="post-metadata">

**Author:** ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)\
**Post date:** [October 21, 2025, 7:34pm UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/4 "2025-10-21T19:34:36Z")

</div>

We have just released updates to resolve this issue. To fix, please upgrade to:

```auto
"@mappedin/blue-dot": "6.0.1-beta.58",
"@mappedin/mappedin-js": "^6.1.1",
"@mappedin/react-native-sdk": "^6.1.1",

```

Let me know if you run into any issues.

---

<div class="post-metadata">

**Author:** ![kramakant](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@kramakant](https://community.mappedin.com/u/kramakant)\
**Post date:** [October 22, 2025, 2:03pm UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/5 "2025-10-22T14:03:30Z")

</div>

I confirm that the above changes fix the issue I was facing. Many thanks for the quick turnaround.

If possible, I request the documentation to be updated as well

> **[Migration Guide | Mappedin](https://developer.mappedin.com/react-native-sdk/migration-guide)**
>
> Mappedin SDK for React Native version 6.0 is a major release that includes a number of changes to the SDK. Mappedin SDK for React Native v6 uses a GeoJSON-based rendering engine, rebuilt from the ground up. It works in unison with MapLibre which...

The below references don’t seem to be relevant to the new way of accessing BlueDot.

// Create a new BlueDot instance with the MapView  
const blueDot = new BlueDot(mapView);

Also, the sample code at the below link does not work as useMapData is not available anymore.

[https://www.npmjs.com/package/@mappedin/blue-dot](https://www.npmjs.com/package/@mappedin/blue-dot)

Thanks,

Ramakant

---

<div class="post-metadata">

**Author:** ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)\
**Post date:** [October 22, 2025, 2:24pm UTC](https://community.mappedin.com/t/unable-to-get-the-bluedot-to-work-on-v6/456/6 "2025-10-22T14:24:03Z")

</div>

Good catch, I’ll get that updated.
