Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumb hides behind track on upgrade to ReactNative 76 #36

Open
mahcloud-tinker opened this issue Jan 23, 2025 · 0 comments
Open

Thumb hides behind track on upgrade to ReactNative 76 #36

mahcloud-tinker opened this issue Jan 23, 2025 · 0 comments

Comments

@mahcloud-tinker
Copy link

Here are our custom styles

return (
    <Toggle
      onPress={onToggle}
      thumbButton={{
        width: 20,
        height: 20,
      }}
      thumbStyle={{
        activeBackgroundColor: '#303030',
      }}
      trackBar={{
        activeBackgroundColor: '#E5FE52',
        inActiveBackgroundColor: '#C7C7C7',
        borderActiveColor: '#E5FE52',
        borderInActiveColor: '#C7C7C7',
        borderWidth: 3,
        radius: 20,
        height: 20,
        width: 40,
      }}
      value={isOn}
    />
  );

This worked for us in RN 0.73.9 but after we upgraded to RN 0.76.5, the thumb button would always hide behind the track bar. Even if I change the styling to make the thumb button bigger, it would still be hidden behind the trackbar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant