@react-native/codegen 0.75.0-nightly-20240618-5df5ed1a8 → 0.75.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,11 +177,11 @@ function translateFunctionParamToJavaType(
|
|
|
177
177
|
case 'NumberTypeAnnotation':
|
|
178
178
|
return wrapOptional('double', isRequired);
|
|
179
179
|
case 'FloatTypeAnnotation':
|
|
180
|
-
return wrapOptional('
|
|
180
|
+
return wrapOptional('double', isRequired);
|
|
181
181
|
case 'DoubleTypeAnnotation':
|
|
182
182
|
return wrapOptional('double', isRequired);
|
|
183
183
|
case 'Int32TypeAnnotation':
|
|
184
|
-
return wrapOptional('
|
|
184
|
+
return wrapOptional('double', isRequired);
|
|
185
185
|
case 'BooleanTypeAnnotation':
|
|
186
186
|
return wrapOptional('boolean', isRequired);
|
|
187
187
|
case 'EnumDeclaration':
|
|
@@ -136,11 +136,11 @@ function translateFunctionParamToJavaType(
|
|
|
136
136
|
case 'NumberTypeAnnotation':
|
|
137
137
|
return wrapOptional('double', isRequired);
|
|
138
138
|
case 'FloatTypeAnnotation':
|
|
139
|
-
return wrapOptional('
|
|
139
|
+
return wrapOptional('double', isRequired);
|
|
140
140
|
case 'DoubleTypeAnnotation':
|
|
141
141
|
return wrapOptional('double', isRequired);
|
|
142
142
|
case 'Int32TypeAnnotation':
|
|
143
|
-
return wrapOptional('
|
|
143
|
+
return wrapOptional('double', isRequired);
|
|
144
144
|
case 'BooleanTypeAnnotation':
|
|
145
145
|
return wrapOptional('boolean', isRequired);
|
|
146
146
|
case 'EnumDeclaration':
|
|
@@ -336,9 +336,9 @@ function translateReturnTypeToJniType(nullableTypeAnnotation, resolveAlias) {
|
|
|
336
336
|
case 'DoubleTypeAnnotation':
|
|
337
337
|
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
338
338
|
case 'FloatTypeAnnotation':
|
|
339
|
-
return nullable ? 'Ljava/lang/
|
|
339
|
+
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
340
340
|
case 'Int32TypeAnnotation':
|
|
341
|
-
return nullable ? 'Ljava/lang/
|
|
341
|
+
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
342
342
|
case 'PromiseTypeAnnotation':
|
|
343
343
|
return 'Lcom/facebook/react/bridge/Promise;';
|
|
344
344
|
case 'GenericObjectTypeAnnotation':
|
|
@@ -334,9 +334,9 @@ function translateReturnTypeToJniType(
|
|
|
334
334
|
case 'DoubleTypeAnnotation':
|
|
335
335
|
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
336
336
|
case 'FloatTypeAnnotation':
|
|
337
|
-
return nullable ? 'Ljava/lang/
|
|
337
|
+
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
338
338
|
case 'Int32TypeAnnotation':
|
|
339
|
-
return nullable ? 'Ljava/lang/
|
|
339
|
+
return nullable ? 'Ljava/lang/Double;' : 'D';
|
|
340
340
|
case 'PromiseTypeAnnotation':
|
|
341
341
|
return 'Lcom/facebook/react/bridge/Promise;';
|
|
342
342
|
case 'GenericObjectTypeAnnotation':
|