react-native-tvos 0.73.0-0rc2 → 0.73.1-0

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 (43) hide show
  1. package/Libraries/AppDelegate/RCTAppDelegate.mm +2 -2
  2. package/Libraries/AppDelegate/RCTLegacyInteropComponents.mm +5 -1
  3. package/Libraries/Components/TabBarIOS/RCTTabBarItemNativeComponent.js +1 -1
  4. package/Libraries/Components/TabBarIOS/RCTTabBarNativeComponent.js +1 -1
  5. package/Libraries/Core/ReactNativeVersion.js +2 -2
  6. package/README.md +21 -3
  7. package/React/Base/RCTVersion.m +2 -2
  8. package/React/DevSupport/RCTInspectorDevServerHelper.mm +60 -4
  9. package/React/Fabric/RCTThirdPartyFabricComponentsProvider.h +33 -0
  10. package/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm +32 -0
  11. package/React/Views/SafeAreaView/RCTSafeAreaView.m +6 -1
  12. package/ReactAndroid/gradle.properties +1 -1
  13. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +1 -4
  14. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +70 -5
  15. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactAndroidHWInputDeviceHelper.java +2 -0
  16. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
  17. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -10
  18. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +33 -38
  19. package/ReactAndroid/src/main/jni/react/fabric/Binding.h +5 -1
  20. package/ReactAndroid/src/main/jni/react/fabric/JFabricUIManager.cpp +3 -2
  21. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  22. package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +29 -0
  23. package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +134 -0
  24. package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +171 -0
  25. package/ReactCommon/react/renderer/components/rncore/Props.cpp +157 -0
  26. package/ReactCommon/react/renderer/components/rncore/Props.h +394 -0
  27. package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +257 -0
  28. package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +26 -0
  29. package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +111 -0
  30. package/ReactCommon/react/renderer/components/rncore/States.cpp +18 -0
  31. package/ReactCommon/react/renderer/components/rncore/States.h +141 -0
  32. package/ReactCommon/react/renderer/components/view/propsConversions.h +1 -2
  33. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +0 -1
  34. package/package.json +9 -9
  35. package/scripts/cocoapods/codegen.rb +5 -16
  36. package/scripts/cocoapods/codegen_utils.rb +1 -0
  37. package/scripts/cocoapods/utils.rb +2 -1
  38. package/sdks/hermesc/osx-bin/hermes +0 -0
  39. package/sdks/hermesc/osx-bin/hermesc +0 -0
  40. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  41. package/template/android/build.gradle +2 -2
  42. package/template/ios/Podfile +23 -20
  43. package/template/package.json +2 -2
