react-native-tvos 0.68.2-0 → 0.68.2-3

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.
Files changed (77) hide show
  1. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +6 -6
  2. package/Libraries/Components/Pressable/Pressable.js +13 -2
  3. package/Libraries/Components/Pressable/useAndroidRippleForView.js +3 -1
  4. package/Libraries/Components/{AppleTV → TV}/NativeTVNavigationEventEmitter.js +0 -0
  5. package/Libraries/Components/{AppleTV → TV}/TVEventControl.js +0 -0
  6. package/Libraries/Components/{AppleTV → TV}/TVEventHandler.js +0 -0
  7. package/Libraries/Components/{AppleTV → TV}/TVFocusEventHandler.js +0 -0
  8. package/Libraries/Components/TV/TVFocusGuideView.js +135 -0
  9. package/Libraries/Components/{AppleTV → TV}/TVTextScrollView.js +0 -0
  10. package/Libraries/Components/{AppleTV → TV}/TVViewPropTypes.js +0 -0
  11. package/Libraries/Components/{AppleTV → TV}/tagForComponentOrHandle.js +0 -0
  12. package/Libraries/Components/{AppleTV → TV}/useTVEventHandler.js +0 -0
  13. package/Libraries/Components/Touchable/TVTouchable.js +1 -1
  14. package/Libraries/Components/Touchable/Touchable.js +1 -1
  15. package/Libraries/Components/Touchable/TouchableHighlight.js +2 -2
  16. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +7 -6
  17. package/Libraries/Components/Touchable/TouchableOpacity.js +2 -2
  18. package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -1
  19. package/Libraries/Components/View/ViewPropTypes.js +1 -1
  20. package/Libraries/Lists/VirtualizedSectionList.js +2 -1
  21. package/Libraries/LogBox/UI/AnsiHighlight.js +4 -2
  22. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +2 -2
  23. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -1
  24. package/Libraries/Utilities/BackHandler.ios.js +1 -1
  25. package/Libraries/Utilities/ReactNativeTestTools.js +5 -7
  26. package/README.md +6 -1
  27. package/ReactAndroid/gradle.properties +1 -1
  28. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +8 -0
  29. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +8 -0
  30. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +173 -103
  31. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +20 -0
  32. package/android/com/facebook/react/react-native/{0.68.2-0/react-native-0.68.2-0-sources.jar → 0.68.2-3/react-native-0.68.2-3-sources.jar} +0 -0
  33. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3-sources.jar.md5 +1 -0
  34. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3-sources.jar.sha1 +1 -0
  35. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3-sources.jar.sha256 +1 -0
  36. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3-sources.jar.sha512 +1 -0
  37. package/android/com/facebook/react/react-native/{0.68.2-0/react-native-0.68.2-0.aar → 0.68.2-3/react-native-0.68.2-3.aar} +0 -0
  38. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.aar.md5 +1 -0
  39. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.aar.sha1 +1 -0
  40. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.aar.sha256 +1 -0
  41. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.aar.sha512 +1 -0
  42. package/android/com/facebook/react/react-native/{0.68.2-0/react-native-0.68.2-0.module → 0.68.2-3/react-native-0.68.2-3.module} +15 -15
  43. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.module.md5 +1 -0
  44. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.module.sha1 +1 -0
  45. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.module.sha256 +1 -0
  46. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.module.sha512 +1 -0
  47. package/android/com/facebook/react/react-native/{0.68.2-0/react-native-0.68.2-0.pom → 0.68.2-3/react-native-0.68.2-3.pom} +1 -1
  48. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.pom.md5 +1 -0
  49. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.pom.sha1 +1 -0
  50. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.pom.sha256 +1 -0
  51. package/android/com/facebook/react/react-native/0.68.2-3/react-native-0.68.2-3.pom.sha512 +1 -0
  52. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  53. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  54. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  55. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  56. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  57. package/index.js +11 -11
  58. package/package.json +1 -1
  59. package/template/package.json +1 -1
  60. package/tvos-types.d.ts +4 -0
  61. package/Libraries/Components/AppleTV/TVFocusGuideView.js +0 -79
  62. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0-sources.jar.md5 +0 -1
  63. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0-sources.jar.sha1 +0 -1
  64. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0-sources.jar.sha256 +0 -1
  65. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0-sources.jar.sha512 +0 -1
  66. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.aar.md5 +0 -1
  67. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.aar.sha1 +0 -1
  68. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.aar.sha256 +0 -1
  69. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.aar.sha512 +0 -1
  70. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.module.md5 +0 -1
  71. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.module.sha1 +0 -1
  72. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.module.sha256 +0 -1
  73. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.module.sha512 +0 -1
  74. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.pom.md5 +0 -1
  75. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.pom.sha1 +0 -1
  76. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.pom.sha256 +0 -1
  77. package/android/com/facebook/react/react-native/0.68.2-0/react-native-0.68.2-0.pom.sha512 +0 -1
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.68.2-0</latest>
7
- <release>0.68.2-0</release>
6
+ <latest>0.68.2-3</latest>
7
+ <release>0.68.2-3</release>
8
8
  <versions>
9
- <version>0.68.2-0</version>
9
+ <version>0.68.2-3</version>
10
10
  </versions>
11
- <lastUpdated>20220518201054</lastUpdated>
11
+ <lastUpdated>20220715051221</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 7f9cf5d3918b7236012cb1c1a2e31aff
1
+ 62e7f99d8fd667ee1cb35867574a2e04
@@ -1 +1 @@
1
- 5d4fd757a2cf4b1b379dc422ab9caab9195ad70e
1
+ 5211192c41720f2759e689a8cc85b29931c852b9
@@ -1 +1 @@
1
- f04627dd3a921dda0d79b1924be5ce78ce965b9927e16d45cdab85cf77a26baa
1
+ 8689be46aa38919cd2f83237b3a405d3d3eec526fe5832d77179b79a3e938f65
@@ -1 +1 @@
1
- df696e26bd8512f4a220b5bda2d06d8386c914b3c6f4e372cfac42a4bea3ba7780558adbae833f774587bcf4d0b5fd9296a5face771df140984644eb7c2fab6e
1
+ 6cc110651004af319a8afb746c2fe24b80bd409af40ff0dcc057ae0763f0caec854933d5cfa4dae17f6ed22555d3a56d600c9d78e0fe2c5c68c8456487ca06bc
package/index.js CHANGED
@@ -81,14 +81,14 @@ import typeof Systrace from './Libraries/Performance/Systrace';
81
81
  import typeof ToastAndroid from './Libraries/Components/ToastAndroid/ToastAndroid';
82
82
  import typeof * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';
83
83
  import typeof TabBarIOS from './Libraries/Components/TabBarIOS/TabBarIOS';
84
- import typeof TVEventHandler from './Libraries/Components/AppleTV/TVEventHandler';
85
- import typeof TVFocusGuideView from './Libraries/Components/AppleTV/TVFocusGuideView';
86
- import typeof TVEventControl from './Libraries/Components/AppleTV/TVEventControl';
87
- import typeof TVTextScrollView from './Libraries/Components/AppleTV/TVTextScrollView';
84
+ import typeof TVEventHandler from './Libraries/Components/TV/TVEventHandler';
85
+ import typeof TVFocusGuideView from './Libraries/Components/TV/TVFocusGuideView';
86
+ import typeof TVEventControl from './Libraries/Components/TV/TVEventControl';
87
+ import typeof TVTextScrollView from './Libraries/Components/TV/TVTextScrollView';
88
88
  import typeof UIManager from './Libraries/ReactNative/UIManager';
89
89
  import typeof useColorScheme from './Libraries/Utilities/useColorScheme';
90
90
  import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimensions';
91
- import typeof useTVEventHandler from './Libraries/Components/AppleTV/useTVEventHandler';
91
+ import typeof useTVEventHandler from './Libraries/Components/TV/useTVEventHandler';
92
92
  import typeof UTFSequence from './Libraries/UTFSequence';
93
93
  import typeof Vibration from './Libraries/Vibration/Vibration';
94
94
  import typeof YellowBox from './Libraries/YellowBox/YellowBoxDeprecated';
@@ -404,23 +404,23 @@ module.exports = {
404
404
  return require('./Libraries/TurboModule/TurboModuleRegistry');
405
405
  },
406
406
  get TVEventControl(): TVEventControl {
407
- return require('./Libraries/Components/AppleTV/TVEventControl');
407
+ return require('./Libraries/Components/TV/TVEventControl');
408
408
  },
409
409
  get TVEventHandler(): TVEventHandler {
410
- return require('./Libraries/Components/AppleTV/TVEventHandler');
410
+ return require('./Libraries/Components/TV/TVEventHandler');
411
411
  },
412
412
  get TVFocusGuideView(): TVFocusGuideView {
413
- return require('./Libraries/Components/AppleTV/TVFocusGuideView');
413
+ return require('./Libraries/Components/TV/TVFocusGuideView');
414
414
  },
415
415
  get TVMenuControl(): TVMenuControl {
416
416
  warnOnce(
417
417
  'TVMenuControl-moved',
418
418
  'TVMenuControl has been moved to TVEventControl, and now supports enabling/disabling both menu key events and pan gesture events.'
419
419
  );
420
- return require('./Libraries/Components/AppleTV/TVEventControl');
420
+ return require('./Libraries/Components/TV/TVEventControl');
421
421
  },
422
422
  get TVTextScrollView(): TVTextScrollView {
423
- return require('./Libraries/Components/AppleTV/TVTextScrollView');
423
+ return require('./Libraries/Components/TV/TVTextScrollView');
424
424
  },
