2190221c44
Summary: **Description:** Jest tests that use that StatusBar failing because the status bar functions aren't mocked. Errors I ran into: `TypeError: StatusBarManager. setNetworkActivityIndicatorVisible is not a function` `TypeError: StatusBarManager. setHidden is not a function` `TypeError: StatusBarManager. setStyle is not a function` **Fix:** Added mocks for all the functions that the StatusBar offers according to the docs: https://facebook.github.io/react-native/docs/statusbar.html **Test plan (required)** Verify that the tests using StatusBar and its functions succeed. Closes https://github.com/facebook/react-native/pull/11322 Differential Revision: D4284536 Pulled By: cpojer fbshipit-source-id: b67be8c0595d91ee9aca4784f457c0959d7e45d5 |
||
---|---|---|
.. | ||
mockComponent.js | ||
preprocessor.js | ||
setup.js |