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

Alignment and Snap Problem in RulerPicker Component #3

Open
abhay-rana opened this issue Aug 14, 2023 · 5 comments
Open

Alignment and Snap Problem in RulerPicker Component #3

abhay-rana opened this issue Aug 14, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@abhay-rana
Copy link

I'm facing an alignment issue and snap problem with the RulerPicker component in the react-native-ruler-picker library. The teeth of the ruler picker are not aligned properly, and the snapping behavior is not accurate.

Steps to reproduce

1:) Include the RulerPicker component in your React Native project.

2:) <RulerPicker
min={100}
max={5000}
step={100}
fractionDigits={0}
unit="ML"
indicatorHeight={52}
textAlign="bottom"
gapBetweenSteps={5}
indicatorColor="#D1FF70"
shortStepColor="#D1FF70"
longStepColor="#D1FF70"
valueTextStyle={/* your value text style /}
unitTextStyle={/
your unit text style */}
/>

3:) Observe the misalignment of the teeth and the snapping behavior.

Expected Behavior:

The teeth of the ruler picker should align perfectly with the bottom teeth.
When scrolling, the snapping behavior should accurately snap to the teeth positions.

WhatsApp Image

as you can seen in the image the teeth is not aligned vertically

React Native version: 0.72
Operating System: Windows 11
Device: Android 13

@enestatli enestatli added the bug Something isn't working label Aug 20, 2023
@hazimal
Copy link

hazimal commented Mar 2, 2024

same issue in my project

@enestatli
Copy link
Member

enestatli commented Mar 4, 2024

@abhay-rana @hazimal only happening on Android?

@hazimal
Copy link

hazimal commented Mar 4, 2024

Tested only with android

@moulie415
Copy link

@Skipperlla @enestatli Is this being addressed? I can confirm I am experiencing this issue on android as well, iOS is fine

@ErMapsh
Copy link

ErMapsh commented Jul 4, 2024

Yes I'm also facing the same issue, @rnheroes Screenshot_2024-07-04-12-00-52-306_com docexa goroga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants