iOS: Slider sometimes does not mount at full width
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react-native
- Domain
- mobile
Research direction
Start by reproducing the slider's initial mount in a react-native-navigation modal under React Native 0.77 with the new architecture enabled, using style={{ width: '100%' }} and an initial value of 3.6. Investigate the slider's layout behavior during mounting; done means the track consistently renders at full width while retaining normal 0-to-5 selection.
Written by the indexing model from the issue text.
Description
Environment
- react-native info output:
// react-native info
npmPackages:
"@react-native-community/cli":
installed: 15.1.3
wanted: ^15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.77.3
wanted: ^0.77.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Description
On initial mount of a new component that contains a slider, the slider will very rarely not expand to full width even though we have styled it as such. Here's a screenshot:
In this example the slider is being set with an initial value of 3.6 (out of 5.0), but you can see the actual track of the slider is only rendering at less than half the width that it should be. Note that we render the tick-marks ourselves, not via the repo, but they show that we expect the slider to be full width. The slider still functions normally at this point, allowing selection of values 0 to 5 but only along this tiny track. 98% of the time when pushing this screen it appears normally...this just appears to be an odd race condition.
This only started happening after I upgraded from RN 0.76 to 0.77 and enabled the new architecture, and upgraded slider from 4.5.0 to 5.0.1. I suspect it's related to new arch.
Reproducible Demo
Not reproducible every time so this is tough. But it's a slider with style={{ width: '100%' }} set and the component is presented via a react-native-navigation (wix) modal
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 295
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstack/react-native-slider
-
bug report
Difficulty 1/5 Under an hour Newbie friendliness 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS
Difficulty 4/5 3-5 days Newbie friendliness 42/100
callstack/react-native-slider#782 · 6 comments ·
-
bug report
Difficulty 3/5 1-2 days Newbie friendliness 65/100
callstack/react-native-slider#780 · 1 comment ·
-
bug report
Difficulty 3/5 1-2 days Newbie friendliness 35/100
callstack/react-native-slider#767 ·
-
bug report platform: iOS
Difficulty 4/5 3-5 days Newbie friendliness 45/100
callstack/react-native-slider#758 · 4 comments ·
All issues in callstack/react-native-slider
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·