callstack / callstack/react-native-slider

Bug when working with expo router

未关闭
#724 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug report
主要语言
TypeScript
星标
1.4k
派生
295
平均合并
5 分钟
30 天内合并 PR
1

描述

## Environment

* react-native info output:
```
// react-native info
```

* are you using the new architecture?

* which version of react & react-native are you using?
"react": "19.0.0",
"react-native": "0.79.5",

## Description

So I migrated to use expo router from react navigation. One of my pages have two sliders. Before, it was working fine. However, after the migration, when i press back button on that slider page, and then go back to that page via router.push (i am in a stack navigator), the slider with the bigger maximum value would take the value of the other slider. This is such a strange behaviour! Someone needs to fix this! Why are two sliders sharing the same state. I experimented with this and even when the two sliders is not using any states, but I just put constants into the value field, etc., this issue still persists. This is incredibly frustrating. I even tried isolating the two sliders, and to no avail. I tried changing the key, doesn't work.

## Reproducible Demo

Read above

贡献指南

打开贡献指南

调研方向

首先使用 React 19.0.0 和 React Native 0.79.5 重现报告:在 stack 屏幕上使用两个 slider,并通过 Expo Router 导航离开后再返回。该 issue 未提供可复现的项目、文件、入口点或测试,因此要完成此项工作,需要隔离原因,并为使用两个 slider 的导航场景添加回归测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。