react-native-tvos 0.81.4-0 → 0.81.5-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 (269) hide show
  1. package/Libraries/Components/Button.js +0 -1
  2. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  3. package/Libraries/Components/Pressable/Pressable.js +14 -12
  4. package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
  5. package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
  8. package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
  10. package/Libraries/Components/View/View.js +21 -1
  11. package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
  12. package/Libraries/Components/View/ViewPropTypes.js +5 -86
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/React/Base/RCTUtils.mm +5 -1
  15. package/React/Base/RCTVersion.m +1 -1
  16. package/React/CoreModules/RCTDeviceInfo.mm +3 -4
  17. package/React/Views/RCTSwitchManager.m +24 -0
  18. package/ReactAndroid/gradle.properties +1 -1
  19. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
  20. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  21. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
  22. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
  24. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  25. package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
  26. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  27. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
  28. package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
  29. package/package.json +8 -8
  30. package/sdks/hermesc/osx-bin/hermes +0 -0
  31. package/sdks/hermesc/osx-bin/hermesc +0 -0
  32. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  33. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  34. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  35. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  36. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  37. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  38. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  39. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  40. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  41. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  42. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  43. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  44. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  45. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  46. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  47. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  48. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  49. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  50. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  51. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  52. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  53. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  54. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  55. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  56. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  57. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  58. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  59. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  60. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  61. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  62. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  63. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  64. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  65. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  66. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  67. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  68. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  69. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  70. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  71. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  72. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  73. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  74. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  75. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  76. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  77. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  78. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  79. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  80. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  81. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  82. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  83. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  84. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  85. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  86. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  87. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  88. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  89. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  90. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  91. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  92. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  93. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  94. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  95. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  96. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  97. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  98. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  99. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  100. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  101. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  102. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  103. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  104. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  105. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  106. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  107. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  108. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  109. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  110. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  111. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  112. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  113. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  114. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  115. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  116. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  117. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  118. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  119. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  120. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  121. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  122. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  123. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  124. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  125. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  126. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  127. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  128. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  129. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  130. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  131. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  132. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  133. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  134. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  135. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  136. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  137. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  138. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  139. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  140. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  141. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  142. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  143. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  144. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  145. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  146. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  147. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  148. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  149. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  150. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  151. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  152. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  153. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  154. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  155. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  156. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  157. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  158. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  159. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  160. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  161. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  162. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  163. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  164. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  165. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  166. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  167. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  168. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  169. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  170. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  171. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  172. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  173. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  174. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  175. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  176. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  177. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  178. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  179. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  180. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  181. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  182. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  183. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  184. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  185. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  186. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  187. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  188. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  189. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  190. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  191. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  192. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  193. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  194. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  195. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  196. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  197. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  198. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  199. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  200. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  201. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  202. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  203. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  204. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  205. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  206. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  207. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  208. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  209. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  210. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  211. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  212. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  213. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  214. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  215. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  216. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  217. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  218. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  219. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  220. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  221. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  222. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  223. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  224. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  225. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  226. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  227. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  228. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  229. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  230. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  231. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  232. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  233. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  234. package/types_generated/index.d.ts +0 -164
  235. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  236. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  237. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  238. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  239. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  240. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  241. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  242. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  243. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  244. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  245. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  246. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  247. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  248. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  249. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  250. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  251. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  252. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  253. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  254. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  255. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  256. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  257. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  258. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  259. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  260. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  261. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  262. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  263. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  264. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  265. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  266. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  267. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  268. package/types_generated/tsconfig.json +0 -3
  269. package/types_generated/tsconfig.test.json +0 -16
