GeekyAnts / GeekyAnts/NativeBase

Allow Icon / Custom component for thumb in Switch component

Open
#5,604 1 comment 1 reaction 0 assignees View on GitHub
feature request triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

Hey!
Currently, other than its color, it's not possible to change the thumb component in the Switch component. It would be great if we could define a custom component like icons that is rendered instead of the default thumb as it is now.
There is a hacky workaround where, for example, an icon can be rendered above the thumb. However, it won't be animated by default but only rendered after the switch animation is complete.

### Problem Statement

Many modern designs of switch components include custom thumbs or at least icons within the default thumb which is why it should be easily addable in NB

### Proposed Solution or API

-

### Alternatives

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.