fix: nullable array/map handling
-
Updated
arrayToJson()to safely handle null values returned bygetString(),getMap(), andgetArray(). Now explicitly insertsJSONObject.NULLwhen null values are encountered, preventing potential crashes or incorrect JSON. -
Updated
mapToJson()with similar null checks for strings, nested maps, and arrays to ensureJSONObject.NULLis used where appropriate.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thank you
@stephenmcd Is it possible to find out when these changes will be published on npm?
Hey there, I'm currently working on upgrading everything to work with both of RN's new and old architectures, which requires full typescript support as well. I can't give an exact ETA but it's very soon.