react-native-tvos 0.81.3-0 → 0.81.4-1
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.
- package/Libraries/Components/Button.js +0 -1
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +14 -12
- package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
- package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
- package/Libraries/Components/View/View.js +21 -1
- package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
- package/Libraries/Components/View/ViewPropTypes.js +5 -86
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/React/Base/RCTVersion.m +2 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/package.json +8 -8
- package/scripts/cocoapods/autolinking.rb +6 -0
- package/scripts/cocoapods/codegen_utils.rb +1 -1
- package/scripts/codegen/generate-artifacts-executor/index.js +5 -6
- package/scripts/codegen/generate-artifacts-executor/utils.js +41 -10
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/types/public/ReactNativeTVTypes.d.ts +1 -43
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
- package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
- package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
- package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
- package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
- package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
- package/types_generated/Libraries/Components/Button.d.ts +0 -251
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
- package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
- package/types_generated/Libraries/Components/View/View.d.ts +0 -30
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
- package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
- package/types_generated/Libraries/Image/Image.d.ts +0 -18
- package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
- package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
- package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
- package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
- package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
- package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
- package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
- package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
- package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
- package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
- package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
- package/types_generated/Libraries/Network/FormData.d.ts +0 -56
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
- package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
- package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
- package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
- package/types_generated/Libraries/Share/Share.d.ts +0 -85
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
- package/types_generated/Libraries/Text/Text.d.ts +0 -30
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
- package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
- package/types_generated/Libraries/UTFSequence.d.ts +0 -39
- package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
- package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
- package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
- package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
- package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
- package/types_generated/index.d.ts +0 -164
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
- package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
- package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
- package/types_generated/src/private/types/HostComponent.d.ts +0 -19
- package/types_generated/src/private/types/HostInstance.d.ts +0 -91
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
- package/types_generated/tsconfig.json +0 -3
- 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
|
}>;
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -23,8 +23,8 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
23
23
|
__rnVersion = @{
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
25
|
RCTVersionMinor: @(81),
|
|
26
|
-
RCTVersionPatch: @(
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
26
|
+
RCTVersionPatch: @(4),
|
|
27
|
+
RCTVersionPrerelease: @"1",
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
return __rnVersion;
|
|
@@ -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
|
|
@@ -1338,29 +1336,6 @@ public open class ReactViewGroup public constructor(context: Context?) :
|
|
|
1338
1336
|
|
|
1339
1337
|
override fun onFocusChanged(gainFocus: Boolean, direction: Int, previouslyFocusedRect: Rect?) {
|
|
1340
1338
|
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
1339
|
}
|
|
1365
1340
|
|
|
1366
1341
|
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
|
-
|
|
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)
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 81
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 4
|
|
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 =
|
|
25
|
-
std::string_view Prerelease = "
|
|
24
|
+
int32_t Patch = 4;
|
|
25
|
+
std::string_view Prerelease = "1";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
|
28
28
|
} // namespace facebook::react
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.4-1",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,12 +166,12 @@
|
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
168
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
169
|
-
"@react-native/assets-registry": "0.81.
|
|
170
|
-
"@react-native/codegen": "0.81.
|
|
171
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
172
|
-
"@react-native/gradle-plugin": "0.81.
|
|
173
|
-
"@react-native/js-polyfills": "0.81.
|
|
174
|
-
"@react-native/normalize-colors": "0.81.
|
|
169
|
+
"@react-native/assets-registry": "0.81.4",
|
|
170
|
+
"@react-native/codegen": "0.81.4",
|
|
171
|
+
"@react-native/community-cli-plugin": "0.81.4",
|
|
172
|
+
"@react-native/gradle-plugin": "0.81.4",
|
|
173
|
+
"@react-native/js-polyfills": "0.81.4",
|
|
174
|
+
"@react-native/normalize-colors": "0.81.4",
|
|
175
175
|
"abort-controller": "^3.0.0",
|
|
176
176
|
"anser": "^1.4.9",
|
|
177
177
|
"ansi-regex": "^5.0.0",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"whatwg-fetch": "^3.0.0",
|
|
199
199
|
"ws": "^6.2.3",
|
|
200
200
|
"yargs": "^17.6.2",
|
|
201
|
-
"@react-native-tvos/virtualized-lists": "0.81.
|
|
201
|
+
"@react-native-tvos/virtualized-lists": "0.81.4-1"
|
|
202
202
|
},
|
|
203
203
|
"codegenConfig": {
|
|
204
204
|
"libraries": [
|
|
@@ -40,6 +40,12 @@ def list_native_modules!(config_command)
|
|
|
40
40
|
packages = config["dependencies"]
|
|
41
41
|
ios_project_root = Pathname.new(config["project"]["ios"]["sourceDir"])
|
|
42
42
|
react_native_path = Pathname.new(config["reactNativePath"])
|
|
43
|
+
codegen_output_path = ios_project_root.join("build/generated/autolinking/autolinking.json")
|
|
44
|
+
|
|
45
|
+
# Write autolinking react-native-config output to codegen folder
|
|
46
|
+
FileUtils.mkdir_p(File.dirname(codegen_output_path))
|
|
47
|
+
File.write(codegen_output_path, json)
|
|
48
|
+
|
|
43
49
|
found_pods = []
|
|
44
50
|
|
|
45
51
|
packages.each do |package_name, package|
|
|
@@ -87,7 +87,7 @@ class CodegenUtils
|
|
|
87
87
|
codegen_path = file_manager.join(ios_folder, codegen_dir)
|
|
88
88
|
return if !dir_manager.exist?(codegen_path)
|
|
89
89
|
|
|
90
|
-
FileUtils.rm_rf(
|
|
90
|
+
FileUtils.rm_rf("#{codegen_path}")
|
|
91
91
|
base_provider_path = file_manager.join(rn_path, 'React', 'Fabric', 'RCTThirdPartyFabricComponentsProvider')
|
|
92
92
|
FileUtils.rm_rf("#{base_provider_path}.h")
|
|
93
93
|
FileUtils.rm_rf("#{base_provider_path}.mm")
|
|
@@ -86,16 +86,19 @@ function execute(
|
|
|
86
86
|
buildCodegenIfNeeded();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
const reactNativeConfig = readReactNativeConfig(
|
|
89
|
+
const reactNativeConfig = readReactNativeConfig(
|
|
90
|
+
projectRoot,
|
|
91
|
+
baseOutputPath,
|
|
92
|
+
);
|
|
90
93
|
const codegenEnabledLibraries = findCodegenEnabledLibraries(
|
|
91
94
|
pkgJson,
|
|
92
95
|
projectRoot,
|
|
96
|
+
baseOutputPath,
|
|
93
97
|
reactNativeConfig,
|
|
94
98
|
);
|
|
95
99
|
|
|
96
100
|
if (codegenEnabledLibraries.length === 0) {
|
|
97
101
|
codegenLog('No codegen-enabled libraries found.', true);
|
|
98
|
-
return;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
let platforms =
|
|
@@ -110,10 +113,6 @@ function execute(
|
|
|
110
113
|
({name}) => !disabledLibraries.includes(name),
|
|
111
114
|
);
|
|
112
115
|
|
|
113
|
-
if (!libraries.length) {
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
116
|
const outputPath = computeOutputPath(
|
|
118
117
|
projectRoot,
|
|
119
118
|
baseOutputPath,
|
|
@@ -97,15 +97,40 @@ function cleanupEmptyFilesAndFolders(filepath /*: string */) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
function
|
|
101
|
-
|
|
100
|
+
function readGeneratedAutolinkingOutput(
|
|
101
|
+
baseOutputPath /*: string */,
|
|
102
|
+
) /*: $FlowFixMe */ {
|
|
103
|
+
// NOTE: Generated by scripts/cocoapods/autolinking.rb in list_native_modules (called by use_native_modules)
|
|
104
|
+
const autolinkingGeneratedPath = path.resolve(
|
|
105
|
+
baseOutputPath,
|
|
106
|
+
'build/generated/autolinking/autolinking.json',
|
|
107
|
+
);
|
|
108
|
+
if (fs.existsSync(autolinkingGeneratedPath)) {
|
|
109
|
+
// $FlowFixMe[unsupported-syntax]
|
|
110
|
+
return require(autolinkingGeneratedPath);
|
|
111
|
+
} else {
|
|
112
|
+
codegenLog(
|
|
113
|
+
`Could not find generated autolinking output at: ${autolinkingGeneratedPath}`,
|
|
114
|
+
);
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
102
118
|
|
|
103
|
-
|
|
119
|
+
function readReactNativeConfig(
|
|
120
|
+
projectRoot /*: string */,
|
|
121
|
+
baseOutputPath /*: string */,
|
|
122
|
+
) /*: $FlowFixMe */ {
|
|
123
|
+
const autolinkingOutput = readGeneratedAutolinkingOutput(baseOutputPath);
|
|
124
|
+
const rnConfigFilePath = path.resolve(projectRoot, 'react-native.config.js');
|
|
125
|
+
if (autolinkingOutput) {
|
|
126
|
+
return autolinkingOutput;
|
|
127
|
+
} else if (fs.existsSync(rnConfigFilePath)) {
|
|
128
|
+
// $FlowIgnore[unsupported-syntax]
|
|
129
|
+
return require(rnConfigFilePath);
|
|
130
|
+
} else {
|
|
131
|
+
codegenLog(`Could not find React Native config at: ${rnConfigFilePath}`);
|
|
104
132
|
return {};
|
|
105
133
|
}
|
|
106
|
-
|
|
107
|
-
// $FlowIgnore[unsupported-syntax]
|
|
108
|
-
return require(rnConfigFilePath);
|
|
109
134
|
}
|
|
110
135
|
|
|
111
136
|
/**
|
|
@@ -114,17 +139,23 @@ function readReactNativeConfig(projectRoot /*: string */) /*: $FlowFixMe */ {
|
|
|
114
139
|
function findCodegenEnabledLibraries(
|
|
115
140
|
pkgJson /*: $FlowFixMe */,
|
|
116
141
|
projectRoot /*: string */,
|
|
142
|
+
baseOutputPath /*: string */,
|
|
117
143
|
reactNativeConfig /*: $FlowFixMe */,
|
|
118
144
|
) /*: Array<$FlowFixMe> */ {
|
|
119
145
|
const projectLibraries = findProjectRootLibraries(pkgJson, projectRoot);
|
|
120
146
|
if (pkgJsonIncludesGeneratedCode(pkgJson)) {
|
|
121
147
|
return projectLibraries;
|
|
122
148
|
} else {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
149
|
+
const libraries = [...projectLibraries];
|
|
150
|
+
// If we ran autolinking, we shouldn't try to run our own "autolinking-like"
|
|
151
|
+
// library discovery
|
|
152
|
+
if (!readGeneratedAutolinkingOutput(baseOutputPath)) {
|
|
153
|
+
libraries.push(...findExternalLibraries(pkgJson, projectRoot));
|
|
154
|
+
}
|
|
155
|
+
libraries.push(
|
|
126
156
|
...findLibrariesFromReactNativeConfig(projectRoot, reactNativeConfig),
|
|
127
|
-
|
|
157
|
+
);
|
|
158
|
+
return libraries;
|
|
128
159
|
}
|
|
129
160
|
}
|
|
130
161
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { View, ScrollViewProps, HostComponent, EventSubscription } from 'react-native';
|
|
2
|
+
import type { View, ScrollViewProps, HostComponent, EventSubscription, TVParallaxProperties } from 'react-native';
|
|
3
3
|
|
|
4
4
|
declare module 'react-native' {
|
|
5
5
|
export type FocusDestination = null | number | React.Component<any, any> | React.ComponentClass<any>;
|
|
@@ -65,48 +65,6 @@ declare module 'react-native' {
|
|
|
65
65
|
} | undefined
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export type TVParallaxProperties = {
|
|
69
|
-
/**
|
|
70
|
-
* If true, parallax effects are enabled. Defaults to true.
|
|
71
|
-
*/
|
|
72
|
-
enabled?: boolean | undefined,
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Defaults to 2.0.
|
|
76
|
-
*/
|
|
77
|
-
shiftDistanceX?: number | undefined,
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Defaults to 2.0.
|
|
81
|
-
*/
|
|
82
|
-
shiftDistanceY?: number | undefined,
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Defaults to 0.05.
|
|
86
|
-
*/
|
|
87
|
-
tiltAngle?: number | undefined,
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Defaults to 1.0
|
|
91
|
-
*/
|
|
92
|
-
magnification?: number | undefined,
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Defaults to 1.0
|
|
96
|
-
*/
|
|
97
|
-
pressMagnification?: number | undefined,
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Defaults to 0.3
|
|
101
|
-
*/
|
|
102
|
-
pressDuration?: number | undefined,
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated No longer used
|
|
106
|
-
*/
|
|
107
|
-
pressDelay?: number | undefined,
|
|
108
|
-
};
|
|
109
|
-
|
|
110
68
|
export const TVEventHandler: {
|
|
111
69
|
addListener: (listener: (event: HWEvent) => void) => EventSubscription | undefined
|
|
112
70
|
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
* @generated SignedSource<<c7b207a46aa232adaab368b5778f463f>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ProcessedColorValue } from "../StyleSheet/processColor";
|
|
14
|
-
import type { ColorValue } from "../StyleSheet/StyleSheet";
|
|
15
|
-
export type ActionSheetIOSOptions = Readonly<{
|
|
16
|
-
title?: string | undefined;
|
|
17
|
-
message?: string | undefined;
|
|
18
|
-
options: Array<string>;
|
|
19
|
-
destructiveButtonIndex?: (number | undefined) | (Array<number> | undefined);
|
|
20
|
-
cancelButtonIndex?: number | undefined;
|
|
21
|
-
anchor?: number | undefined;
|
|
22
|
-
tintColor?: ColorValue | ProcessedColorValue;
|
|
23
|
-
cancelButtonTintColor?: ColorValue | ProcessedColorValue;
|
|
24
|
-
disabledButtonTintColor?: ColorValue | ProcessedColorValue;
|
|
25
|
-
userInterfaceStyle?: string;
|
|
26
|
-
disabledButtonIndices?: Array<number>;
|
|
27
|
-
}>;
|
|
28
|
-
export type ShareActionSheetIOSOptions = Readonly<{
|
|
29
|
-
message?: string | undefined;
|
|
30
|
-
url?: string | undefined;
|
|
31
|
-
subject?: string | undefined;
|
|
32
|
-
anchor?: number | undefined;
|
|
33
|
-
tintColor?: number | undefined;
|
|
34
|
-
cancelButtonTintColor?: number | undefined;
|
|
35
|
-
disabledButtonTintColor?: number | undefined;
|
|
36
|
-
excludedActivityTypes?: Array<string> | undefined;
|
|
37
|
-
userInterfaceStyle?: string | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
export type ShareActionSheetError = Readonly<{
|
|
40
|
-
domain: string;
|
|
41
|
-
code: string;
|
|
42
|
-
userInfo?: Object | undefined;
|
|
43
|
-
message: string;
|
|
44
|
-
}>;
|
|
45
|
-
declare const ActionSheetIOS: {
|
|
46
|
-
/**
|
|
47
|
-
* Display an iOS action sheet.
|
|
48
|
-
*
|
|
49
|
-
* The `options` object must contain one or more of:
|
|
50
|
-
*
|
|
51
|
-
* - `options` (array of strings) - a list of button titles (required)
|
|
52
|
-
* - `cancelButtonIndex` (int) - index of cancel button in `options`
|
|
53
|
-
* - `destructiveButtonIndex` (int or array of ints) - index or indices of destructive buttons in `options`
|
|
54
|
-
* - `title` (string) - a title to show above the action sheet
|
|
55
|
-
* - `message` (string) - a message to show below the title
|
|
56
|
-
* - `disabledButtonIndices` (array of numbers) - a list of button indices which should be disabled
|
|
57
|
-
*
|
|
58
|
-
* The 'callback' function takes one parameter, the zero-based index
|
|
59
|
-
* of the selected item.
|
|
60
|
-
*
|
|
61
|
-
* See https://reactnative.dev/docs/actionsheetios#showactionsheetwithoptions
|
|
62
|
-
*/
|
|
63
|
-
showActionSheetWithOptions(options: ActionSheetIOSOptions, callback: (buttonIndex: number) => void): void;
|
|
64
|
-
/**
|
|
65
|
-
* Display the iOS share sheet. The `options` object should contain
|
|
66
|
-
* one or both of `message` and `url` and can additionally have
|
|
67
|
-
* a `subject` or `excludedActivityTypes`:
|
|
68
|
-
*
|
|
69
|
-
* - `url` (string) - a URL to share
|
|
70
|
-
* - `message` (string) - a message to share
|
|
71
|
-
* - `subject` (string) - a subject for the message
|
|
72
|
-
* - `excludedActivityTypes` (array) - the activities to exclude from
|
|
73
|
-
* the ActionSheet
|
|
74
|
-
* - `tintColor` (color) - tint color of the buttons
|
|
75
|
-
*
|
|
76
|
-
* The 'failureCallback' function takes one parameter, an error object.
|
|
77
|
-
* The only property defined on this object is an optional `stack` property
|
|
78
|
-
* of type `string`.
|
|
79
|
-
*
|
|
80
|
-
* The 'successCallback' function takes two parameters:
|
|
81
|
-
*
|
|
82
|
-
* - a boolean value signifying success or failure
|
|
83
|
-
* - a string that, in the case of success, indicates the method of sharing
|
|
84
|
-
*
|
|
85
|
-
* See https://reactnative.dev/docs/actionsheetios#showshareactionsheetwithoptions
|
|
86
|
-
*/
|
|
87
|
-
showShareActionSheetWithOptions(options: ShareActionSheetIOSOptions, failureCallback: Function | ((error: ShareActionSheetError) => void), successCallback: Function | ((success: boolean, method: null | undefined | string) => void)): void;
|
|
88
|
-
/**
|
|
89
|
-
* Dismisses the most upper iOS action sheet presented, if no action sheet is
|
|
90
|
-
* present a warning is displayed.
|
|
91
|
-
*/
|
|
92
|
-
dismissActionSheet: () => void;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Display action sheets and share sheets on iOS.
|
|
96
|
-
*
|
|
97
|
-
* See https://reactnative.dev/docs/actionsheetios
|
|
98
|
-
*/
|
|
99
|
-
declare const $$ActionSheetIOS: typeof ActionSheetIOS;
|
|
100
|
-
declare type $$ActionSheetIOS = typeof $$ActionSheetIOS;
|
|
101
|
-
export default $$ActionSheetIOS;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
* @generated SignedSource<<a69ee0694ac07eff13c5d265b77b4414>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Alert/Alert.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @platform ios
|
|
15
|
-
*/
|
|
16
|
-
export type AlertType = "default" | "plain-text" | "secure-text" | "login-password";
|
|
17
|
-
/**
|
|
18
|
-
* @platform ios
|
|
19
|
-
*/
|
|
20
|
-
export type AlertButtonStyle = "default" | "cancel" | "destructive";
|
|
21
|
-
export type AlertButton = {
|
|
22
|
-
text?: string;
|
|
23
|
-
onPress?: (((value?: string) => any) | undefined) | (Function | undefined);
|
|
24
|
-
isPreferred?: boolean;
|
|
25
|
-
style?: AlertButtonStyle;
|
|
26
|
-
};
|
|
27
|
-
export type AlertButtons = Array<AlertButton>;
|
|
28
|
-
export type AlertOptions = {
|
|
29
|
-
/** @platform android */
|
|
30
|
-
cancelable?: boolean | undefined;
|
|
31
|
-
userInterfaceStyle?: "unspecified" | "light" | "dark";
|
|
32
|
-
/** @platform android */
|
|
33
|
-
onDismiss?: (() => void) | undefined;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Launches an alert dialog with the specified title and message.
|
|
37
|
-
*
|
|
38
|
-
* Optionally provide a list of buttons. Tapping any button will fire the
|
|
39
|
-
* respective onPress callback and dismiss the alert. By default, the only
|
|
40
|
-
* button will be an 'OK' button.
|
|
41
|
-
*
|
|
42
|
-
* This is an API that works both on iOS and Android and can show static
|
|
43
|
-
* alerts. On iOS, you can show an alert that prompts the user to enter
|
|
44
|
-
* some information.
|
|
45
|
-
*
|
|
46
|
-
* See https://reactnative.dev/docs/alert
|
|
47
|
-
*/
|
|
48
|
-
declare class Alert {
|
|
49
|
-
static alert(title: null | undefined | string, message?: null | undefined | string, buttons?: AlertButtons, options?: AlertOptions): void;
|
|
50
|
-
/**
|
|
51
|
-
* @platform ios
|
|
52
|
-
*/
|
|
53
|
-
static prompt(title: null | undefined | string, message?: null | undefined | string, callbackOrButtons?: null | undefined | (((text: string) => void) | AlertButtons), type?: null | undefined | AlertType, defaultValue?: string, keyboardType?: string, options?: AlertOptions): void;
|
|
54
|
-
}
|
|
55
|
-
export default Alert;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
* @generated SignedSource<<bdf39377a8da5a0ab65e2d04e0298b92>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/Animated.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * as default from "./AnimatedExports";
|
|
14
|
-
export type { CompositeAnimation, Numeric } from "./AnimatedImplementation";
|