Skip to content

Commit

Permalink
Add borderCurve and pointerEvents to ViewStyle (#35998)
Browse files Browse the repository at this point in the history
Summary:
Forward-porting DefinitelyTyped/DefinitelyTyped#64125

## Changelog

[GENERAL] [FIXED] - Add `borderCurve` and `pointerEvents` to `ViewStyle`

Pull Request resolved: #35998

Test Plan: - [x] DefinitelyTyped/DefinitelyTyped#64125 green

Reviewed By: christophpurrer

Differential Revision: D42906357

Pulled By: lunaleaps

fbshipit-source-id: 6a5763cf7880888462fbabe1a00e560065c9a551
  • Loading branch information
eps1lon authored and facebook-github-bot committed Feb 1, 2023
1 parent 95b9952 commit a0800ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Libraries/StyleSheet/StyleSheetTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit a0800ff

Please sign in to comment.