Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: view callback and layout functionality improvements #239

Merged

Conversation

jokerttu
Copy link
Contributor

@jokerttu jokerttu commented Aug 29, 2024

Fixes the NavigationView callback registration issue when using multiple view instances.
Resolves navigation view scaling issues by removing the mandatory height and width properties and adding support for an optional style property (breaking change). This allows developers to use flex or width/height parameters with percentage values.

Fixes #28
Fixes #192
Fixes #233
Partially fixes #235

BREAKING CHANGE: The height and width properties have been removed from NavigationView in favor of an optional style property.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

catalystInstance.callFunction(Constants.NAV_JAVASCRIPT_FLAG, "onTurnByTurn", params);
WritableNativeArray params = new WritableNativeArray();
params.pushMap(map);
catalystInstance.callFunction(Constants.NAV_JAVASCRIPT_FLAG, "onTurnByTurn", params);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: For future PRs, can we please separate changes that are meant to be mere formatting/styling changes? This will make it easier for reviewers to focus on the functional changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the project currently lacks formatting configuration, and as I locally have autoformatting, missed these changes. Once the formatting setup is complete and integrated into CI and lefthook linting, these formatting commits should disappear.

In the meantime, you can Hide whitespace changes in the GitHub review to focus on meaningful differences.
Screenshot 2024-08-30 at 9 04 34

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed formatting changes on this file for easier review.

Copy link
Contributor Author

@jokerttu jokerttu Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid these in future, I added forced formatting to the repo for future PR's in separe PR visible here: #240

@ArturoSalazarB16
Copy link
Contributor

Nit: For future PRs that aren't too critical to get out, is it possible to stat incrementally adding unit test coverage along with our changes?

@ArturoSalazarB16
Copy link
Contributor

This is a great improvement, thanks Joonas!

@googlemaps googlemaps deleted a comment from ArturoSalazarB16 Aug 30, 2024
Copy link
Contributor

@illuminati1911 illuminati1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit hard to review as the formatting is in the same commit with the changes. Despite that seems good overall. I'll still check one more time before approving.

@jokerttu
Copy link
Contributor Author

jokerttu commented Aug 30, 2024

Nit: For future PRs that aren't too critical to get out, is it possible to stat incrementally adding unit test coverage along with our changes?

Most definetely yes.
We should start incrementally adding unit test (and integratiojn test) coverage with future changes

@jokerttu jokerttu force-pushed the feat/improve-view-props-handling branch from b3c2fe7 to 7322cc0 Compare August 30, 2024 06:40
Copy link
Contributor

@illuminati1911 illuminati1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jokerttu jokerttu force-pushed the feat/improve-view-props-handling branch from 7322cc0 to a416e11 Compare September 3, 2024 06:30
@jokerttu jokerttu changed the title feat!: fixed view callback and layout functionality feat!: view callback and layout functionality improvements Sep 3, 2024
@jokerttu jokerttu merged commit d24855b into googlemaps:main Sep 3, 2024
11 checks passed
@wangela wangela mentioned this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants