react-native-tvos 0.68.2-1 → 0.68.2-4

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 (78) hide show
  1. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +6 -6
  2. package/Libraries/Components/Pressable/Pressable.js +3 -3
  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 +2 -2
  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-1/react-native-0.68.2-1-sources.jar → 0.68.2-4/react-native-0.68.2-4-sources.jar} +0 -0
  33. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4-sources.jar.md5 +1 -0
  34. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4-sources.jar.sha1 +1 -0
  35. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4-sources.jar.sha256 +1 -0
  36. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4-sources.jar.sha512 +1 -0
  37. package/android/com/facebook/react/react-native/{0.68.2-1/react-native-0.68.2-1.aar → 0.68.2-4/react-native-0.68.2-4.aar} +0 -0
  38. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.aar.md5 +1 -0
  39. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.aar.sha1 +1 -0
  40. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.aar.sha256 +1 -0
  41. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.aar.sha512 +1 -0
  42. package/android/com/facebook/react/react-native/{0.68.2-1/react-native-0.68.2-1.module → 0.68.2-4/react-native-0.68.2-4.module} +15 -15
  43. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.module.md5 +1 -0
  44. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.module.sha1 +1 -0
  45. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.module.sha256 +1 -0
  46. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.module.sha512 +1 -0
  47. package/android/com/facebook/react/react-native/{0.68.2-1/react-native-0.68.2-1.pom → 0.68.2-4/react-native-0.68.2-4.pom} +1 -1
  48. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.pom.md5 +1 -0
  49. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.pom.sha1 +1 -0
  50. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.pom.sha256 +1 -0
  51. package/android/com/facebook/react/react-native/0.68.2-4/react-native-0.68.2-4.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/scripts/react_native_pods.rb +6 -1
  60. package/template/package.json +1 -1
  61. package/tvos-types.d.ts +4 -0
  62. package/Libraries/Components/AppleTV/TVFocusGuideView.js +0 -79
  63. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1-sources.jar.md5 +0 -1
  64. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1-sources.jar.sha1 +0 -1
  65. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1-sources.jar.sha256 +0 -1
  66. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1-sources.jar.sha512 +0 -1
  67. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.aar.md5 +0 -1
  68. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.aar.sha1 +0 -1
  69. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.aar.sha256 +0 -1
  70. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.aar.sha512 +0 -1
  71. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.module.md5 +0 -1
  72. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.module.sha1 +0 -1
  73. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.module.sha256 +0 -1
  74. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.module.sha512 +0 -1
  75. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.pom.md5 +0 -1
  76. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.pom.sha1 +0 -1
  77. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.pom.sha256 +0 -1
  78. package/android/com/facebook/react/react-native/0.68.2-1/react-native-0.68.2-1.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-1</latest>
7
- <release>0.68.2-1</release>
6
+ <latest>0.68.2-4</latest>
7
+ <release>0.68.2-4</release>
8
8
  <versions>
9
- <version>0.68.2-1</version>
9
+ <version>0.68.2-4</version>
10
10
  </versions>
11
- <lastUpdated>20220601233843</lastUpdated>
11
+ <lastUpdated>20220804185319</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- f1e6eac9f689f69334dcef5716223ae3
1
+ abb0f353e7edd3f10d7ecc130596228c
@@ -1 +1 @@
1
- 09947555b34be8d51ab0e004d9cb30cd637c3693
1
+ 0680027a6faa91ebe38e67e4bc57a7b8aae659f9
@@ -1 +1 @@
1
- 59b1d38f1f7862fb32a50d32ab21d9d8afdbb3c0de2abee6643322e5849c1526
1
+ 48408ffd7ec27f2852d15be0f721c38a182cdf1fac576196ef20996824af5e30
@@ -1 +1 @@
1
- 1af6405e8c27e3b7971074dda12a55a07a0395128f6d57e65d8101a6eb859ba460113fea9c00a86e43ed0a8904b0b18f062742971d995d42b6a09ca41b21f233
1
+ 556dd4ba67b2e436c2e07e67bdbfc6087554ca42998f2582c21f18eb6c579fe77a78a07b6bb41e4467ab40894974d76ec8d3c210b38830ccf2b8fff4a3b9b43f
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-1",
3
+ "version": "0.68.2-4",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -198,7 +198,8 @@ def exclude_architectures(installer)
198
198
  .push(installer.pods_project)