@@ -283,20 +283,6 @@ export type ViewPropsAndroid = $ReadOnly<{
283
283
  */
284
284
  renderToHardwareTextureAndroid?: ?boolean,
285
285
 
286
- /**
287
- * TV next focus forward (see documentation for the View component).
288
- *
289
- * @platform android
290
- */
291
- nextFocusForward?: ?number,
292
-
293
- /**
294
- * Whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
295
- *
296
- * @platform android
297
- */
298
- focusable?: ?boolean,
299
-
300
286
  /**
301
287
  * Indicates whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
302
288
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
@@ -318,51 +304,6 @@ export type ViewPropsAndroid = $ReadOnly<{
318
304
  onClick?: ?(event: GestureResponderEvent) => mixed,
319
305
  }>;
320
306
 
321
- export type TVViewPropsIOS = $ReadOnly<{
322
- /**
323
- * *(Apple TV only)* When set to true, this view will be focusable
324
- * and navigable using the Apple TV remote.
325
- *
326
- * @platform ios
327
- */
328
- isTVSelectable?: boolean,
329
-
330
- /**
331
- * *(Apple TV only)* May be set to true to force the Apple TV focus engine to move focus to this view.
332
- *
333
- * @platform ios
334
- */
335
- hasTVPreferredFocus?: boolean,
336
-
337
- /**
338
- * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
339
- *
340
- * @platform ios
341
- */
342
- tvParallaxShiftDistanceX?: number,
343
-
344
- /**
345
- * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
346
- *
347
- * @platform ios
348
- */
349
- tvParallaxShiftDistanceY?: number,
350
-
351
- /**
352
- * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 0.05.
353
- *
354
- * @platform ios
355
- */
356
- tvParallaxTiltAngle?: number,
357
-
358
- /**
359
- * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 1.0.
360
- *
361
- * @platform ios
362
- */
363
- tvParallaxMagnification?: number,
364
- }>;
365
-
366
307
  export type ViewPropsIOS = $ReadOnly<{
367
308
  /**
368
309
  * Whether this `View` should be rendered as a bitmap before compositing.
@@ -374,32 +315,6 @@ export type ViewPropsIOS = $ReadOnly<{
374
315
  shouldRasterizeIOS?: ?boolean,
375
316
  }>;
376
317
 
377
- type NextFocusProps = $ReadOnly<{
378
- /**
379
- * TV next focus down (see documentation for the View component).
380
- *
381
- */
382
- nextFocusDown?: ?number,
383
-
384
- /**
385
- * TV next focus left (see documentation for the View component).
386
- *
387
- */
388
- nextFocusLeft?: ?number,
389
-
390
- /**
391
- * TV next focus right (see documentation for the View component).
392
- *
393
- */
394
- nextFocusRight?: ?number,
395
-
396
- /**
397
- * TV next focus up (see documentation for the View component).
398
- *
399
- */
400
- nextFocusUp?: ?number,
401
- }>;
402
-
403
318
  type ViewBaseProps = $ReadOnly<{
404
319
  children?: React.Node,
405
320
  style?: ?ViewStyleProp,
@@ -496,6 +411,11 @@ type ViewBaseProps = $ReadOnly<{
496
411
  experimental_accessibilityOrder?: ?Array<string>,
497
412
  }>;
498
413
 
414
+ // For compatibility with legacy types
415
+ export type TVViewPropsIOS = $ReadOnly<{|
416
+ ...TVViewProps,
417
+ |}>;
418
+
499
419
  export type ViewProps = $ReadOnly<{
500
420
  ...DirectEventProps,
501
421
  ...GestureResponderHandlers,
@@ -508,6 +428,5 @@ export type ViewProps = $ReadOnly<{
508
428
  ...AccessibilityProps,
509
429
  ...ViewBaseProps,
510
430
  ...TVViewProps,
511
- ...NextFocusProps,
512
431
  ...PressEventProps,
513
432
  }>;
@@ -17,6 +17,6 @@ export const version: $ReadOnly<{
17
17
  }> = {
18
18
  major: 0,
19
19
  minor: 81,
20
- patch: 4,
20
+ patch: 5,
21
21
  prerelease: '0',
22
22
  };
@@ -445,7 +445,11 @@ CGSize RCTSwitchSize(void)
445
445
  #if TARGET_OS_TV
446
446
  rctSwitchSize = CGSizeMake(0.0, 0.0); // no switch on tvOS
447
447
  #else
448
- rctSwitchSize = [UISwitch new].intrinsicContentSize;
448
+ CGSize switchSize = [UISwitch new].intrinsicContentSize;
449
+ // Apple does not take into account the thumb border when returning the
450
+ // width of the UISwitch component, so we are adding 2 pixels for the border
451
+ // which is not customizable and it is the same for legacy and liquid glass.
452
+ rctSwitchSize = CGSizeMake(switchSize.width + 2, switchSize.height);
449
453
  #endif
450
454
  });
451
455
  });
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(81),
26
- RCTVersionPatch: @(4),
26
+ RCTVersionPatch: @(5),
27
27
  RCTVersionPrerelease: @"0",
28
28
  };