@@ -0,0 +1,111 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <react/renderer/components/rncore/EventEmitters.h>
14
+ #include <react/renderer/components/rncore/Props.h>
15
+ #include <react/renderer/components/rncore/States.h>
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook {
20
+ namespace react {
21
+
22
+ JSI_EXPORT extern const char ActivityIndicatorViewComponentName[];
23
+
24
+ /*
25
+ * `ShadowNode` for <ActivityIndicatorView> component.
26
+ */
27
+ using ActivityIndicatorViewShadowNode = ConcreteViewShadowNode<
28
+ ActivityIndicatorViewComponentName,
29
+ ActivityIndicatorViewProps,
30
+ ActivityIndicatorViewEventEmitter,
31
+ ActivityIndicatorViewState>;
32
+
33
+ JSI_EXPORT extern const char AndroidDrawerLayoutComponentName[];
34
+
35
+ /*
36
+ * `ShadowNode` for <AndroidDrawerLayout> component.
37
+ */
38
+ using AndroidDrawerLayoutShadowNode = ConcreteViewShadowNode<
39
+ AndroidDrawerLayoutComponentName,
40
+ AndroidDrawerLayoutProps,
41
+ AndroidDrawerLayoutEventEmitter,
42
+ AndroidDrawerLayoutState>;
43
+
44
+ JSI_EXPORT extern const char AndroidSwipeRefreshLayoutComponentName[];
45
+
46
+ /*
47
+ * `ShadowNode` for <AndroidSwipeRefreshLayout> component.
48
+ */
49
+ using AndroidSwipeRefreshLayoutShadowNode = ConcreteViewShadowNode<
50
+ AndroidSwipeRefreshLayoutComponentName,
51
+ AndroidSwipeRefreshLayoutProps,
52
+ AndroidSwipeRefreshLayoutEventEmitter,
53
+ AndroidSwipeRefreshLayoutState>;
54
+
55
+ JSI_EXPORT extern const char PullToRefreshViewComponentName[];
56
+
57
+ /*
58
+ * `ShadowNode` for <PullToRefreshView> component.
59
+ */
60
+ using PullToRefreshViewShadowNode = ConcreteViewShadowNode<
61
+ PullToRefreshViewComponentName,
62
+ PullToRefreshViewProps,
63
+ PullToRefreshViewEventEmitter,
64
+ PullToRefreshViewState>;
65
+
66
+ JSI_EXPORT extern const char AndroidHorizontalScrollContentViewComponentName[];
67
+
68
+ /*
69
+ * `ShadowNode` for <AndroidHorizontalScrollContentView> component.
70
+ */
71
+ using AndroidHorizontalScrollContentViewShadowNode = ConcreteViewShadowNode<
72
+ AndroidHorizontalScrollContentViewComponentName,
73
+ AndroidHorizontalScrollContentViewProps,
74
+ AndroidHorizontalScrollContentViewEventEmitter,
75
+ AndroidHorizontalScrollContentViewState>;
76
+
77
+ JSI_EXPORT extern const char SwitchComponentName[];
78
+
79
+ /*
80
+ * `ShadowNode` for <Switch> component.
81
+ */
82
+ using SwitchShadowNode = ConcreteViewShadowNode<
83
+ SwitchComponentName,
84
+ SwitchProps,
85
+ SwitchEventEmitter,
86
+ SwitchState>;
87
+
88
+ JSI_EXPORT extern const char TraceUpdateOverlayComponentName[];
89
+
90
+ /*
91
+ * `ShadowNode` for <TraceUpdateOverlay> component.
92
+ */
93
+ using TraceUpdateOverlayShadowNode = ConcreteViewShadowNode<
94
+ TraceUpdateOverlayComponentName,
95
+ TraceUpdateOverlayProps,
96
+ TraceUpdateOverlayEventEmitter,
97
+ TraceUpdateOverlayState>;
98
+
99
+ JSI_EXPORT extern const char UnimplementedNativeViewComponentName[];
100
+
101
+ /*
102
+ * `ShadowNode` for <UnimplementedNativeView> component.
103
+ */
104
+ using UnimplementedNativeViewShadowNode = ConcreteViewShadowNode<
105
+ UnimplementedNativeViewComponentName,
106
+ UnimplementedNativeViewProps,
107
+ UnimplementedNativeViewEventEmitter,
108
+ UnimplementedNativeViewState>;
109
+
110
+ } // namespace react
111
+ } // namespace facebook
@@ -0,0 +1,18 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include <react/renderer/components/rncore/States.h>
11
+
12
+ namespace facebook {
13
+ namespace react {
14
+
15
+
16
+
17
+ } // namespace react
18
+ } // namespace facebook
@@ -0,0 +1,141 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #include <react/renderer/mapbuffer/MapBuffer.h>
14
+ #include <react/renderer/mapbuffer/MapBufferBuilder.h>
15
+ #endif
16
+
17
+ namespace facebook {
18
+ namespace react {
19
+
20
+ class ActivityIndicatorViewState {
21
+ public:
22
+ ActivityIndicatorViewState() = default;
23
+
24
+ #ifdef ANDROID
25
+ ActivityIndicatorViewState(ActivityIndicatorViewState const &previousState, folly::dynamic data){};
26
+ folly::dynamic getDynamic() const {
27
+ return {};
28
+ };
29
+ MapBuffer getMapBuffer() const {
30
+ return MapBufferBuilder::EMPTY();
31
+ };
32
+ #endif
33
+ };
34
+
35
+ class AndroidDrawerLayoutState {
36
+ public:
37
+ AndroidDrawerLayoutState() = default;
38
+
39
+ #ifdef ANDROID
40
+ AndroidDrawerLayoutState(AndroidDrawerLayoutState const &previousState, folly::dynamic data){};
41
+ folly::dynamic getDynamic() const {
42
+ return {};
43
+ };
44
+ MapBuffer getMapBuffer() const {
45
+ return MapBufferBuilder::EMPTY();
46
+ };
47
+ #endif
48
+ };
49
+
50
+ class AndroidSwipeRefreshLayoutState {
51
+ public:
52
+ AndroidSwipeRefreshLayoutState() = default;
53
+
54
+ #ifdef ANDROID
55
+ AndroidSwipeRefreshLayoutState(AndroidSwipeRefreshLayoutState const &previousState, folly::dynamic data){};
56
+ folly::dynamic getDynamic() const {
57
+ return {};
58
+ };
59
+ MapBuffer getMapBuffer() const {
60
+ return MapBufferBuilder::EMPTY();
61
+ };
62
+ #endif
63
+ };
64
+
65
+ class PullToRefreshViewState {
66
+ public:
67
+ PullToRefreshViewState() = default;
68
+
69
+ #ifdef ANDROID
70
+ PullToRefreshViewState(PullToRefreshViewState const &previousState, folly::dynamic data){};
71
+ folly::dynamic getDynamic() const {
72
+ return {};
73
+ };
74
+ MapBuffer getMapBuffer() const {
75
+ return MapBufferBuilder::EMPTY();
76
+ };
77
+ #endif
78
+ };
79
+
80
+ class AndroidHorizontalScrollContentViewState {
81
+ public:
82
+ AndroidHorizontalScrollContentViewState() = default;
83
+
84
+ #ifdef ANDROID
85
+ AndroidHorizontalScrollContentViewState(AndroidHorizontalScrollContentViewState const &previousState, folly::dynamic data){};
86
+ folly::dynamic getDynamic() const {
87
+ return {};
88
+ };
89
+ MapBuffer getMapBuffer() const {
90
+ return MapBufferBuilder::EMPTY();
91
+ };
92
+ #endif
93
+ };
94
+
95
+ class SwitchState {
96
+ public:
97
+ SwitchState() = default;
98
+
99
+ #ifdef ANDROID
100
+ SwitchState(SwitchState const &previousState, folly::dynamic data){};
101
+ folly::dynamic getDynamic() const {
102
+ return {};
103
+ };
104
+ MapBuffer getMapBuffer() const {
105
+ return MapBufferBuilder::EMPTY();
106
+ };
107
+ #endif
108
+ };
109
+
110
+ class TraceUpdateOverlayState {
111
+ public:
112
+ TraceUpdateOverlayState() = default;
113
+
114
+ #ifdef ANDROID
115
+ TraceUpdateOverlayState(TraceUpdateOverlayState const &previousState, folly::dynamic data){};
116
+ folly::dynamic getDynamic() const {
117
+ return {};
118
+ };
119
+ MapBuffer getMapBuffer() const {
120
+ return MapBufferBuilder::EMPTY();
121
+ };
122
+ #endif
123
+ };
124
+
125
+ class UnimplementedNativeViewState {
126
+ public:
127
+ UnimplementedNativeViewState() = default;
128
+
129
+ #ifdef ANDROID
130
+ UnimplementedNativeViewState(UnimplementedNativeViewState const &previousState, folly::dynamic data){};
131
+ folly::dynamic getDynamic() const {
132
+ return {};
133
+ };
134
+ MapBuffer getMapBuffer() const {
135
+ return MapBufferBuilder::EMPTY();
136
+ };
137
+ #endif
138
+ };
139
+
140
+ } // namespace react
141
+ } // namespace facebook
@@ -10,7 +10,6 @@
10
10
  #include <react/renderer/components/view/conversions.h>
