homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
153 stars 118 forks source link

Android: Getting the Blank blue screen and when navigate to another screen throwing an error. #105

Closed spaceod closed 1 year ago

spaceod commented 1 year ago

Screenshot_1667309613

Screenshot_1667309102

React native: 0.70.3 React Native Mapbox Navigation: 1.1.0

diassis-paiva commented 1 year ago

Thanks a lot @spaceod , you helped a lot in question #100 . I was using an old version of React Native to use the library, where it was causing a lot of errors. So that this doesn't happen on the screen, I put the component to be displayed only when the variable's value is changed. When changed I simply add new directions.

TarikHuber commented 1 year ago

@diassis-paiva could you resolve this issue? I have the same errors but I'm not sure whats causing it.

spaceod commented 1 year ago

@TarikHuber I have fixed that, you can update your package.json file.

"@homee/react-native-mapbox-navigation": "git+https://github.com/spaceod/react-native-mapbox-navigation.git",

TarikHuber commented 1 year ago

@spaceod could you pls share with me what RN and Gradle version you use?

spaceod commented 1 year ago

@TarikHuber React Native version: 0.70.6 Gradle version: 7.5.1

EdwardLTC commented 1 year ago

i have same issue, but i the error log is undefined how can i fix it :< image

AlexanderCollins commented 1 year ago

@EdwardLTC I'm just about to work through the same issue, perhaps @spaceod's fork holds the key? Just taking a look at the one commit in his branch: https://github.com/homeeondemand/react-native-mapbox-navigation/compare/master...spaceod:react-native-mapbox-navigation:master

I'll check back on how it works for me shortly.

EdwardLTC commented 1 year ago

@AlexanderCollins oh i has fix that by change android/build.gradle targetSdkVersion to 30 or lower thanks btw

javierP1647 commented 1 year ago

@TarikHuber I have fixed that, you can update your package.json file.

"@homee/react-native-mapbox-navigation": "git+https://github.com/spaceod/react-native-mapbox-navigation.git",

Worked for me. Thanks

AlexanderCollins commented 1 year ago

@TarikHuber I have fixed that, you can update your package.json file.

"@homee/react-native-mapbox-navigation": "git+https://github.com/spaceod/react-native-mapbox-navigation.git",

I tried this and got the following error when building... I seem to get this error consistently across my own fork too.

Screen Shot 2022-12-23 at 11 15 27 am

I thought it might be related to https://github.com/homeeondemand/react-native-mapbox-navigation/issues/100 however the fix there didn't resolve the issue either.

If anyone has any suggestions that would be great, you can check out my fork with @spaceod's work merged in here: https://github.com/drive-app/react-native-mapbox-navigation/tree/android

AlexanderCollins commented 1 year ago

Okay my sanity is saved, looks like this is an issue upstream with jitpack at the moment! https://github.com/jitpack/jitpack.io/issues/5337

shreypdev commented 1 year ago

@spaceod You are amazing. Why dont you publish your lib so we have to ref your repo with this repo, we will help you maintain it as well. If you see this repo it is almost dead, we never get updates.

vnemke commented 1 year ago

