Parameter 'args' is never used, could be renamed to _
charlee-dev opened this issue · 1 comments
charlee-dev commented
Generated code in build dir for ios contains unused args, resulting in the build output warning.
"Parameter 'args' is never used, could be renamed to _"
To reproduce, create a suspended function with no properties:
@ReactNativeMethod
fun getInfo(): String {
return SDK.deviceManager.getInfo().asString()
}
Results with generated code:
RCTBridgeMethodWrapper("getInfo") { args, promise -> getInfo(promise as
PromiseIOS<String>)}
Legion2 commented
Thanks for reporting this. We will address this in an upcoming release.