callstack / callstack/react-native-slider

Flicker on Initial Render Android

Đang mở
#733 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug report
Ngôn ngữ chính
TypeScript
Star
1.4k
Fork
295
Merge trung bình
5 phút
Pull request đã merge (30 ngày)
1

Mô tả

## Environment

I am using the example app
```
"@react-native-community/slider": "file:../package",
"babel-preset-expo": "^9.2.0",
"react": "^19.0.0",
"react-native": "^0.79.2",
"react-native-pager-view": "^6.6.0"
```

## Description

On Android, if there is a conditional render, the initial slider value flickers from 0 to the actual value

https://github.com/user-attachments/assets/846fd105-57e0-4d15-889f-0f3ede207473

## Reproducible Demo

https://github.com/cip123/react-native-slider/blob/main/example/src/App.tsx

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with the reproducible demo in example/src/App.tsx and run the example app on Android using the versions listed in the issue. Observe the slider during the conditional initial render and trace when its displayed value changes from 0 to the actual value. Done means the initial render no longer visibly flickers while preserving the actual slider value.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, react-native, typescript
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.