Support timer progress

未关闭
#201 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript, react-native
领域
mobile

调研方向

首先跟踪填充动画计数器的生成位置,以及组件 props 如何配置其范围。验证计时器在 600 秒时长下的行为,包括每次增加一秒,并考虑如何暴露可配置的上限;当进度组件能够支持这些计时器步进且不会丢失秒数时,即表示完成。

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

描述

The fill animation counter gets a number between 0-100.
Example: {fill => <Text>{fill}</Text>}

It's impossible to make the right timer. The current time can be calculated using the formula: fill * totalTimeInSeconds / 100

However, the timer will not show all seconds if the total time exceeds 100 seconds.
For example, display 10 minutes (600 seconds).
fill 1: 6 seconds
fill 2: 12 seconds
...
fill 100: 600

The timer should work with 1-second step. Making fill bounded to any N makes it possible to use react-native-circular-progress as the timer.

主要语言
JavaScript
星标
2.2k
派生
418
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bartgryszko/react-native-circular-progress 的其他 Issue

查看 bartgryszko/react-native-circular-progress 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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