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:
+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':
|
||||
|
||||
Reference in New Issue
Block a user