callstack / callstack/react-native-slider
Support native events
- 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ả
## Describe the Feature
**Native Events** instead of ~js events~:
`onValueChange`
`onSlidingStart`
`onSlidingComplete`
## Possible Implementations
Supporting **native events** will unlock the abilities of `Animated.event` enabling tracking the Slider's value and animating stuff accordingly.
This will enable customizing this view to a large extent easily and with high performance.
Avoiding breaking changes can be achieved with a flag from props or by checking `typeof props.onValueChange === 'object'`
.
### Android JS Impl
Uses `Slider` for `value` and renders the rest on top.
Native events will enhance this extremely and make *dev experience* easier (less code needed for customization)

## Related Issues
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách lần theo phần triển khai Android JS được mô tả trong issue, đặc biệt là cách các thay đổi giá trị của Slider và các event được liệt kê được kết nối. So sánh các event JavaScript hiện tại với cách React Native xử lý native-event và xác định Animated.event nên nhận các cập nhật của Slider như thế nào. Công việc được xem là hoàn tất khi ba event native hoạt động mà không làm hỏng những người dùng event JavaScript hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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