@react-native/codegen
Advanced tools
@@ -125,2 +125,6 @@ 'use strict'; | ||
| } | ||
| case 'ArrayBufferTypeAnnotation': | ||
| { | ||
| return notStruct(wrapOptional('NSMutableData *', !nullable)); | ||
| } | ||
| } | ||
@@ -248,3 +252,3 @@ const [structTypeAnnotation] = unwrapNullable(structCollector.process(structName, 'REGULAR', resolveAlias, wrapNullable(nullable, typeAnnotation))); | ||
| case 'ArrayBufferTypeAnnotation': | ||
| throw new Error(`Unsupported return type for ${methodName}: ArrayBuffer is only supported for C++ TurboModules.`); | ||
| return wrapOptional('NSMutableData *', isRequired); | ||
| default: | ||
@@ -315,3 +319,3 @@ typeAnnotation.type; | ||
| case 'ArrayBufferTypeAnnotation': | ||
| throw new Error(`Unsupported return type for ${methodName}: ArrayBuffer is only supported for C++ TurboModules.`); | ||
| return 'ArrayBufferKind'; | ||
| default: | ||
@@ -318,0 +322,0 @@ typeAnnotation.type; |
+1
-1
| { | ||
| "name": "@react-native/codegen", | ||
| "version": "0.87.0-nightly-20260628-a3582a9d1", | ||
| "version": "0.87.0-nightly-20260629-54b88d9de", | ||
| "description": "Code generation tools for React Native", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
12111
0.03%1047753
-0.01%