From a0800ffc7a676555aa9e769fc8fd6d3162de0ea6 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 1 Feb 2023 12:20:40 -0800 Subject: [PATCH] Add `borderCurve` and `pointerEvents` to `ViewStyle` (#35998) Summary: Forward-porting https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64125 ## Changelog [GENERAL] [FIXED] - Add `borderCurve` and `pointerEvents` to `ViewStyle` Pull Request resolved: https://github.com/facebook/react-native/pull/35998 Test Plan: - [x] https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64125 green Reviewed By: christophpurrer Differential Revision: D42906357 Pulled By: lunaleaps fbshipit-source-id: 6a5763cf7880888462fbabe1a00e560065c9a551 --- Libraries/StyleSheet/StyleSheetTypes.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Libraries/StyleSheet/StyleSheetTypes.d.ts b/Libraries/StyleSheet/StyleSheetTypes.d.ts index f31224e7a62a0c..412eaa55afb61d 100644 --- a/Libraries/StyleSheet/StyleSheetTypes.d.ts +++ b/Libraries/StyleSheet/StyleSheetTypes.d.ts @@ -242,6 +242,11 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle { borderBottomStartRadius?: number | undefined; borderBottomWidth?: number | undefined; borderColor?: ColorValue | undefined; + /** + * On iOS 13+, it is possible to change the corner curve of borders. + * @platform ios + */ + borderCurve?: 'circular' | 'continuous' | undefined; borderEndColor?: ColorValue | undefined; borderEndEndRadius?: number | undefined; borderEndStartRadius?: number | undefined; @@ -271,6 +276,10 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle { * @platform android */ elevation?: number | undefined; + /** + * Controls whether the View can be the target of touch events. + */ + pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined; } export type FontVariant =