425
425
  get UIManager(): UIManager {
426
426
  return require('./Libraries/ReactNative/UIManager');
@@ -439,7 +439,7 @@ module.exports = {
439
439
  return require('./Libraries/Utilities/useWindowDimensions').default;
440
440
  },
441
441
  get useTVEventHandler(): useTVEventHandler {
442
- return require('./Libraries/Components/AppleTV/useTVEventHandler');
442
+ return require('./Libraries/Components/TV/useTVEventHandler');
443
443
  },
444
444
  get UTFSequence(): UTFSequence {
445
445
  return require('./Libraries/UTFSequence');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.68.2-0",
3
+ "version": "0.68.2-3",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "npm:react-native-tvos@0.68.2-0"
14
+ "react-native": "npm:react-native-tvos@0.68.2-3"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
package/tvos-types.d.ts CHANGED
@@ -66,6 +66,10 @@ declare module 'react-native' {
66
66
  * Array of `Component`s to register as destinations with `UIFocusGuide`
67
67
  */
68
68
  destinations?: (null | number | React.Component<any, any> | React.ComponentClass<any>)[];
69
+ /**
70
+ * How the TVFocusGuideView content safe padding should be applied. "null" to disable it.
71
+ */
72
+ safePadding?: 'both' | 'vertical' | 'horizontal' | null;
69
73
  }
70
74
 
71
75
  /**
@@ -1,79 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- * @format
9
- */
10
-
11
- const React = require('react');
12
- const ReactNative = require('react-native');
13
- import ReactNativeShims from '../../Renderer/shims/ReactNative';
14
- const Platform = require('../../Utilities/Platform');
15
- import {Commands} from '../../Components/View/ViewNativeComponent';
16
- import type {ViewProps} from '../View/ViewPropTypes';
17
-
18
- type FocusGuideProps = $ReadOnly<{
19
- ...ViewProps,
20
-
21
- /**
22
- * The views the focus should go to
23
- */
24
- destinations: ?(Object[]),
25
- }>;
26
-
27
- const TVFocusGuideView = (props: FocusGuideProps) => {
28
- const focusGuideRef = React.useRef(null);
29
-
30
- React.useEffect(() => {
31
- const nativeDestinations = (props.destinations || [])
32
- .map(d => ReactNative.findNodeHandle(d))
33
- .filter(c => c !== 0 && c !== null && c !== undefined);
34
- const hostComponentRef = ReactNativeShims.findHostInstance_DEPRECATED(focusGuideRef?.current);
35
- hostComponentRef && Commands.setDestinations(hostComponentRef, nativeDestinations);
36
- }, [props.destinations]);
37
-
38
- return (
39
- // Container view must have nonzero size
40
- <ReactNative.View style={[{minHeight: 1, minWidth: 1}, props.style]}>
41
- {
42
- /**
43
- * The client specified layout(using 'style' prop) should be applied the container view ReactNative.View.
44
- * And the focusGuide's layout shoule be overrided to wrap it fully inside the container view.
45
- * For example, if the client specifies 'marginLeft' property in the style prop,
46
- * then the TVFocusGuideView will apply the 'marginLeft' for both the parentView and the focusGuideView.
47
- * and so, the left margin is getting added twice and UI becomes incorrect.
48
- * The same is applicable for other layout properties.
49
- */
50
- }
51
- {Platform.isTVOS ? (
52
- <ReactNative.View
53
- style={[props.style, styles.focusGuideLayout]}
54
- ref={focusGuideRef}
55
- >
56
- {props.children}
57
- </ReactNative.View>
58
- ) : (
59
- props.children
60
- )}
61
- </ReactNative.View>
62
- );
63
-
64
- };
65
-
66
- const styles = ReactNative.StyleSheet.create({
67
- focusGuideLayout: {
68
- left: 0,
69
- top: 0,
70
- right: 0,
71
- bottom: 0,
72
- marginLeft: 0,
73
- marginTop: 0,
74
- marginRight: 0,
75
- marginBottom: 0,
76
- },
77
- });
78
-
79
- module.exports = TVFocusGuideView;
@@ -1 +0,0 @@
1
- e4848eafde1521a5b293812d8187e65a
@@ -1 +0,0 @@
1
- 066480a88f3f451ca470696e9635aa26f0b205d7
@@ -1 +0,0 @@
1
- eaef9e636e00521d50e769b3fa0a549e350a7fd1b4afa64079ab4e288bd6b56c
@@ -1 +0,0 @@
1
- 4b0231c6c2a3157b7924db420fc069c1ffa240cc7f1115b440c84a3d0a73515ac86e77087e2377595e02dbc124a9905599bdd7dedc9b74764e541da226f2039e
@@ -1 +0,0 @@
1
- 014f5939c08dca2b3daad451e988b516
@@ -1 +0,0 @@
1
- 47e93c57dff21b477d3a5c989fac1907e401d2e0
@@ -1 +0,0 @@
1
- eeaf129e2bcb06fd7da630d18b6a24c2adc1f51144594bba59c27567bd6b9f75
@@ -1 +0,0 @@
1
- ad85e1cec19d8e898d2d138f6d5c6eca1fc409b26137866a4848aea5b1888f6e278ca772404477d21fb740dd7e78eb73f21ba78122d2625006b2e9b77fcb615f
@@ -1 +0,0 @@
1
- d70afe0c5e0aa5a599c06e14be38591c
@@ -1 +0,0 @@
1
- 652e51c0e667183d3939ff64d43f73fd244a7af8
@@ -1 +0,0 @@
1
- c4da2fa6b88a0196089e7f656b33d4bfec02d369807866eed8edb9d6798b2647
@@ -1 +0,0 @@
1
- 5baa208f672e5120628b7beb1a9fb97f95ee5c50a9ad714deb4699f657d53f7066152d72bd66efe32fc937f131c7f1980a5705403d650fb0491925c80ba1bce2
@@ -1 +0,0 @@
1
- 2092965c3b0ef8b96a56da5f3acecae8
@@ -1 +0,0 @@
1
- 3aac92dc6877e0dcc304ea63c4cc3ac053b3d52a
@@ -1 +0,0 @@
1
- f7a641988c61a5e5a611252f60bc1f9a8e324bf6f154a551f51a3cb365082869
@@ -1 +0,0 @@
1
- 87808d7490898d46275105a23da3f6199ee86a703148ebe1f8e7ccac21a6f5345dd350b86f3de9647a74b0a3e5db054c8bab74f16fe5dbf92136fc370007ee94