11
11
  #include <react/renderer/core/PropsParserContext.h>
12
12
  #include <react/renderer/core/propsConversions.h>
13
- #include <butter/map.h>
14
13
 
15
14
  #include <optional>
16
15
 
@@ -561,7 +560,7 @@ inline void fromRawValue(
561
560
  const PropsParserContext &,
562
561
  const RawValue &value,
563
562
  TVParallaxProperties &result) {
564
- auto map = (butter::map<std::string, RawValue>)value;
563
+ auto map = (std::unordered_map<std::string, RawValue>)value;
565
564
 
566
565
  auto enabled = map.find("enabled");
567
566
  if (enabled != map.end()) {
@@ -56,7 +56,6 @@ Pod::Spec.new do |s|
56
56
 
57
57
  s.dependency "RCT-Folly/Fabric"
58
58
  s.dependency "React-Core/Default"
59
- s.dependency "React-RCTImage"
60
59
  s.dependency "glog"
61
60
 
62
61
  add_dependency(s, "React-Fabric")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.73.0-0rc2",
3
+ "version": "0.73.1-0",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -94,16 +94,16 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@jest/create-cache-key-function": "^29.6.3",
97
- "@react-native-community/cli": "12.1.1",
98
- "@react-native-community/cli-platform-android": "12.1.1",
99
- "@react-native-community/cli-platform-ios": "12.1.1",
97
+ "@react-native-community/cli": "12.3.0",
98
+ "@react-native-community/cli-platform-android": "12.3.0",
99
+ "@react-native-community/cli-platform-ios": "12.3.0",
100
100
  "@react-native/assets-registry": "^0.73.1",
101
- "@react-native/community-cli-plugin": "^0.73.9",
102
- "@react-native/codegen": "^0.73.1",
103
- "@react-native/gradle-plugin": "^0.73.3",
101
+ "@react-native/community-cli-plugin": "0.73.11",
102
+ "@react-native/codegen": "^0.73.2",
103
+ "@react-native/gradle-plugin": "^0.73.4",
104
104
  "@react-native/js-polyfills": "^0.73.1",
105
105
  "@react-native/normalize-colors": "^0.73.2",
106
- "@react-native/virtualized-lists": "^0.73.3",
106
+ "@react-native/virtualized-lists": "^0.73.4",
107
107
  "abort-controller": "^3.0.0",
108
108
  "anser": "^1.4.9",
109
109
  "ansi-regex": "^5.0.0",
@@ -150,6 +150,6 @@
150
150
  ]
151
151
  },