199
199
 
200
200
  # Hermes does not support `i386` architecture
201
- excluded_archs_default = has_pod(installer, 'hermes-engine') ? "i386" : ""
201
+ # Also exclude this arch when building on M1 machines
202
+ excluded_archs_default = (running_on_m1(installer) || has_pod(installer, 'hermes-engine')) ? "i386" : ""
202
203
 
203
204
  projects.each do |project|
204
205
  project.build_configurations.each do |config|
@@ -209,6 +210,10 @@ def exclude_architectures(installer)
209
210
  end
210
211
  end
211
212
 
213
+ def running_on_m1(installer)
214
+ return `/usr/sbin/sysctl -n hw.optional.arm64 2>&1`.to_i == 1
215
+ end
216
+
212
217
  def fix_library_search_paths(installer)
213
218
  def fix_config(config)
214
219
  lib_search_paths = config.build_settings["LIBRARY_SEARCH_PATHS"]
@@ -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-1"
14
+ "react-native": "npm:react-native-tvos@0.68.2-4"
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
- 57099b9ecfedec8304818338a299101f
@@ -1 +0,0 @@
1
- 44bed2c3038c58e469b5695694cc95bfbd2bc1d2
@@ -1 +0,0 @@
1
- c7b7c55711ec7ae31c6a61537240d7031c6c699887de4f4d1524604a4998a190
@@ -1 +0,0 @@
1
- 2501d5e45fd65fe3f12357122b6da57767924f409f9c16412dc2847c0515e0f57448334f1b1ec0e8f543da2ddf14f14ea83434f8013c5d1bf4eeb3783636bdfa
@@ -1 +0,0 @@
1
- dff581d81a597312cf1c16730d137bb9
@@ -1 +0,0 @@
1
- 3f08f6b86adb963e3efe72786f2c8660535261d4
@@ -1 +0,0 @@
1
- 7d3a36321a4d7b5516578d5befa3025a2b27ae06c4fc25cc1327d065ea94e124
@@ -1 +0,0 @@
1
- 0a010823f5151ec11a66955ba2de7d3d18962d3a5b787d7c2ac43e7d12b700d49ea67feb141d63b6cbcd63a9c64bd6793fed44a67b47fdce02014a849b9affa0
@@ -1 +0,0 @@
1
- ef391ddace9f87b2da253b7fe7e9b552
@@ -1 +0,0 @@
1
- 8e5e83fef141437f481eff06625d14650f7ecbb8
@@ -1 +0,0 @@
1
- e6adfecbde7989c3a9b26bd7e11517edfe88a74f03e509e1cfbb7b2b3de07d4d
@@ -1 +0,0 @@
1
- 8ae314898288cb0e030e425d736b7c82a0378f0b0fb14ba2e9ab709422bdf106bef8c393a93480a213770db4cf5a6a8c66399420b47c13f4b3a1c912d0888097
@@ -1 +0,0 @@
1
- 8d15219474f383cd992bac74a1a917db
@@ -1 +0,0 @@
1
- 9e026422df7dcc3f49bbcc38c69c651b901bd767
@@ -1 +0,0 @@
1
- 26ca38f377b476f3318b67a9cc61be26dba20c6aa2ff03ea05b997908b3e3a73
@@ -1 +0,0 @@
1
- b7e36f75e20de3d3e9ec6728d2d102790ca3bab9f45e4e8614f4c675408bf5eb770e7dc27b886ce04928eb17f54c1e33815b1875a7abbc227281dc59f0df0604