Fixed pointForCoordinate/coordinateForPoint Promises in iOS (#2039, #2061)#2150
Fixed pointForCoordinate/coordinateForPoint Promises in iOS (#2039, #2061)#2150rborn merged 1 commit intoreact-native-maps:masterfrom
pointForCoordinate/coordinateForPoint Promises in iOS (#2039, #2061)#2150Conversation
|
@alvelig 🐽 |
|
Hey there, I was actually looking at this same issue too before the holidays. Currently, the only test is for exactly this issue: https://github.com/lachenmayer/react-native-maps/blob/pointforcoordinate-bug/example/tests/PointForCoordinate.js In general, I was wondering if there is any interest in adding these kinds of tests - I feel like we could avoid a lot of these kinds of issues with a test suite which works very similarly to how React Native itself is tested. |
|
LGTM @lachenmayer I was thinking about tests too, but did not know the best way. Let's try to add example tests for this, so we can ask contributors to make tests for their PRs. |
|
Any updates on this? It has been almost a month since there was any traffic on this and this is currently a blocking issue for me. |
Does any other open PR do the same thing?
No
What issue is this PR fixing?
Changes to these functions that did not reflect in both providers. Currently the API is broken - expecting callback in GoogleMaps and returning Promise in Air. While the docs says it returns Promise.
How did you test this PR?
Written simple code with
awaitto print results of both functions, in Air and Google provider.