152
152
  "devDependencies": {
153
- "react-native-core": "npm:react-native@0.73.0-rc.5"
153
+ "react-native-core": "npm:react-native@0.73.1"
154
154
  }
155
155
  }
@@ -11,23 +11,12 @@
11
11
  # - dir_manager: a class that implements the `Dir` interface. Defaults to `Dir`, the Dependency can be injected for testing purposes.
12
12
  # @throws an error if it could not find the codegen folder.
13
13
  def build_codegen!(react_native_path, relative_installation_root, dir_manager: Dir)
14
- codegen_repo_path = "#{basePath(react_native_path, relative_installation_root)}/../react-native-codegen";
15
- codegen_npm_path = "#{basePath(react_native_path, relative_installation_root)}/../@react-native/codegen";
16
- codegen_cli_path = ""
14
+ codegen_repo_path = "#{basePath(react_native_path, relative_installation_root)}/../react-native-codegen"
15
+ return unless dir_manager.exist?(codegen_repo_path) && !dir_manager.exist?("#{codegen_repo_path}/lib")
17
16
 
18
- if dir_manager.exist?(codegen_repo_path)
19
- codegen_cli_path = codegen_repo_path
20
- elsif dir_manager.exist?(codegen_npm_path)
21
- codegen_cli_path = codegen_npm_path
22
- else
23
- raise "[codegen] Could not find react-native-codegen."
24
- end
25
-
26
- if !dir_manager.exist?("#{codegen_cli_path}/lib")
27
- Pod::UI.puts "[Codegen] building #{codegen_cli_path}."
28
- system("#{codegen_cli_path}/scripts/oss/build.sh")
29
- end
30
- end
17
+ Pod::UI.puts "[Codegen] building #{codegen_repo_path}"
18
+ system("#{codegen_repo_path}/scripts/oss/build.sh")
19
+ end
31
20
 