29
29
  });
@@ -246,11 +246,10 @@ static NSDictionary *RCTExportedDimensions(CGFloat fontScale)
246
246
  - (void)interfaceOrientationDidChange
247
247
  {
248
248
  #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
249
- UIApplication *application = RCTSharedApplication();
250
- UIInterfaceOrientation nextOrientation = RCTKeyWindow().windowScene.interfaceOrientation;
249
+ UIWindow *window = RCTKeyWindow();
250
+ UIInterfaceOrientation nextOrientation = window.windowScene.interfaceOrientation;
251
251
 
252
- BOOL isRunningInFullScreen =
253
- CGRectEqualToRect(application.delegate.window.frame, application.delegate.window.screen.bounds);
252
+ BOOL isRunningInFullScreen = window ? CGRectEqualToRect(window.frame, window.screen.bounds) : YES;
254
253
  // We are catching here two situations for multitasking view:
255
254
  // a) The app is in Split View and the container gets resized -> !isRunningInFullScreen
256
255
  // b) The app changes to/from fullscreen example: App runs in slide over mode and goes into fullscreen->
@@ -9,10 +9,29 @@
9
9
  #import "RCTSwitchManager.h"
10
10
 
11
11
  #import <React/RCTUIManager.h>
12
+ #import <React/RCTUtils.h>
12
13
  #import "RCTBridge.h"
14
+ #import "RCTShadowView.h"
13
15
  #import "RCTSwitch.h"
14
16
  #import "UIView+React.h"
15
17
 
18
+ @interface RCTSwitchShadowView : RCTShadowView
19
+
20
+ @end
21
+
22
+ @implementation RCTSwitchShadowView
23
+
24
+ - (instancetype)init
25
+ {
26
+ if (self = [super init]) {
27
+ self.intrinsicContentSize = RCTSwitchSize();
28
+ }
29
+
30
+ return self;
31
+ }
32
+
33
+ @end
34
+
16
35
  @implementation RCTSwitchManager
17
36
 
18
37
  RCT_EXPORT_MODULE()
@@ -34,6 +53,11 @@ RCT_EXPORT_MODULE()
34
53
  }
35
54
  }
36
55
 
56
+ - (RCTShadowView *)shadowView
57
+ {
58
+ return [RCTSwitchShadowView new];
59
+ }
60
+
37
61
  RCT_EXPORT_METHOD(setValue : (nonnull NSNumber *)viewTag toValue : (BOOL)value)
