Not compatible with Expo 44
See original GitHub issueDescribe the bug
Fails to build with Expo 44. This lib is mostly (hitting lots of the known Android bugs) working nicely for us with Expo 43, but after upgrading to Expo 44 the build fails
The following build commands failed:
› Compiling @react-native-mapbox-gl/maps Pods/react-native-mapbox-gl » RCTMGLPointAnnotationManager.m
› Compiling @react-native-mapbox-gl/maps Pods/react-native-mapbox-gl » RCTMGLPointAnnotation.m
❌ (node_modules/@react-native-mapbox-gl/maps/ios/RCTMGL/RCTMGLPointAnnotation.m:36:16)
34 | self.calloutView.representedObject = self;
35 | } else {
> 36 | [super insertReactSubview:subview atIndex:0];
| ^ no visible @interface for 'MGLAnnotationView' declares the selector 'insertReactSubview:atIndex:'
37 | }
38 | }
39 |
❌ (node_modules/@react-native-mapbox-gl/maps/ios/RCTMGL/RCTMGLPointAnnotation.m:45:16)
43 | self.calloutView = nil;
44 | } else {
> 45 | [super removeReactSubview:subview];
| ^ no visible @interface for 'MGLAnnotationView' declares the selector 'removeReactSubview:'
46 | }
47 | }
48 |
❌ (node_modules/@react-native-mapbox-gl/maps/ios/RCTMGL/RCTMGLPointAnnotation.m:54:12)
52 | [_map removeAnnotation:self];
53 | }
> 54 | [super reactSetFrame:frame];
| ^ no visible @interface for 'MGLAnnotationView' declares the selector 'reactSetFrame:'
55 | [self _setCenterOffset:frame];
56 | [self _addAnnotation];
57 | }
❌ (node_modules/@react-native-mapbox-gl/maps/ios/RCTMGL/RCTMGLPointAnnotation.m:130:14)
128 | - (MGLAnnotationView *)getAnnotationView
129 | {
> 130 | if (self.reactSubviews.count == 0) {
| ^ property 'reactSubviews' not found on object of type 'RCTMGLPointAnnotation *'
131 | // default pin view
132 | return nil;
133 | } else {
To Reproduce
- create new managed expo project
- follow install steps for react-native-mapbox-gl (https://github.com/react-native-mapbox-gl/maps/pull/1388#issuecomment-945917121)
- attempt to build app
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Expo SDK 44. Today we're announcing the release of…
SDK 44 includes React Native 0.64.3. ... (which is currently not compatible with react-native-reanimated ) or remove expo-updates to opt-out of updates.
Read more >[ SDK 44 ] Can't open app in expo go when update to ... - GitHub
Exception: Incompatible SDK version ". I test it on a iOS simulator still can't open. I've use eas build -p android to build...
Read more >Update Expo SDK from 44 to 45, 46 or 47 not working
I tryed several times to update the SDK Version in my project from 44 to 45,46 and 47. Each time I try to...
Read more >expo-updates - npm
Start using expo-updates in your project by running `npm i expo-updates`. There are 109 other projects in the npm registry using expo-updates.
Read more >Install in Expo project - NativeBase
Expo helps you to create universal (iOS, Android and Web) React Native apps with no build configuration. New Project. Existing Project.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works for me!
Bare react-native project but with some expo modules.
For anyone being in the same situation: here is the patch file for
patch-package
to be c/c. The patch is from the answer above from @schiller-manuel.The patch file
Should be fixed by #1672