32
21
  # It generates an empty `ThirdPartyProvider`, required by Fabric to load the components
33
22
  #
@@ -144,6 +144,7 @@ class CodegenUtils
144
144
  'React-graphics': [],
145
145
  'React-rendererdebug': [],
146
146
  'React-Fabric': [],
147
+ 'React-FabricImage': [],
147
148
  'React-debug': [],
148
149
  'React-utils': [],
149
150
  });
@@ -564,7 +564,8 @@ class ReactNativePodsUtils
564
564
  "NSAppTransportSecurity" => ats_configs
565
565
  }
566
566
  else
567
- plist["NSAppTransportSecurity"] = ats_configs
567
+ plist["NSAppTransportSecurity"] ||= {}
568
+ plist["NSAppTransportSecurity"] = plist["NSAppTransportSecurity"].merge(ats_configs)
568
569
  end
569
570
  Xcodeproj::Plist.write_to_path(plist, fullPlistPath)
570
571
  end
Binary file
Binary file
Binary file
@@ -1,5 +1,3 @@
1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
1
  buildscript {
4
2
  ext {
5
3
  buildToolsVersion = "34.0.0"
@@ -19,3 +17,5 @@ buildscript {
19
17
  classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
20
18
  }
21
19
  }
20
+
21
+ apply plugin: "com.facebook.react.rootproject"
@@ -18,27 +18,30 @@ if linkage != nil
18
18
  use_frameworks! :linkage => linkage.to_sym
19
19
  end
20
20
 
21
- target 'HelloWorld' do
22
- config = use_native_modules!
23
- platform :ios, min_ios_version_supported
21
+ ####### For now, only one target at a time can be used in a React Native podfile ########
22
+ ####### https://github.com/react-native-tvos/react-native-tvos/issues/619 ########
24
23
 
25
- use_react_native!(
26
- :path => config[:reactNativePath],
27
- # Enables Flipper.
28
- #
29
- # Note that if you have use_frameworks! enabled, Flipper will not work and
30
- # you should disable the next line.
31
- :flipper_configuration => flipper_config,
32
- # An absolute path to your application root.
33
- :app_path => "#{Pod::Config.instance.installation_root}/.."
34
- )
35
-
36
- target 'HelloWorldTests' do
37
- inherit! :complete
38
- # Pods for testing
39
- end
40
-
41
- end
24
+ # target 'HelloWorld' do
25
+ # config = use_native_modules!
26
+ # platform :ios, min_ios_version_supported
27
+ #
28
+ # use_react_native!(
29
+ # :path => config[:reactNativePath],
30
+ # # Enables Flipper.
31
+ # #
32
+ # # Note that if you have use_frameworks! enabled, Flipper will not work and
33
+ # # you should disable the next line.
34
+ # :flipper_configuration => flipper_config,
35
+ # # An absolute path to your application root.
36
+ # :app_path => "#{Pod::Config.instance.installation_root}/.."
37
+ # )
38
+ #
39
+ # target 'HelloWorldTests' do
40
+ # inherit! :complete
41
+ # # Pods for testing
42
+ # end
43
+ #
44
+ # end
42
45
 
43
46
  target 'HelloWorld-tvOS' do
44
47
  config = use_native_modules!
@@ -11,9 +11,9 @@
11
11
  "test": "jest"
12
12
  },
13
13
  "dependencies": {
14
- "expo": "^49.0.7",
14
+ "expo": "^50.0.0-preview.4",
15
15
  "react": "18.2.0",
16
- "react-native": "npm:react-native-tvos@0.73.0-0rc2"
16
+ "react-native": "npm:react-native-tvos@0.73.1-0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",