question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera flyTo, *To methods are gone after fresh install.

See original GitHub issue

I’m on RN 0.59.x

I just installed v 7.0.0 of this library.

Last week camera.flyTo(coordinates) would do what it should.

Now I just get camera.flyTo is not a function and undefined .

I changed nothing on my end and just reinstalled this library.

I looked into the library code… ios/RCTMGL/RCTMGLCamera.h has no reference at all to any kind of flyTo method. In fact, MANY of the camera methods defined in the ios API are just… not there.

What am I missing here? What has changed?

As a side note, it was working on Android last week, now it is a black screen.

This is really worrying as I’m about to launch an app that heavily relies on this library.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
allthetimecommented, Jul 23, 2019

Ok. The solution was to clean the metro haste map and cache.

I manually deleted everything related to metro in $TMPDIR

and then did npm cache clean --force

I guess metro was remembering the old version of mapboxgl regardless of how much upgrades and downgrades and uninstalls and installs i did.

0reactions
allthetimecommented, Jul 23, 2019

@mfazekas

According to the package.json everything is up to date, but camera.flyTo does not work on either android or ios.

I can see it defined in

./javascript/components/Camera.js

flyTo(coordinates, animationDuration = 2000) ...

and my camera reference, when logged, shows an instance of Camera.

But none of those methods are available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Camera flyTo, *To methods are gone after fresh install. #271
I'm on RN 0.59.x I just installed v 7.0.0 of this library. Last week camera.flyTo(coordinates) would do what it should.
Read more >
Camera issues after fresh install - Microsoft Community
I've been having problems using my camera after i reset my computer and reinstalled ... by uninstalling all camera related drivers and installing...
Read more >
API Reference | Mapbox GL JS
The Map object is the map on your page. It lets you access methods and properties for interacting with the map's style and...
Read more >
Viewer - Cesium Documentation
Flies the camera to the provided entity, entities, or data source. If the data source is still in the process of loading or...
Read more >
User Manual - DJI Mini 3 Pro
Fly to their mobile device when using DJI RC-N1 remote controller. The Android version of DJI Fly is compatible with Android v6.0 and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found