This repository was archived by the owner on Oct 5, 2023. It is now read-only.
File tree 3 files changed +5
-5
lines changed
react-native-android-fragment/src/main/java/com/hudl/oss/react/fragment
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ allprojects {
14
14
}
15
15
16
16
dependencies {
17
- // Version will correspond to its dependnecy on React Native
18
- compile 'com.github.hudl:react-native-android-fragment:v0.43 .2'
17
+ // Version will correspond to its dependency on React Native
18
+ compile 'com.github.hudl:react-native-android-fragment:v0.46.2 .2'
19
19
}
20
20
```
21
21
@@ -25,7 +25,7 @@ Or Maven:
25
25
<dependency >
26
26
<groupId >com.hudl.oss</groupId >
27
27
<artifactId >react-native-android-fragment</artifactId >
28
- <version >0.43 .2</version >
28
+ <version >0.46.2 .2</version >
29
29
</dependency >
30
30
```
31
31
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
- def libraryVersion = ' 0.43 .2'
3
+ def libraryVersion = ' 0.46.2 .2'
4
4
5
5
buildscript {
6
6
repositories {
Original file line number Diff line number Diff line change @@ -155,12 +155,12 @@ public void onDestroy() {
155
155
}
156
156
if (getReactNativeHost ().hasInstance ()) {
157
157
ReactInstanceManager reactInstanceMgr = getReactNativeHost ().getReactInstanceManager ();
158
- reactInstanceMgr .onHostDestroy (getActivity ());
159
158
160
159
// onDestroy may be called on a ReactFragment after another ReactFragment has been
161
160
// created and resumed with the same React Instance Manager. Make sure we only clean up
162
161
// host's React Instance Manager if no other React Fragment is actively using it.
163
162
if (reactInstanceMgr .getLifecycleState () != LifecycleState .RESUMED ) {
163
+ reactInstanceMgr .onHostDestroy (getActivity ());
164
164
getReactNativeHost ().clear ();
165
165
}
166
166
}
You can’t perform that action at this time.
0 commit comments