mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
adb2167640
Summary: Serializes type information along with key/value in MapBuffer, asserting the data type on Java side during read. At the moment, accessing value with incorrect will result in a crash. Other changes: Adds a `getType` method to verify types before accessing them. Removes `null` as a type, as just not inserting value and checking for its existence with `hasKey` is more optimal. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D33656841 fbshipit-source-id: 23a78daa0d84704aab141088b5dfe881e9609472