38
62
  {
39
63
  [self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.81.4-0
1
+ VERSION_NAME=0.81.5-0
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
 
4
4
  android.useAndroidX=true
@@ -21,6 +21,7 @@ import com.facebook.infer.annotation.Assertions;
21
21
  import com.facebook.infer.annotation.Nullsafe;
22
22
  import com.facebook.react.bridge.Callback;
23
23
  import com.facebook.react.bridge.ReactContext;
24
+ import com.facebook.react.common.LifecycleState;
24
25
  import com.facebook.react.interfaces.fabric.ReactSurface;
25
26
  import com.facebook.react.internal.featureflags.ReactNativeNewArchitectureFeatureFlags;
26
27
  import com.facebook.react.modules.core.PermissionListener;
@@ -255,7 +256,7 @@ public class ReactActivityDelegate {
255
256
 
256
257
  public void onRequestPermissionsResult(
257
258
  final int requestCode, final String[] permissions, final int[] grantResults) {
258
- mPermissionsCallback =
259
+ Callback permissionsCallback =
259
260
  args -> {
260
261
  if (mPermissionListener != null
261
262
  && mPermissionListener.onRequestPermissionsResult(
@@ -263,6 +264,29 @@ public class ReactActivityDelegate {
263
264
  mPermissionListener = null;
264
265
  }
265
266
  };
267
+
268
+ LifecycleState lifecycle;
269
+ if (isFabricEnabled()) {
270
+ ReactHost reactHost = getReactHost();
271
+ lifecycle = reactHost != null ? reactHost.getLifecycleState() : LifecycleState.BEFORE_CREATE;
272
+ } else {
273
+ ReactNativeHost reactNativeHost = getReactNativeHost();
274
+ if (!reactNativeHost.hasInstance()) {
275
+ lifecycle = LifecycleState.BEFORE_CREATE;
276
+ } else {
277
+ lifecycle = reactNativeHost.getReactInstanceManager().getLifecycleState();
278
+ }
279
+ }
280
+
281
+ // If the permission request didn't show a dialog to the user, we can call the callback
282
+ // immediately.
283
+ // Otherwise, we need to wait until onResume to call it.
284
+ if (lifecycle == LifecycleState.RESUMED) {
285
+ permissionsCallback.invoke();
286
+ return;
287
+ }
288
+
289
+ mPermissionsCallback = permissionsCallback;
266
290
  }
267
291
 
268
292
  protected Context getContext() {
@@ -14,7 +14,7 @@ public object ReactNativeVersion {
14
14
  public val VERSION: Map<String, Any?> = mapOf(
15
15
  "major" to 0,
16
16
  "minor" to 81,
17
- "patch" to 4,
17
+ "patch" to 5,
18
18
  "prerelease" to "0"
19
19
  )
20
20
  }
@@ -51,7 +51,7 @@ import kotlin.math.min
51
51
  * constructed in superclass.
52
52
  */
53
53
  @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
54
- public class ReactTextShadowNode
54
+ public open class ReactTextShadowNode
55
55
  @JvmOverloads
56
56
  public constructor(reactTextViewManagerCallback: ReactTextViewManagerCallback? = null) :
57
57
  ReactBaseTextShadowNode(reactTextViewManagerCallback) {
@@ -29,7 +29,7 @@ import java.util.HashMap
29
29
  */
30
30
  @ReactModule(name = ReactTextViewManager.REACT_CLASS)
31
31
  @OptIn(UnstableReactNativeAPI::class)
32
- public class ReactTextViewManager
32
+ public open class ReactTextViewManager
33
33
  @JvmOverloads
34
34
  public constructor(
35
35
  protected var reactTextViewManagerCallback: ReactTextViewManagerCallback? = null
@@ -92,7 +92,7 @@ public constructor(
92
92
  override fun createShadowNodeInstance(): ReactTextShadowNode =
93
93
  ReactTextShadowNode(reactTextViewManagerCallback)
94
94
 
95
- public fun createShadowNodeInstance(
95
+ public open fun createShadowNodeInstance(
96
96
  reactTextViewManagerCallback: ReactTextViewManagerCallback?
97
97
  ): ReactTextShadowNode = ReactTextShadowNode(reactTextViewManagerCallback)
98
98
 
@@ -70,9 +70,7 @@ import com.facebook.react.uimanager.UIManagerHelper
70
70
  import com.facebook.react.uimanager.ViewGroupDrawingOrderHelper
71
71
  import com.facebook.react.uimanager.common.UIManagerType
72
72
  import com.facebook.react.uimanager.common.ViewUtil.getUIManagerType
73
- import com.facebook.react.uimanager.events.BlurEvent
74
73
  import com.facebook.react.uimanager.events.EventDispatcher
75
- import com.facebook.react.uimanager.events.FocusEvent
76
74
  import com.facebook.react.uimanager.events.PressInEvent
77
75
  import com.facebook.react.uimanager.events.PressOutEvent
78
76
  import com.facebook.react.uimanager.style.BorderRadiusProp
@@ -738,6 +736,18 @@ public open class ReactViewGroup public constructor(context: Context?) :
738
736
  }
739
737
  super.onViewAdded(child)
740
738
  }
739
+
740
+ override fun removeView(view: View?) {
741
+ if (view != null) {
742
+ recoverFocus(view);
743
+ }
744
+ super.removeView(view);
745
+ }
746
+
747
+ override fun removeViewAt(index: Int) {
748
+ recoverFocus(getChildAt(index));
749
+ super.removeViewAt(index);
750
+ }
741
751
 
742
752
  override fun onViewRemoved(child: View) {
743
753
  assertOnUiThread()
@@ -856,7 +866,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
856
866
 
857
867
  internal fun removeViewWithSubviewClippingEnabled(view: View) {
858
868
  assertOnUiThread()
859
-
869
+ recoverFocus(view)
860
870
  check(_removeClippedSubviews)
861
871
  val allChildren = checkNotNull(allChildren)
862
872
  view.removeOnLayoutChangeListener(childrenLayoutChangeListener)
@@ -1338,29 +1348,6 @@ public open class ReactViewGroup public constructor(context: Context?) :
1338
1348
 
1339
1349
  override fun onFocusChanged(gainFocus: Boolean, direction: Int, previouslyFocusedRect: Rect?) {
1340
1350
  super.onFocusChanged(gainFocus, direction, previouslyFocusedRect)
1341
-
1342
- val mEventDispatcher: EventDispatcher? =
1343
- UIManagerHelper.getEventDispatcherForReactTag(
1344
- this.context as ReactContext, this.id
1345
- )
1346
-
1347
- if (mEventDispatcher == null) {
1348
- return
1349
- }
1350
-
1351
- if (gainFocus) {
1352
- mEventDispatcher.dispatchEvent(
1353
- FocusEvent(
1354
- UIManagerHelper.getSurfaceId(this.context), this.id
1355
- )
1356
- )
1357
- } else {
1358
- mEventDispatcher.dispatchEvent(
1359
- BlurEvent(
1360
- UIManagerHelper.getSurfaceId(this.context), this.id
1361
- )
1362
- )
1363
- }
1364
1351
  }
1365
1352
 
1366
1353
  override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
@@ -98,16 +98,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
98
98
 
99
99
  @ReactProp(name = "accessible")
100
100
  public open fun setAccessible(view: ReactViewGroup, accessible: Boolean) {
101
- view.isFocusable = accessible
102
- // This is required to handle Android TV/ Fire TV Devices that are Touch Enabled as well as LeanBack
103
- // https://developer.android.com/reference/android/view/View#requestFocus(int,%20android.graphics.Rect)
104
- // ** A view will not actually take focus if it is not focusable (isFocusable() returns false), **
105
- // ** or if it is focusable and it is not focusable in touch mode (isFocusableInTouchMode()) **
106
- // ** while the device is in touch mode. **
107
- if (hasTouchScreen(view.context)) {
108
- view.isFocusableInTouchMode = accessible
109
- }
110
-
101
+ // TODO: determine if any AxOrder changes should be put here
111
102
  }
112
103
 
113
104
  @ReactProp(name = "tvFocusable")
@@ -407,6 +398,14 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
407
398
  // Don't set view.setFocusable(false) because we might still want it to be focusable for
408
399
  // accessibility reasons
409
400
  }
401
+ // This is required to handle Android TV/ Fire TV Devices that are Touch Enabled as well as LeanBack
402
+ // https://developer.android.com/reference/android/view/View#requestFocus(int,%20android.graphics.Rect)
403
+ // ** A view will not actually take focus if it is not focusable (isFocusable() returns false), **
404
+ // ** or if it is focusable and it is not focusable in touch mode (isFocusableInTouchMode()) **
405
+ // ** while the device is in touch mode. **
406
+ if (hasTouchScreen(view.context)) {
407
+ view.isFocusableInTouchMode = focusable
408
+ }
410
409
  }
411
410
 
412
411
  @ReactProp(name = ViewProps.OVERFLOW)
@@ -39,7 +39,9 @@ void processTransform(
39
39
  }
40
40
 
41
41
  auto result = BaseViewProps::resolveTransform(
42
- Size(viewWidth, viewHeight), transform, transformOrigin);
42
+ Size{.width = viewWidth, .height = viewHeight},
43
+ transform,
44
+ transformOrigin);
43
45
 
44
46
  // Convert from matrix of floats to double matrix
45
47
  constexpr size_t MatrixSize = std::tuple_size_v<decltype(result.matrix)>;
@@ -14,14 +14,14 @@
14
14
 
15
15
  #define REACT_NATIVE_VERSION_MAJOR 0
16
16
  #define REACT_NATIVE_VERSION_MINOR 81
17
- #define REACT_NATIVE_VERSION_PATCH 4
17
+ #define REACT_NATIVE_VERSION_PATCH 5
18
18
 
19
19
  namespace facebook::react {
20
20
 
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 81;
24
- int32_t Patch = 4;
24
+ int32_t Patch = 5;
25
25
  std::string_view Prerelease = "0";
26
26
  } ReactNativeVersion;
27
27
 
@@ -646,9 +646,6 @@ Transform BaseViewProps::resolveTransform(
646
646
  const Transform& transform,
647
647
  const TransformOrigin& transformOrigin) {
648
648
  auto transformMatrix = Transform{};
649
- if (frameSize.width == 0 && frameSize.height == 0) {
650
- return transformMatrix;
651
- }
652
649
 
653
650
  // transform is matrix
654
651
  if (transform.operations.size() == 1 &&