react-native-navigation 8.4.2-snapshot.1905 → 8.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,6 @@ import android.content.Context;
|
|
|
7
7
|
import android.os.Bundle;
|
|
8
8
|
import android.view.MotionEvent;
|
|
9
9
|
import android.view.View;
|
|
10
|
-
import android.view.ViewGroup;
|
|
11
10
|
import android.widget.FrameLayout;
|
|
12
11
|
|
|
13
12
|
import androidx.annotation.RestrictTo;
|
|
@@ -72,7 +71,7 @@ public class ReactView extends FrameLayout implements IReactView, Renderable {
|
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
public void sendComponentWillStart(ComponentType type) {
|
|
75
|
-
this.post(()
|
|
74
|
+
this.post(()->{
|
|
76
75
|
ReactContext currentReactContext = getReactContext();
|
|
77
76
|
if (currentReactContext != null)
|
|
78
77
|
new EventEmitter(currentReactContext).emitComponentWillAppear(componentId, componentName, type);
|
|
@@ -80,7 +79,7 @@ public class ReactView extends FrameLayout implements IReactView, Renderable {
|
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
public void sendComponentStart(ComponentType type) {
|
|
83
|
-
this.post(()
|
|
82
|
+
this.post(()->{
|
|
84
83
|
ReactContext currentReactContext = getReactContext();
|
|
85
84
|
if (currentReactContext != null) {
|
|
86
85
|
new EventEmitter(currentReactContext).emitComponentDidAppear(componentId, componentName, type);
|
|
@@ -118,12 +117,7 @@ public class ReactView extends FrameLayout implements IReactView, Renderable {
|
|
|
118
117
|
|
|
119
118
|
@Override
|
|
120
119
|
public boolean isRendered() {
|
|
121
|
-
|
|
122
|
-
if (view != null) {
|
|
123
|
-
return view.getChildCount() >= 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return false;
|
|
120
|
+
return getChildCount() >= 1;
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
public EventDispatcher getEventDispatcher() {
|
|
@@ -137,7 +131,7 @@ public class ReactView extends FrameLayout implements IReactView, Renderable {
|
|
|
137
131
|
}
|
|
138
132
|
|
|
139
133
|
private ReactHost getReactHost() {
|
|
140
|
-
return
|
|
134
|
+
return ((ReactApplication)getContext().getApplicationContext()).getReactHost();
|
|
141
135
|
}
|
|
142
136
|
|
|
143
137
|
private ReactContext getReactContext() {
|