Skip to content

How do i padding for trackbar #20

@hungdev

Description

@hungdev

Thank you for your lib @mymai91
I would like to make toggle like this:
image

I tried with padding: 3px in trackBarStyle and trackBar, but it's not working.
Please tell me how to do it.
Here is my code:

      <Toggle
        value={value}
        onPress={onChange}
        trackBar={{
          width: 40,
        }}
        trackBarStyle={{ height: 24, width: 40, backgroundColor: Colors.PrimaryBlueBlizzardBlue }}
        thumbButton={{ height: 18, width: 18, radius: 9 }}
        thumbStyle={{ backgroundColor: Colors.white }}
      />

Thank you so much <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions