Skip to content

[🐛] httpsCallable function may remove null on iOS on old react-native w/new arch (solution: upstream issue, use current react-native) #8358

@tkumor3

Description

@tkumor3

Issue

httpsCallable on iOS removes the JSON property if the value is null. Example:

  firebase
    .app()
    .functions('us-central1')
    .httpsCallable('test')({ arg1: null, arg2: 'arg2' })
    .then();

called on android sent to firebase:

{
  data: {
    arg1: null,
    arg2: 'arg2'
  }
}

on IOS:

{
  data: {
    arg2: 'arg2'
  }
}

Project Files

Javascript

Click To Expand

package.json:

  "dependencies": {
    ...
    "@react-native-firebase/app": "^21.11.0",
    "@react-native-firebase/auth": "^21.11.0",
    "@react-native-firebase/crashlytics": "^21.11.0",
    "@react-native-firebase/firestore": "^21.11.0",
    "@react-native-firebase/functions": "^21.11.0",
    "@react-native-firebase/storage": "^21.11.0",
    ...
}
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions