react-native-make-payment icon indicating copy to clipboard operation
react-native-make-payment copied to clipboard

fix: nullable array/map handling

Open alex-vasylchenko opened this issue 6 months ago • 1 comments

  • Updated arrayToJson() to safely handle null values returned by getString(), getMap(), and getArray(). Now explicitly inserts JSONObject.NULL when null values are encountered, preventing potential crashes or incorrect JSON.

  • Updated mapToJson() with similar null checks for strings, nested maps, and arrays to ensure JSONObject.NULL is used where appropriate.

alex-vasylchenko avatar May 21 '25 15:05 alex-vasylchenko

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.

google-cla[bot] avatar May 21 '25 15:05 google-cla[bot]

Thank you

stephenmcd avatar Jul 11 '25 01:07 stephenmcd

@stephenmcd Is it possible to find out when these changes will be published on npm?

litinskii avatar Aug 07 '25 14:08 litinskii

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.

stephenmcd avatar Aug 07 '25 20:08 stephenmcd