suale-dev / JavaScriptInterface

Calling native code from Javascript in the iOS application likes addJavascriptInterface in the Android.
36 stars 9 forks source link

Problem with callJSMethod #5

Closed SalvatoreAD closed 6 years ago

SalvatoreAD commented 7 years ago

I Have problem with callJSMethod, I can't send arguments like integer and boolean? Can you help me?

sharad-paghadal commented 6 years ago

Don't forget to add "_" before variable name. like given below,


func communicationBridge(_ command: Int, _ data: String) -> String {
}
suale-dev commented 6 years ago

It fixed in master