mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Add Float and Int type support for Android modules" (#45087)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45087 Original commit changeset: 32b3bbdf5fd2 Fixes https://github.com/facebook/react-native/issues/44963 Closes https://github.com/facebook/react-native/pull/45024 Original Phabricator Diff: D52420921 Changelog: [Internal] [Changed] - Back out "[RN][Codegen]Add Float and Int type support for Android modules" Reviewed By: dmytrorykun Differential Revision: D58820544 fbshipit-source-id: 59cd0e7cc17a681785c57b5ce1a9d50d28a348af
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8a3ffb6d23
commit
8a6b88eeaf
+2
-2
@@ -136,11 +136,11 @@ function translateFunctionParamToJavaType(
|
||||
case 'NumberTypeAnnotation':
|
||||
return wrapOptional('double', isRequired);
|
||||
case 'FloatTypeAnnotation':
|
||||
return wrapOptional('float', isRequired);
|
||||
return wrapOptional('double', isRequired);
|
||||
case 'DoubleTypeAnnotation':
|
||||
return wrapOptional('double', isRequired);
|
||||
case 'Int32TypeAnnotation':
|
||||
return wrapOptional('int', isRequired);
|
||||
return wrapOptional('double', isRequired);
|
||||
case 'BooleanTypeAnnotation':
|
||||
return wrapOptional('boolean', isRequired);
|
||||
case 'EnumDeclaration':
|
||||
|
||||
+2
-2
@@ -334,9 +334,9 @@ function translateReturnTypeToJniType(
|
||||
case 'DoubleTypeAnnotation':
|
||||
return nullable ? 'Ljava/lang/Double;' : 'D';
|
||||
case 'FloatTypeAnnotation':
|
||||
return nullable ? 'Ljava/lang/Float;' : 'F';
|
||||
return nullable ? 'Ljava/lang/Double;' : 'D';
|
||||
case 'Int32TypeAnnotation':
|
||||
return nullable ? 'Ljava/lang/Integer;' : 'I';
|
||||
return nullable ? 'Ljava/lang/Double;' : 'D';
|
||||
case 'PromiseTypeAnnotation':
|
||||
return 'Lcom/facebook/react/bridge/Promise;';
|
||||
case 'GenericObjectTypeAnnotation':
|
||||
|
||||
Reference in New Issue
Block a user