react-native-tvos 0.77.2-1 → 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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 77,
19
19
  patch: 2,
20
- prerelease: '1',
20
+ prerelease: '2',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(77),
26
26
  RCTVersionPatch: @(2),
27
- RCTVersionPrerelease: @"1",
27
+ RCTVersionPrerelease: @"2",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.77.2-1
1
+ VERSION_NAME=0.77.2-2
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
 
4
4
  android.useAndroidX=true
@@ -78,7 +78,8 @@ publishing {
78
78
  }
79
79
  maven {
80
80
  name = 'sonatypeRelease'
81
- url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
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://s01.oss.sonatype.org/content/repositories/snapshots/'
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
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 77,
20
20
  "patch", 2,
21
- "prerelease", "1");
21
+ "prerelease", "2");
22
22
  }
@@ -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
- if (destination != null && requestFocusViewOrAncestor(destination)) {
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
- if (moveFocusToFirstFocusable(this)) {
1410
- return true;
1411
- }
1399
+ return moveFocusToFirstFocusable(this);
1412
1400
  }
1413
1401
 
1414
1402
  return super.requestFocus(direction, previouslyFocusedRect);
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 77;
20
20
  int32_t Patch = 2;
21
- std::string_view Prerelease = "1";
21
+ std::string_view Prerelease = "2";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.77.2-1",
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-1",
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",