diff --git a/packages/react-native/React/CxxBridge/NSDataBigString.mm b/packages/react-native/React/CxxBridge/NSDataBigString.mm index 1c26bae624fa73..620d97ecf3b0a8 100644 --- a/packages/react-native/React/CxxBridge/NSDataBigString.mm +++ b/packages/react-native/React/CxxBridge/NSDataBigString.mm @@ -34,8 +34,8 @@ NSDataBigString::NSDataBigString(NSData *data) { + m_length = [data length]; m_data = ensureNullTerminated(data); - m_length = MAX([m_data length], 1) - 1; } } // namespace facebook::react