Skip to content

Commit

Permalink
feat: pressableHightlightColor prop to customize pressable appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Jun 4, 2021
1 parent cf5564e commit e5dfa1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/render-html/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DEFAULT_TEXT_COLOR = 'black';
const DEFAULT_PRESSABLE_RIPPLE_COLOR = 'blue';
const DEFAULT_PRESSABLE_RIPPLE_COLOR = 'rgba(38, 132, 240, 0.2)';

const constants = {
DEFAULT_PRESSABLE_RIPPLE_COLOR,
Expand Down
8 changes: 8 additions & 0 deletions packages/render-html/src/shared-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,19 @@ export interface RenderHTMLSharedProps<
*
* @returns a record of markers if one or many markers should be added,
* `null` otherwise.
*
* @remarks
* Changes to this prop will cause a react tree update. Always memoize it.
*/
setMarkersForTNode?: (
tnode: TNode,
parentMarkers: Markers
) => Partial<Markers> | null;
/**
* Color used for pressable items, either for the ripple effect (Android), or
* highlight (other platforms).
*/
pressableHightlightColor?: string;
}

export interface TransientRenderEngineConfig {
Expand Down

0 comments on commit e5dfa1e

Please sign in to comment.