Any JSON-serializable value that can cross the React Native bridge.
The type is named JsonValue instead of DataItem to avoid a clash with the
native Prism DataItem wrapper.
Only JSON-native types are valid: strings, numbers, booleans, null, arrays,
and plain objects. Functions, undefined, Symbol, and BigInt are not
JSON-serializable. null is a valid value. It maps to NSNull() on iOS and
to DataItem.NULL on Android.
Date is not a JSON type. JSON.stringify converts it to an ISO string, so
the value changes from Date to string. Pass date.toISOString() instead.
Non-finite numbers (Infinity, -Infinity, and NaN) become the strings
"Infinity", "-Infinity", and "NaN" before they cross the bridge. This
matches the native Prism SDK behavior.
Any JSON-serializable value that can cross the React Native bridge.
The type is named
JsonValueinstead ofDataItemto avoid a clash with the native PrismDataItemwrapper.Only JSON-native types are valid: strings, numbers, booleans,
null, arrays, and plain objects. Functions,undefined,Symbol, andBigIntare not JSON-serializable.nullis a valid value. It maps toNSNull()on iOS and toDataItem.NULLon Android.Dateis not a JSON type.JSON.stringifyconverts it to an ISO string, so the value changes fromDatetostring. Passdate.toISOString()instead.Non-finite numbers (
Infinity,-Infinity, andNaN) become the strings"Infinity","-Infinity", and"NaN"before they cross the bridge. This matches the native Prism SDK behavior.