Firebase(带有react native)HTTPS函数不';不接收参数

Firebase(带有react native)HTTPS函数不';不接收参数,firebase,react-native,google-cloud-functions,react-native-ios,Firebase,React Native,Google Cloud Functions,React Native Ios,我正在使用Firebase的React native。我部署了一个函数(没有查询参数),我可以在iPhone上毫无问题地调用它。当我添加参数时,我只能在浏览器上运行,但在手机上,参数是未定义的 火基函数 exports.testFunction = functions.https.onRequest((request, response) => { const searchQuery = request.query.search; response.status(200)

我正在使用Firebase的React native。我部署了一个函数(没有查询参数),我可以在iPhone上毫无问题地调用它。当我添加参数时,我只能在浏览器上运行,但在手机上,参数是未定义的

火基函数

exports.testFunction = functions.https.onRequest((request, response) => { 
    const searchQuery = request.query.search;
    response.status(200).send({data:searchQuery});    
});
客户端应用程序

const testFunction = functions.httpsCallable('testFunction');
testFunction({search: "anything"})

我怀疑这可能是Firebase SDK、React Native到iOS的翻译中的一个错误,或者是我的代码中的一个问题,可能是什么问题?

您可以在哪里解决这个问题?