react-native-tvos 0.76.2-0 → 0.76.3-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.
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 76,
19
- patch: 2,
19
+ patch: 3,
20
20
  prerelease: '0',
21
21
  };
22
22
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(76),
26
- RCTVersionPatch: @(2),
26
+ RCTVersionPatch: @(3),
27
27
  RCTVersionPrerelease: @"0",
28
28
  };
29
29
  });
@@ -57,18 +57,13 @@
57
57
  @property (nonatomic, assign) BOOL trapFocusLeft;
58
58
  @property (nonatomic, assign) BOOL trapFocusRight;
59
59
 
60
-
61
- /**
62
- * Focus
63
- */
60
+ // These handlers are defined in RCTView
61
+ /*
64
62
  @property (nonatomic, copy) RCTBubblingEventBlock onFocus;
65
63
  @property (nonatomic, copy) RCTBubblingEventBlock onBlur;
66
-
67
- /**
68
- * TV Press Handlers
69
- */
70
64
  @property (nonatomic, copy) RCTDirectEventBlock onPressIn;
71
65
  @property (nonatomic, copy) RCTDirectEventBlock onPressOut;
66
+ */
72
67
 
73
68
  - (instancetype)initWithBridge:(RCTBridge *)bridge;
74
69
 
@@ -123,6 +123,25 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait;
123
123
 
124
124
  @property (nonatomic, assign) RCTCursor cursor;
125
125
 
126
+ #if TARGET_OS_TV
127
+ // For Paper, all views on TV might have focus, blur, pressIn, pressOut handlers,
128
+ // so we need to add these properties here and not in RCTTVView,
129
+ // since some views do not inherit from RCTTVView.
130
+
131
+ /**
132
+ * Focus
133
+ */
134
+ @property (nonatomic, copy) RCTBubblingEventBlock onFocus;
135
+ @property (nonatomic, copy) RCTBubblingEventBlock onBlur;
136
+
137
+ /**
138
+ * TV Press Handlers
139
+ */
140
+ @property (nonatomic, copy) RCTDirectEventBlock onPressIn;
141
+ @property (nonatomic, copy) RCTDirectEventBlock onPressOut;
142
+
143
+ #endif // TARGET_OS_TV
144
+
126
145
  /**
127
146
  * (Experimental and unused for Paper) Pointer event handlers.
128
147
  */
@@ -31,9 +31,8 @@ if(CCACHE_FOUND)
31
31
  endif(CCACHE_FOUND)
32
32
 
33
33
  set(BUILD_DIR ${PROJECT_BUILD_DIR})
34
- if(CMAKE_HOST_WIN32)
35
- string(REPLACE "\\" "/" BUILD_DIR ${BUILD_DIR})
36
- endif()
34
+ file(TO_CMAKE_PATH "${BUILD_DIR}" BUILD_DIR)
35
+ file(TO_CMAKE_PATH "${REACT_ANDROID_DIR}" REACT_ANDROID_DIR)
37
36
 
38
37
  file(GLOB input_SRC CONFIGURE_DEPENDS
39
38
  ${REACT_ANDROID_DIR}/cmake-utils/default-app-setup/*.cpp
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.76.2-0
1
+ VERSION_NAME=0.76.3-0
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
 
4
4
  android.useAndroidX=true
@@ -38,9 +38,13 @@ fun getSDKPath(): String {
38
38
  fun getSDKManagerPath(): String {
39
39
  val metaSdkManagerPath = File("${getSDKPath()}/cmdline-tools/latest/bin/sdkmanager")
40
40
  val ossSdkManagerPath = File("${getSDKPath()}/tools/bin/sdkmanager")
41
+ val windowsMetaSdkManagerPath = File("${getSDKPath()}/cmdline-tools/latest/bin/sdkmanager.bat")
42
+ val windowsOssSdkManagerPath = File("${getSDKPath()}/tools/bin/sdkmanager.bat")
41
43
  return when {
42
44
  metaSdkManagerPath.exists() -> metaSdkManagerPath.absolutePath
45
+ windowsMetaSdkManagerPath.exists() -> windowsMetaSdkManagerPath.absolutePath
43
46
  ossSdkManagerPath.exists() -> ossSdkManagerPath.absolutePath
47
+ windowsOssSdkManagerPath.exists() -> windowsOssSdkManagerPath.absolutePath
44
48
  else -> throw GradleException("Could not find sdkmanager executable.")
45
49
  }
46
50
  }
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 76,
20
- "patch", 2,
20
+ "patch", 3,
21
21
  "prerelease", "0");
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 76;
20
- int32_t Patch = 2;
20
+ int32_t Patch = 3;
21
21
  std::string_view Prerelease = "0";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.76.2-0",
3
+ "version": "0.76.3-0",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -110,13 +110,13 @@
110
110
  },
111
111
  "dependencies": {
112
112
  "@jest/create-cache-key-function": "^29.6.3",
113
- "@react-native/assets-registry": "0.76.2",
114
- "@react-native/codegen": "0.76.2",
115
- "@react-native/community-cli-plugin": "0.76.2",
116
- "@react-native/gradle-plugin": "0.76.2",
117
- "@react-native/js-polyfills": "0.76.2",
118
- "@react-native/normalize-colors": "0.76.2",
119
- "@react-native-tvos/virtualized-lists": "0.76.2-0",
113
+ "@react-native/assets-registry": "0.76.3",
114
+ "@react-native/codegen": "0.76.3",
115
+ "@react-native/community-cli-plugin": "0.76.3",
116
+ "@react-native/gradle-plugin": "0.76.3",
117
+ "@react-native/js-polyfills": "0.76.3",
118
+ "@react-native/normalize-colors": "0.76.3",
119
+ "@react-native-tvos/virtualized-lists": "0.76.3-0",
120
120
  "abort-controller": "^3.0.0",
121
121
  "anser": "^1.4.9",
122
122
  "ansi-regex": "^5.0.0",
Binary file
Binary file
Binary file
Binary file