Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions src/components/GestureButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@ export interface RawButtonProps extends NativeViewGestureHandlerProps {
* Defines color of native ripple animation used since API level 21.
*/
rippleColor?: any; // it was present in BaseButtonProps before but is used here in code

/**
* Android only.
*
* Defines radius of native ripple animation used since API level 21.
*/
rippleRadius?: number | null;

/**
* Android only.
*
* Set this to true if you want the ripple animation to render outside the view bounds.
*/
borderless?: boolean;

/**
* Android only.
*
* Defines whether the ripple animation should be drawn on the foreground of the view.
*/
foreground?: boolean;
}

export interface BaseButtonProps extends RawButtonProps {
Expand Down Expand Up @@ -69,13 +90,6 @@ export interface RectButtonProps extends BaseButtonProps {
}

export interface BorderlessButtonProps extends BaseButtonProps {
/**
* Android only.
*
* Set this to false if you want the ripple animation to render only within view bounds.
*/
borderless?: boolean;

/**
* iOS only.
*
Expand Down