Closed thomaskbird closed 3 years ago
Can you please try the latest version that was just published (1.0.2)? Also please review the new notes in the ios specific instructions - https://github.com/homeeondemand/react-native-mapbox-navigation#ios-specific-instructions
@rossmartin Working on retrying with a completely clean install and only barebones code. Do you know are there any specific caveats to using your package with expo?
I've never used expo but I'm pretty sure most native modules will not work with it (including this one). It appears that "ejecting" might provide a way - https://docs.expo.io/expokit/eject/
@rossmartin I started the project with expo, but I saw the docs on ejecting and then auto-linking and tried that. I'm sure its a configuration issue. Is there a way to pay for a few hours of direct support like phone call support or webex?
Hey sorry I have been very busy after moving into a new house and with my day job. How far along are you in this expo project? I recommend creating a vanilla react native project and porting over any existing work. I apologize that I don't have time to help directly with this right now. This is my recommendation until I can see what it will take to get an expo project running with this (I have my doubts that it will though).
@rossmartin hey no worries I appreciate that, I’m kind of in the same boat just moved to. That’s what I did, I started from scratch a vanilla react native project left out everything except trying to get this package plugged in and working by itself and then I intended to add the other screens from my other app back into this vanilla project. I’m not getting this same error but now I’m getting other errors still relating to the same type of thing, mostly using native functionality.
Here is my solution to fix the same error. Hope it helps
Link the package manually
npx react-native link @homee/react-native-mapbox-navigation
or
react-native link @homee/react-native-mapbox-navigation
Check if this line appear on your Podfile:
pod 'react-native-mapbox-navigation', :path => '../node_modules/@homee/react-native-mapbox-navigation'
Run pod install
in ios folder
Try to build again.
--
if you see the following error:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `react-native-mapbox-navigation` depends upon `React-Core`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
change
pod 'React-Core', :path => '../node_modules/react-native/React'
to
pod 'React-Core', :path => '../node_modules/react-native/React', :modular_headers => true
Thanks @AKACC I will try that here shortly!
Thanks for opening this issue @thomasbird1984. I’m running into the same issue and was wondering if you were able to get past it? I’ve tried linking, ejecting, and modifying the Podfile as suggested but am still facing the error. Working within this repo and importing into the NavRoute component https://github.com/mpeglerg/NiteLite/blob/StartRoute/src/components/NavRoute.js
@mpeglerg I'm sorry I never figured it out we ended up hiring another developer who is handling and got past it. I would strongly suggest not using expo if you are, my guy said he never experienced this so I'm not sure what happened. Plus he started from scratch
So I've been trying to integrate
@homee/react-native-mapbox-navigation
I've followed the install instructions found here https://github.com/homeeondemand/react-native-mapbox-navigation to the letter 3 times now. I continue to get the following error, this is from the simulator:This is from the console:
I checked and made sure I had the correct native extensions installed in my
/ios/pods
directory:I also made sure I had all the needed packages installed in the node_modules:
I also seen this issue, which seemed similar so I tried to autolink the missing package that was listed in the simulator errors:
https://stackoverflow.com/questions/60034686/react-native-rncsafeareaview-was-not-found-in-the-uimanager#answer-61329389
That didn't help either, I've been trouble shooting for 3-4 days trying to get this resolved, any help would be greatly appreciated!!!