mirror of
https://github.com/status-im/react-native.git
synced 2025-02-11 00:46:32 +00:00
Summary: We previously were unmounting the react application unconditionally when the ReactRootView#onDetachedFromWindow. This is nice in that it automatically allows us to reclaim memory, but there are many scenarios where a ReactRootView can be embedded in another piece of UI that detaches its children as part of its normal function (e.g. ListView, RecyclerView, ViewPager, etc). As such, we will now enforce that the hosting Activity/Fragment/??? explicitly calls unmountReactApplication in the same way it calls startReactApplication. For Applications extending ReactActivity/AbstractReactActivity, this will happen automatically in onDestroy. Reviewed By: foghina Differential Revision: D3265161 fb-gh-sync-id: 4d49b0c41256213f00874f57e784aa8741dbf394 fbshipit-source-id: 4d49b0c41256213f00874f57e784aa8741dbf394
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.