Skip to content

Commit 2441fc8

Browse files
committed
Added reference to the issue
1 parent 7c4e9ae commit 2441fc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/host/cpp/RuntimeNodeApi.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ napi_status NAPI_CDECL callstack::nodeapihost::napi_create_buffer(
1111
return status;
1212
}
1313

14+
// Warning: The returned data structure does not fully align with the
15+
// characteristics of a Buffer.
16+
// @see
17+
// https://github.com/callstackincubator/react-native-node-api/issues/171
1418
return napi_create_typedarray(env, ArrayType, length, buffer, 0, result);
1519
}
1620

0 commit comments

Comments
 (0)