diff --git a/packages/react-native-codegen/src/generators/modules/GenerateModuleObjCpp/serializeMethod.js b/packages/react-native-codegen/src/generators/modules/GenerateModuleObjCpp/serializeMethod.js index 0bf872f0daef9e..14f0ed724c78d4 100644 --- a/packages/react-native-codegen/src/generators/modules/GenerateModuleObjCpp/serializeMethod.js +++ b/packages/react-native-codegen/src/generators/modules/GenerateModuleObjCpp/serializeMethod.js @@ -260,11 +260,11 @@ function getParamObjCType( case 'NumberTypeAnnotation': return notStruct(isRequired ? 'double' : 'NSNumber *'); case 'FloatTypeAnnotation': - return notStruct(isRequired ? 'double' : 'NSNumber *'); + return notStruct(isRequired ? 'float' : 'NSNumber *'); case 'DoubleTypeAnnotation': return notStruct(isRequired ? 'double' : 'NSNumber *'); case 'Int32TypeAnnotation': - return notStruct(isRequired ? 'double' : 'NSNumber *'); + return notStruct(isRequired ? 'NSInteger' : 'NSNumber *'); case 'BooleanTypeAnnotation': return notStruct(isRequired ? 'BOOL' : 'NSNumber *'); case 'EnumDeclaration':