mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
31f30aa4b3
Summary: (I swear this was working before...) Right now, when passing an empty map to `toBundle` it returns null: - It feels counter-intuitive to have the data modified without any good reason; - It is different from what iOS does This PR fixes this behavior by returning an empty `Bundle` instead of `null`. It is a breaking change though, and I'm not sure where it goes with the new bridge. Closes https://github.com/facebook/react-native/pull/7847 Differential Revision: D3504024 fbshipit-source-id: 97ca19259fdf3219e8237e44a313645503a695fd