Skip to content

[Question] Missing polyfills and supported Expo and React native versions #146

@Freire71

Description

@Freire71

Hey callstack team, I was trying to integrate this library into my app to run some testing, but I had some conflicts when building the app. It found some errors when calling TurboModules functions. My thought is that this library expects a higher SDK version than 52 - and as consequence a higher react native version as well and that's why I got this errors. Patching the library make it build, but when calling the methods they always fail
I'm currently using:

"react-native": "0.76.9",
"expo": "52.0.36",
[RUN_FASTLANE] 
❌  (../../node_modules/@react-native-ai/apple/io
s/AppleLLM.mm:61:104)

  59 |       
  60 |       if (!isPromise) {
> 61 |         id response = react::TurboModuleCo
nvertUtils::convertJSIValueToObjCObject(rt, 
result, nullptr, false);
     |                                           
                                                 
            ^ too many arguments to function 
call, expected 3, have 4
  62 |         completion(response, nil);
  63 |         return;
  64 |       }

[RUN_FASTLANE] 
❌  (../../node_modules/@react-native-ai/apple/io
s/AppleLLM.mm:75:105)

  73 |                                           
                                const jsi::Value*
 args,
  74 |                                           
                                size_t count) {
> 75 |         id response = react::TurboModuleCo
nvertUtils::convertJSIValueToObjCObject(rt, 
args[0], nullptr, false);
     |                                           
                                                 
             ^ too many arguments to function 
call, expected 3, have 4
  76 |         completion(response, nil);
  77 |         return jsi::Value::undefined();
  78 |       });

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions