File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/react-native-bottom-tabs/android/src Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,10 @@ class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
384
384
updateTextAppearance()
385
385
}
386
386
387
+ fun shutdownImageLoader () {
388
+ imageLoader.shutdown()
389
+ }
390
+
387
391
private fun updateTextAppearance () {
388
392
if (fontSize != null || fontFamily != null || fontWeight != null ) {
389
393
val menuView = bottomNavigation.getChildAt(0 ) as ? ViewGroup ? : return
@@ -455,9 +459,4 @@ class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
455
459
updateItems(items)
456
460
uiModeConfiguration = newConfig?.uiMode ? : uiModeConfiguration
457
461
}
458
-
459
- override fun onDetachedFromWindow () {
460
- super .onDetachedFromWindow()
461
- imageLoader.shutdown()
462
- }
463
462
}
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ class RCTTabViewManager(context: ReactApplicationContext) :
43
43
44
44
}
45
45
46
+ override fun onDropViewInstance (view : ReactBottomNavigationView ) {
47
+ super .onDropViewInstance(view)
48
+ view.shutdownImageLoader()
49
+ }
50
+
46
51
override fun getName (): String {
47
52
return tabViewImpl.getName()
48
53
}
You can’t perform that action at this time.
0 commit comments