API reference / @evolu/common / Platform / hasNodeBuffer
Variable: hasNodeBuffer
const hasNodeBuffer: boolean;
Defined in: packages/common/src/Platform.ts:19
Detects if Node.js Buffer is available and should be used.
React Native apps often polyfill Node.js APIs like Buffer, but we want to use native methods when available for better performance.
Returns false in React Native even if Buffer is polyfilled, as we prefer native methods in that environment.
See
https://github.com/craftzdog/react-native-quick-base64#installation