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.

react-native-maps lib update needed - Crash on Android Polyline, reverted on `0.29.2`

See original GitHub issue

Summary

In react-native-maps current expo supported version (0.28.0), there’s a crashing bug on using Polyline on Android. Using any Polyline will cause the crash, really.

There’s a workaround, by setting lineDashPattern, but that causes a different visual representation for the line.

The offending commit was removed on 0.29.2, so we need a minor update on Expo 42, preferably.

This bug was reported and discussed on: https://github.com/react-native-maps/react-native-maps/issues/3823

(“Error while updating property ‘lineCap’ of a view managed by: AIRMapPolyline”)

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

42

Environment

Expo CLI 4.7.3 environment info: System: OS: macOS 11.2.3 Shell: 5.8 - /bin/zsh Binaries: Node: 15.14.0 - ~/.volta/tools/image/node/15.14.0/bin/node Yarn: 1.22.10 - ~/.volta/tools/image/yarn/1.22.10/bin/yarn npm: 7.7.6 - ~/.volta/tools/image/node/15.14.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.8.3 - /Users/douglas/.rbenv/shims/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 23, 26, 27, 28, 29, 30 Build Tools: 21.1.2, 23.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3, 29.0.2, 29.0.3, 30.0.2 System Images: android-19 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-R | Google Play Intel x86 Atom IDEs: Android Studio: 3.0 AI-171.4408382 Xcode: 12.5/12E262 - /usr/bin/xcodebuild npmPackages: expo: ^42.0.0 => 42.0.0 react: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 react-navigation: ^4.4.3 => 4.4.4 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

Add any Polyline on Android using react-native-maps

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
christopherdrocommented, Jul 14, 2021

The offending commit was NOT included in v0.28.0. It was initially released with v0.29.0 and reverted in v0.29.2.

3reactions
byCedriccommented, Jul 13, 2021

Hi @douglaslondrina, thanks for writing in. Unfortunately, the maintainers from react-native-maps only released 0.29.x as an alpha/beta prerelease. Because of that, we can’t upgrade the version in Expo yet. One thing you can try is asking them to release a new 0.28.x as a stable version, without the offending commit (e.g. 0.28.1). If they do that, we can start the upgrade internally for Expo Go.

If you absolutely need this, I would recommend building with EAS. You can use 0.29.x in your dependencies and it would create a new build with that version, it also supports managed projects.

Hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-maps/CHANGELOG.md - UNPKG
The CDN for react-native-maps. ... Fixed crash for Android API level below 18 on isFromMockProvider.
Read more >
react-native-maps | Yarn - Package Manager
Programmatically Changing Region. One can change the mapview's position using refs and component methods, or by passing in an updated region prop. The...
Read more >
react-native-maps crash application on provider="google ...
I solved setting a style to marker containing width or height as you prefer, such as: <Marker key={marker.id} coordinate={marker.coordinate} ...
Read more >
React-native-maps NPM - npm.io
react -native-maps npm version. React Native Map components for iOS + Android. Contributing. This project is being maintained by a small group of...
Read more >
Source - GitHub
Changelog ## [1.3.2](https://github.com/react-native-maps/react-native-maps/compare/v1. ... with expo init ## 0.29.2 - (July 5, 2021) * Android: **Revert** ...
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