react-native-tvos 0.77.2-0 → 0.77.2-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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +8 -20
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +2 -2
package/React/Base/RCTVersion.m
CHANGED
|
@@ -78,7 +78,8 @@ publishing {
|
|
|
78
78
|
}
|
|
79
79
|
maven {
|
|
80
80
|
name = 'sonatypeRelease'
|
|
81
|
-
url = 'https://
|
|
81
|
+
url = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
|
|
82
|
+
// url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
|
|
82
83
|
credentials(PasswordCredentials) {
|
|
83
84
|
username = sonatypeUsername
|
|
84
85
|
password = sonatypePassword
|
|
@@ -86,7 +87,8 @@ publishing {
|
|
|
86
87
|
}
|
|
87
88
|
maven {
|
|
88
89
|
name = 'sonatypeSnapshot'
|
|
89
|
-
url = 'https://
|
|
90
|
+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
|
|
91
|
+
// url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
|
|
90
92
|
credentials(PasswordCredentials) {
|
|
91
93
|
username = sonatypeUsername
|
|
92
94
|
password = sonatypePassword
|
package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java
CHANGED
|
@@ -154,7 +154,7 @@ public class ReactHorizontalScrollView extends HorizontalScrollView
|
|
|
154
154
|
|
|
155
155
|
@Override
|
|
156
156
|
protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
|
|
157
|
-
if (mScrollEnabled) {
|
|
157
|
+
if (!mScrollEnabled) {
|
|
158
158
|
return 0;
|
|
159
159
|
}
|
|
160
160
|
return super.computeScrollDeltaToGetChildRectOnScreen(rect);
|
|
@@ -400,6 +400,14 @@ public class ReactScrollView extends ScrollView
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
+
@Override
|
|
404
|
+
protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
|
|
405
|
+
if (!mScrollEnabled) {
|
|
406
|
+
return 0;
|
|
407
|
+
}
|
|
408
|
+
return super.computeScrollDeltaToGetChildRectOnScreen(rect);
|
|
409
|
+
}
|
|
410
|
+
|
|
403
411
|
@Override
|
|
404
412
|
protected void onScrollChanged(int x, int y, int oldX, int oldY) {
|
|
405
413
|
Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "ReactScrollView.onScrollChanged");
|
|
@@ -1209,22 +1209,6 @@ public class ReactViewGroup extends ViewGroup
|
|
|
1209
1209
|
return null;
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
private static boolean requestFocusViewOrAncestor(View destination) {
|
|
1213
|
-
View v = destination;
|
|
1214
|
-
while (v != null) {
|
|
1215
|
-
if (v.requestFocus()) {
|
|
1216
|
-
return true;
|
|
1217
|
-
}
|
|
1218
|
-
ViewParent parent = v.getParent();
|
|
1219
|
-
if (parent instanceof View) {
|
|
1220
|
-
v = (View) parent;
|
|
1221
|
-
} else {
|
|
1222
|
-
v = null;
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
return false;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
1212
|
private boolean isFocusDestinationsSet() {
|
|
1229
1213
|
return focusDestinations.length > 0;
|
|
1230
1214
|
}
|
|
@@ -1381,7 +1365,13 @@ public class ReactViewGroup extends ViewGroup
|
|
|
1381
1365
|
if (isFocusDestinationsSet()) {
|
|
1382
1366
|
View destination = findDestinationView();
|
|
1383
1367
|
|
|
1384
|
-
|
|
1368
|
+
// Destination is set but there's no such element on the tree
|
|
1369
|
+
// Just skip it to prevent cyclic issues.
|
|
1370
|
+
if (destination == null) {
|
|
1371
|
+
return false;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
if (destination != null && destination.requestFocus()) {
|
|
1385
1375
|
return true;
|
|
1386
1376
|
}
|
|
1387
1377
|
}
|
|
@@ -1406,9 +1396,7 @@ public class ReactViewGroup extends ViewGroup
|
|
|
1406
1396
|
}
|
|
1407
1397
|
|
|
1408
1398
|
// Try moving the focus to the first focusable element otherwise.
|
|
1409
|
-
|
|
1410
|
-
return true;
|
|
1411
|
-
}
|
|
1399
|
+
return moveFocusToFirstFocusable(this);
|
|
1412
1400
|
}
|
|
1413
1401
|
|
|
1414
1402
|
return super.requestFocus(direction, previouslyFocusedRect);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.77.2-
|
|
3
|
+
"version": "0.77.2-2",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@react-native/gradle-plugin": "0.77.2",
|
|
119
119
|
"@react-native/js-polyfills": "0.77.2",
|
|
120
120
|
"@react-native/normalize-colors": "0.77.2",
|
|
121
|
-
"@react-native-tvos/virtualized-lists": "0.77.2-
|
|
121
|
+
"@react-native-tvos/virtualized-lists": "0.77.2-2",
|
|
122
122
|
"abort-controller": "^3.0.0",
|
|
123
123
|
"anser": "^1.4.9",
|
|
124
124
|
"ansi-regex": "^5.0.0",
|