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

fix(android): map null values by checking JSONObject.NULL #53

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

eric-horodyski
Copy link
Member

@eric-horodyski eric-horodyski commented Apr 26, 2024

Replace instances of null -> map.putNull(key) with JSONObject.NULL -> map.putNull(key).

This will properly return null back to React Native instead of the string value'null'.

I tested this (locally) against this repro to ensure it worked.

Copy link

vercel bot commented Apr 26, 2024

@eric-horodyski is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@Steven0351 Steven0351 left a comment

Choose a reason for hiding this comment

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

Instead of replacing null it should also include null:

null, JSONObject.NULL -> map.putNull(key)

I don't trust java enough to not ensure that actual null values are handled

@eric-horodyski
Copy link
Member Author

eric-horodyski commented Apr 26, 2024

Instead of replacing null it should also include null:

null, JSONObject.NULL -> map.putNull(key)

I don't trust java enough to not ensure that actual null values are handled

All set and verified!

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ionic-portals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2024 7:34pm

@Steven0351 Steven0351 merged commit 887937a into ionic-team:main Apr 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants