react-native 0.79.6 → 0.79.7
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +18 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +37 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/package.json +8 -8
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
package/React/Base/RCTVersion.m
CHANGED
package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
CHANGED
|
@@ -685,7 +685,15 @@ public class SurfaceMountingManager {
|
|
|
685
685
|
return;
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
ViewState viewState =
|
|
688
|
+
ViewState viewState = getNullableViewState(reactTag);
|
|
689
|
+
|
|
690
|
+
if (viewState == null) {
|
|
691
|
+
ReactSoftExceptionLogger.logSoftException(
|
|
692
|
+
ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
|
|
693
|
+
new ReactNoCrashSoftException(
|
|
694
|
+
"Unable to find viewState for tag: " + reactTag + " for updateProps"));
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
689
697
|
viewState.mCurrentProps = new ReactStylesDiffMap(props);
|
|
690
698
|
View view = viewState.mView;
|
|
691
699
|
|
|
@@ -833,9 +841,16 @@ public class SurfaceMountingManager {
|
|
|
833
841
|
parent.requestLayout();
|
|
834
842
|
}
|
|
835
843
|
|
|
836
|
-
|
|
844
|
+
// TODO T212247085: Make this non-nullable again after rolling out
|
|
845
|
+
// disableMountItemReorderingAndroid
|
|
846
|
+
ViewState parentViewState = getNullableViewState(parentTag);
|
|
837
847
|
IViewGroupManager<?> parentViewManager = null;
|
|
838
|
-
if (parentViewState
|
|
848
|
+
if (parentViewState == null) {
|
|
849
|
+
ReactSoftExceptionLogger.logSoftException(
|
|
850
|
+
ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
|
|
851
|
+
new ReactNoCrashSoftException(
|
|
852
|
+
"Unable to find viewState for tag: " + parentTag + " for updateLayout"));
|
|
853
|
+
} else if (parentViewState.mViewManager != null) {
|
|
839
854
|
parentViewManager = (IViewGroupManager) parentViewState.mViewManager;
|
|
840
855
|
}
|
|
841
856
|
if (parentViewManager == null || !parentViewManager.needsCustomLayoutForChildren()) {
|
|
@@ -22,6 +22,7 @@ import com.facebook.react.fabric.mounting.SurfaceMountingManager;
|
|
|
22
22
|
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlags;
|
|
23
23
|
import com.facebook.react.uimanager.StateWrapper;
|
|
24
24
|
import com.facebook.systrace.Systrace;
|
|
25
|
+
import java.util.Locale;
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* This class represents a batch of {@link MountItem}s, represented directly as int buffers to
|
|
@@ -199,7 +200,7 @@ final class IntBufferBatchMountItem implements BatchMountItem {
|
|
|
199
200
|
public String toString() {
|
|
200
201
|
try {
|
|
201
202
|
StringBuilder s = new StringBuilder();
|
|
202
|
-
s.append(String.format("IntBufferBatchMountItem [surface:%d]:\n", mSurfaceId));
|
|
203
|
+
s.append(String.format(Locale.ROOT, "IntBufferBatchMountItem [surface:%d]:\n", mSurfaceId));
|
|
203
204
|
int i = 0, j = 0;
|
|
204
205
|
while (i < mIntBufferLen) {
|
|
205
206
|
int rawType = mIntBuffer[i++];
|
|
@@ -211,49 +212,65 @@ final class IntBufferBatchMountItem implements BatchMountItem {
|
|
|
211
212
|
j += 3;
|
|
212
213
|
s.append(
|
|
213
214
|
String.format(
|
|
215
|
+
Locale.ROOT,
|
|
214
216
|
"CREATE [%d] - layoutable:%d - %s\n",
|
|
215
|
-
mIntBuffer[i++],
|
|
217
|
+
mIntBuffer[i++],
|
|
218
|
+
mIntBuffer[i++],
|
|
219
|
+
componentName));
|
|
216
220
|
} else if (type == INSTRUCTION_DELETE) {
|
|
217
|
-
s.append(String.format("DELETE [%d]\n", mIntBuffer[i++]));
|
|
221
|
+
s.append(String.format(Locale.ROOT, "DELETE [%d]\n", mIntBuffer[i++]));
|
|
218
222
|
} else if (type == INSTRUCTION_INSERT) {
|
|
219
223
|
s.append(
|
|
220
224
|
String.format(
|
|
221
|
-
|
|
225
|
+
Locale.ROOT,
|
|
226
|
+
"INSERT [%d]->[%d] @%d\n",
|
|
227
|
+
mIntBuffer[i++],
|
|
228
|
+
mIntBuffer[i++],
|
|
229
|
+
mIntBuffer[i++]));
|
|
222
230
|
} else if (type == INSTRUCTION_REMOVE) {
|
|
223
231
|
s.append(
|
|
224
232
|
String.format(
|
|
225
|
-
|
|
233
|
+
Locale.ROOT,
|
|
234
|
+
"REMOVE [%d]->[%d] @%d\n",
|
|
235
|
+
mIntBuffer[i++],
|
|
236
|
+
mIntBuffer[i++],
|
|
237
|
+
mIntBuffer[i++]));
|
|
226
238
|
} else if (type == INSTRUCTION_UPDATE_PROPS) {
|
|
227
239
|
Object props = mObjBuffer[j++];
|
|
228
240
|
String propsString =
|
|
229
241
|
IS_DEVELOPMENT_ENVIRONMENT
|
|
230
242
|
? (props != null ? props.toString() : "<null>")
|
|
231
243
|
: "<hidden>";
|
|
232
|
-
s.append(
|
|
244
|
+
s.append(
|
|
245
|
+
String.format(
|
|
246
|
+
Locale.ROOT, "UPDATE PROPS [%d]: %s\n", mIntBuffer[i++], propsString));
|
|
233
247
|
} else if (type == INSTRUCTION_UPDATE_STATE) {
|
|
234
248
|
StateWrapper state = (StateWrapper) mObjBuffer[j++];
|
|
235
249
|
String stateString =
|
|
236
250
|
IS_DEVELOPMENT_ENVIRONMENT
|
|
237
251
|
? (state != null ? state.toString() : "<null>")
|
|
238
252
|
: "<hidden>";
|
|
239
|
-
s.append(
|
|
253
|
+
s.append(
|
|
254
|
+
String.format(
|
|
255
|
+
Locale.ROOT, "UPDATE STATE [%d]: %s\n", mIntBuffer[i++], stateString));
|
|
240
256
|
} else if (type == INSTRUCTION_UPDATE_LAYOUT) {
|
|
241
|
-
int reactTag = mIntBuffer[i++];
|
|
242
|
-
int parentTag = mIntBuffer[i++];
|
|
243
|
-
int x = mIntBuffer[i++];
|
|
244
|
-
int y = mIntBuffer[i++];
|
|
245
|
-
int w = mIntBuffer[i++];
|
|
246
|
-
int h = mIntBuffer[i++];
|
|
247
|
-
int displayType = mIntBuffer[i++];
|
|
248
|
-
int layoutDirection = mIntBuffer[i++];
|
|
249
257
|
s.append(
|
|
250
258
|
String.format(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
259
|
+
Locale.ROOT,
|
|
260
|
+
"UPDATE LAYOUT [%d]->[%d]: x:%d y:%d w:%d h:%d displayType:%d"
|
|
261
|
+
+ " layoutDirection:%d\n",
|
|
262
|
+
mIntBuffer[i++],
|
|
263
|
+
mIntBuffer[i++],
|
|
264
|
+
mIntBuffer[i++],
|
|
265
|
+
mIntBuffer[i++],
|
|
266
|
+
mIntBuffer[i++],
|
|
267
|
+
mIntBuffer[i++],
|
|
268
|
+
mIntBuffer[i++],
|
|
269
|
+
mIntBuffer[i++]));
|
|
254
270
|
} else if (type == INSTRUCTION_UPDATE_PADDING) {
|
|
255
271
|
s.append(
|
|
256
272
|
String.format(
|
|
273
|
+
Locale.ROOT,
|
|
257
274
|
"UPDATE PADDING [%d]: top:%d right:%d bottom:%d left:%d\n",
|
|
258
275
|
mIntBuffer[i++],
|
|
259
276
|
mIntBuffer[i++],
|
|
@@ -263,6 +280,7 @@ final class IntBufferBatchMountItem implements BatchMountItem {
|
|
|
263
280
|
} else if (type == INSTRUCTION_UPDATE_OVERFLOW_INSET) {
|
|
264
281
|
s.append(
|
|
265
282
|
String.format(
|
|
283
|
+
Locale.ROOT,
|
|
266
284
|
"UPDATE OVERFLOWINSET [%d]: left:%d top:%d right:%d bottom:%d\n",
|
|
267
285
|
mIntBuffer[i++],
|
|
268
286
|
mIntBuffer[i++],
|
|
@@ -271,7 +289,7 @@ final class IntBufferBatchMountItem implements BatchMountItem {
|
|
|
271
289
|
mIntBuffer[i++]));
|
|
272
290
|
} else if (type == INSTRUCTION_UPDATE_EVENT_EMITTER) {
|
|
273
291
|
j += 1;
|
|
274
|
-
s.append(String.format("UPDATE EVENTEMITTER [%d]\n", mIntBuffer[i++]));
|
|
292
|
+
s.append(String.format(Locale.ROOT, "UPDATE EVENTEMITTER [%d]\n", mIntBuffer[i++]));
|
|
275
293
|
} else {
|
|
276
294
|
FLog.e(TAG, "String so far: " + s.toString());
|
|
277
295
|
throw new IllegalArgumentException(
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 79
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 7
|
|
18
18
|
|
|
19
19
|
namespace facebook::react {
|
|
20
20
|
|
|
21
21
|
constexpr struct {
|
|
22
22
|
int32_t Major = 0;
|
|
23
23
|
int32_t Minor = 79;
|
|
24
|
-
int32_t Patch =
|
|
24
|
+
int32_t Patch = 7;
|
|
25
25
|
std::string_view Prerelease = "";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.7",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -109,13 +109,13 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
112
|
-
"@react-native/assets-registry": "0.79.
|
|
113
|
-
"@react-native/codegen": "0.79.
|
|
114
|
-
"@react-native/community-cli-plugin": "0.79.
|
|
115
|
-
"@react-native/gradle-plugin": "0.79.
|
|
116
|
-
"@react-native/js-polyfills": "0.79.
|
|
117
|
-
"@react-native/normalize-colors": "0.79.
|
|
118
|
-
"@react-native/virtualized-lists": "0.79.
|
|
112
|
+
"@react-native/assets-registry": "0.79.7",
|
|
113
|
+
"@react-native/codegen": "0.79.7",
|
|
114
|
+
"@react-native/community-cli-plugin": "0.79.7",
|
|
115
|
+
"@react-native/gradle-plugin": "0.79.7",
|
|
116
|
+
"@react-native/js-polyfills": "0.79.7",
|
|
117
|
+
"@react-native/normalize-colors": "0.79.7",
|
|
118
|
+
"@react-native/virtualized-lists": "0.79.7",
|
|
119
119
|
"abort-controller": "^3.0.0",
|
|
120
120
|
"anser": "^1.4.9",
|
|
121
121
|
"ansi-regex": "^5.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|