mapViewController.getMyLocation returns undefined when called within onMapReady or onNavigationReady for iOS. #320
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
status: investigating
The issue is under investigation, which is determined to be non-trivial.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
For iOS, When the first time you land on the Navigation Screen and you call
getMyLocation
method, it returnsundefined
. Even if you go back to the Home screen and come back to the Navigation screen, it still returnsundefined
.Android works as expected.
Is there something im doing wrong or is this a bug?
Note* We are using @react-navigation/material-top-tabs for tabs. When the screen loads that has the tabs on it all tabs render which works ok for iOS however for Android it crashes the application, I do not have an example of this right now. Because of the crash I have to conditionally render the NavigationView map as seen in the example branch.
Environment details
Library version and other environment information:
OS type and version
Steps to reproduce
yarn start
yarn ios
oryarn android
Navigation
Button. Check logs for the following message.'Ryan - My location:', undefined
Home
button and then clickNavigation
again. Check logs for the following message.'Ryan - My location:', undefined
Code example
Example Branch
Stack trace
Thank you for your help!
The text was updated successfully, but these errors were encountered: