react-native-tvos 0.81.5-0 → 0.81.5-1

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.
@@ -104,10 +104,12 @@ function TVFocusGuideView({
104
104
  const mergedRef = useMergeRefs(setLocalRef, ref);
105
105
 
106
106
  React.useEffect(() => {
107
- if (destinationsProp !== null && destinationsProp !== undefined) {
107
+ if (focusable === false) {
108
+ setDestinations([]);
109
+ } else if (destinationsProp !== null && destinationsProp !== undefined) {
108
110
  setDestinations(destinationsProp); // $FlowFixMe[incompatible-call]
109
111
  }
110
- }, [setDestinations, destinationsProp]);
112
+ }, [setDestinations, destinationsProp, focusable]);
111
113
 
112
114
  const enabledStyle = {display: enabled ? 'flex' : 'none'};
113
115
  const style = [styles.container, props.style, enabledStyle];
@@ -124,7 +126,7 @@ function TVFocusGuideView({
124
126
  style={style}
125
127
  ref={mergedRef}
126
128
  collapsable={false}
127
- autoFocus={autoFocus}
129
+ autoFocus={focusable === false ? true : autoFocus}
128
130
  // tvOS only prop
129
131
  isTVSelectable={tvOSSelectable}
130
132
  // Android TV only prop
@@ -18,5 +18,5 @@ export const version: $ReadOnly<{
18
18
  major: 0,
19
19
  minor: 81,
20
20
  patch: 5,
21
- prerelease: '0',
21
+ prerelease: '1',
22
22
  };
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(81),
26
26
  RCTVersionPatch: @(5),
27
- RCTVersionPrerelease: @"0",
27
+ RCTVersionPrerelease: @"1",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.81.5-0
1
+ VERSION_NAME=0.81.5-1
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
 
4
4
  android.useAndroidX=true
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 81,
17
17
  "patch" to 5,
18
- "prerelease" to "0"
18
+ "prerelease" to "1"
19
19
  )
20
20
  }
@@ -413,7 +413,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
413
413
  // that. This method will eventually replace requestFocusInternal()
414
414
  private fun requestFocusProgrammatically(): Boolean {
415
415
  val focused = super.requestFocus(FOCUS_DOWN, null)
416
- if (isInTouchMode && showSoftInputOnFocus) {
416
+ if (showSoftInputOnFocus) {
417
417
  showSoftKeyboard()
418
418
  } else {
419
419
  if (isKeyboardOpened) {
@@ -108,7 +108,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
108
108
  view.isFocusable = false
109
109
  view.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS
110
110
  } else {
111
- view.descendantFocusability = ViewGroup.FOCUS_BEFORE_DESCENDANTS
111
+ view.descendantFocusability = ViewGroup.FOCUS_AFTER_DESCENDANTS
112
112
  }
113
113
  }
114
114
 
@@ -395,8 +395,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
395
395
  } else {
396
396
  view.setOnClickListener(null)
397
397
  view.isClickable = false
398
- // Don't set view.setFocusable(false) because we might still want it to be focusable for
399
- // accessibility reasons
398
+ view.isFocusable = false
400
399
  }
401
400
  // This is required to handle Android TV/ Fire TV Devices that are Touch Enabled as well as LeanBack
402
401
  // https://developer.android.com/reference/android/view/View#requestFocus(int,%20android.graphics.Rect)
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 81;
24
24
  int32_t Patch = 5;
25
- std::string_view Prerelease = "0";
25
+ std::string_view Prerelease = "1";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.81.5-0",
3
+ "version": "0.81.5-1",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -198,7 +198,7 @@
198
198
  "whatwg-fetch": "^3.0.0",
199
199
  "ws": "^6.2.3",
200
200
  "yargs": "^17.6.2",
201
- "@react-native-tvos/virtualized-lists": "0.81.5-0"
201
+ "@react-native-tvos/virtualized-lists": "0.81.5-1"
202
202
  },
203
203
  "codegenConfig": {
204
204
  "libraries": [