In my case, I met an iOS release (RN0.71.6 JSC) bug that global array foo.push(bar) in a class but still get [] means foo.length is 0 in another class, so I have to use global object instead, ref to https://github.com/flyskywhy/react-native-browser-polyfill/commit/0d574fb