Greetings, app is just stop to work, and throw me error "instructionIndex is null" Not sure if crash or something else, but as i can see, app stay frozen in memory. package.json is refreshed with new package (git+https://github.com/spaceod/react-native-mapbox-navigation.git). Rn is 0.71.3 and gradle 7.5.1.

1 2

shan-lak commented 1 year ago

@spaceod Blank blue color issue fixed from git+https://github.com/spaceod/react-native-mapbox-navigation.git". But Now the app crash when navigating to the Navigation screen. I use "react-native": "0.71.3", Gradle version: 7.5.1 and Android version 33. Run on Android 12 device. Is there anyone facing this issue and fixed it?

LushanZoomi commented 1 year ago

@vnemke Did you find a solution for the instructionIndex issue?

vnemke commented 1 year ago

@LushanZoomi Sorry, unfortunately no. I didn't know how to solve that problem, so must to give up for now.

spaceod commented 1 year ago

I have been working on it from the last few days. Will share the Library soon.

LushanZoomi commented 1 year ago

@spaceod "git+https://github.com/spaceod/react-native-mapbox-navigation.git", Did you remove the fork? The is not found.

ahmdsdk commented 1 year ago

I realized this problem has to do with mixing up the latitude and longitude

dhruvparmar1 commented 1 year ago

You can now access the updated version using the following URL: "git+https://github.com/dhruvparmar1/mapbox-navigation". I am currently in the process of publishing these updates to npm. Once the updates are published, you will be able to install the latest version using npm.

javierP1647 commented 1 year ago

What are the latest version of react and react native compatible with this submission? any dev dependency issues with later versions of kotlin, maven or "maven-publish'?

On Mon, Apr 10, 2023 at 3:29 PM Dhruv Parmar @.***> wrote:

You can now access the updated version using the following URL: "git+ https://github.com/dhruvparmar1/mapbox-navigation". I am currently in the process of publishing these updates to npm. Once the updates are published, you will be able to install the latest version using npm.

— Reply to this email directly, view it on GitHub https://github.com/homeeondemand/react-native-mapbox-navigation/issues/105#issuecomment-1502218464, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKECZKC7G7OMBDUXIX5GSKLXARNS7ANCNFSM6AAAAAARUCB7TQ . You are receiving this because you commented.Message ID: @.*** .com>

-- Consider the lilies of the field, how they grow: they neither toil nor spin.

ahmdsdk commented 1 year ago

@dhruvparmar1 What kind of updates are you going to add to this package? Are you going to update the currently used SDKs? How about the ability to stylize?

dhruvparmar1 commented 1 year ago

Point 1: The point of creating a new repo is that I can see there are 58 open issues here. If the contributors accept the PR here, there is no need to create a new repo. But since people have asked to create a new community repo, I am looking forward to that approach, where anyone can raise their PR, make it stable, and go a long way.

Point 2: Migration of the package to support RN's new architecture.

Point 3: Support for Expo.

owaisnizam commented 11 months ago

@dhruvparmar1 did you publish its npm package yet? because this package itself is dead.

dhruvparmar1 commented 11 months ago

@owaisnizam https://www.npmjs.com/package/rnc-mapbox-nav

arunprasath2007 commented 10 months ago

Hi @dhruvparmar1 I tried your package and for some reason I can see the logs of distance travelled etc but it doesn't render the map. any idea what's going on? ALl I did was took your package, updated the Android configuration per Mapbox.

javierP1647 commented 10 months ago

this may be silly, and sorry if you have done this already but make sure your styles have a height and width for your map view.

On Tue, Aug 22, 2023 at 7:36 AM Arun Prasath E G @.***> wrote:

Hi @dhruvparmar1 https://github.com/dhruvparmar1 I tried your package and for some reason I can see the logs of distance travelled etc but it doesn't render the map. any idea what's going on? ALl I did was took your package, updated the Android configuration per Mapbox.

— Reply to this email directly, view it on GitHub https://github.com/homeeondemand/react-native-mapbox-navigation/issues/105#issuecomment-1688016496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKECZKFO7YGOVG5VWIMMSBDXWSKU5ANCNFSM6AAAAAARUCB7TQ . You are receiving this because you commented.Message ID: @.*** .com>

-- Consider the lilies of the field, how they grow: they neither toil nor spin.

arunprasath2007 commented 10 months ago

@javierP1647 Yep, I did setup height and width as well and its still white screen popping up. I do see the simulation is working fine though. Will wait to hearback from @dhruvparmar1

dhruvparmar1 commented 10 months ago

@arunprasath2007 Set the style property by specifying the height and width as 'flex: 1'. I will also update the README document. Additionally, contributions are welcome, so please feel free to submit a PR.

arunprasath2007 commented 10 months ago

@dhruvparmar1 unfortunately that doesn't work too. I added a issue (https://github.com/dhruvparmar1/mapbox-navigation/issues/1) in the github as well, any idea what I might be missing?

image

owaisnizam commented 10 months ago

@arunprasath2007 Can you please share your code? also I didn't use @dhruvparmar1 's whole package but just copied his android gradle files and forked my own with the main library. Was getting a few issues running his library fork. also were you able to run it in the past successfully or its just now?

CRIIPI11 commented 8 months ago

@arunprasath2007 Hello, did you manage to find the solution to your problem? I'm currently facing the same issue. @dhruvparmar1 is there any recommende solution for this ?