You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q1. In the docs, it seems codegen cli is most easy way to use codegen.
But why manual node command way is required? I just bumped RN 0.74 and see that codegen cli is included in 0.74.
Q2. Also, from 0.74.0, Int32 type is converted to NSInteger in iOS and Int in Android. It breaks all the logic in the code.
But the more badly, if I pass a integer value into Turbo Module function arguments, then it was transformed a weird value in iOS(107429 -> 4682118877876846592) and in Android it event couldn't be called.
Error: Exception in HostFunction: no non-static method "Lnet/mjstudio/rnkakao/share/RNCKakaoShareModule;.shareOrSendMeOrSendFriendOrWhatever(Ljava/lang/String;Ljava/lang/String;DLcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/ReadableArray;ZLcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V"
The third argument D means double and in my codegen spec, it is declared as Int32.
Any idea or should I keep use Double only in codegen spec?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Q1. In the docs, it seems codegen cli is most easy way to use codegen.
But why manual node command way is required? I just bumped RN 0.74 and see that codegen cli is included in 0.74.
Q2. Also, from
0.74.0
,Int32
type is converted toNSInteger
in iOS andInt
in Android. It breaks all the logic in the code.But the more badly, if I pass a integer value into Turbo Module function arguments, then it was transformed a weird value in iOS(
107429
->4682118877876846592
) and in Android it event couldn't be called.Any idea or should I keep use
Double
only in codegen spec?Beta Was this translation helpful? Give feedback.
All reactions