Git Product home page Git Product logo

wuhan2020-frontend-react-native-app's Introduction

wuhan2020 社区官网 wuhan2020 官方公告

志愿者入口(Slack交流群组) >>> 点击加入 Slack 交流群组

目录

新型冠状病毒肺炎防疫信息收集平台

针对 2020 年初在武汉爆发的新型冠状病毒疫情,本项目旨在收集各医院、酒店、工厂、物流、捐赠、捐款、预防、治疗、动态等信息,统一收集,统一发布,以便各方之间进行信息互通,有效调配社会资源。

该仓库为数据主仓,所有数据由脚本自动提交导入,请不要在该仓库中直接提交数据信息,具体数据提交渠道,请参考该文档。

协作流程

本平台为方便大家协作,构建如下协作流程

img

除信息人工审核外,其他部分均为自动化完成,不应需要人工介入。

该平台主要开源项目

数据同步

渐进式 Web 应用

API 服务

地图可视化组件

石墨表格同步组件

合作的公益项目

阿里云疫情分析平台(完全免费)

我是志愿者,希望一起维护项目

我是数据提交志愿者,使用石墨文档

本平台收集信息包含如下几类数据提交的信息,请分别申报填写。

本平台使用石墨文档收集数据信息,并由脚本定时同步数据到该仓库,请不要在该仓库中直接修改数据文件。

由于参与人员较多,不开放所有人员的编辑权限,请在这里填写申请,会定向邀请到特定表单中进行信息录入。

石墨文档地址:

具体细节可以参见这里

我是开发相关志愿者,使用GitHub

本平台现阶段主要流程是使用GitHub flow以及GitHub project,通过issue和PR来进行处理。参与者需要有GitHub账号。

提交issue

issue可以是需求,也可以是建议或者bug等。在提交 issue 时,请确定 issue 的类型,并在标题中注明,项目的机器人将会自动打上对应的标签。具体类型现在定义如下:

  • hospital: 医院相关信息
  • factory: 生产相关信息
  • logistical: 物流相关信息
  • hotel: 酒店相关信息
  • donation:捐款相关信息
  • clinic:义诊相关信息
  • news:疫情新闻动态相关信息
  • doc: 文档相关
  • bug: 缺陷反馈
  • feature: 新的特性

认领任务

Issue 列表 中挑选任务。然后在该 issue 中使用 /self-assign命令领取任务。项目的机器人将会自动将该issueAssignees指定为自己。

具体如何提issue和PR,请参考这里

Slack交流群组

点击加入Slack 交流群组

Slack频道导航

(需要先加入群组)

频道名 链接
默认频道 Github
通用信息发布 Github
设计技能组 Github
产品需求管理技能组 Github
前端技能组 Github
后端技能组 Github
子项目: 数据同步 Github
子项目: Web前端展示 Github
子项目: 数据地图可视化 Github
子项目: API服务器 Github
采集给官方的建议 Github
海外相关 Github
Slack频道运营团队 Github

邮件列表

wuhan2020 邮件列表:[email protected] (订阅, 退订, 存档)

欢迎大家加入共同探讨各类技术或非技术类问题,让我们大家一起齐心协力,众志成城,共克时艰!

FAQ常见问题

已经整理整个项目的FAQ,请查看

信息组FAQ,请查看

请点击石墨文档

wuhan2020-frontend-react-native-app's People

Contributors

ding-fan avatar geastwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wuhan2020-frontend-react-native-app's Issues

The iOS App Won't Function Properly when Dragging to Close a Detailed View

Testing environment: iOS13.3

When opening a news item from the "最新新闻" table and then closing it using a dragging down gesture on the top of the view, the same news item can't be opened again. This doesn't happen when the news item is closed by pressing the close button on the bottom of its view.

A similar bug is detected under the view corresponding to the "Wuhan2020" tab. When opening the detail of a hospital using the "查看详情" button and then close it using a dragging down gesture on the top of the view, the entire view under "Wuhan2020" freezes. However, the other 4 tabs (i.e. "主页", "新闻汇总", "同城查询" and "关于") and their corresponding views are not affected when "Wuhan2020" freezes.

It is suspected that a similar bug occurs in every table view where a detailed view can be expanded.

IMG_4933
IMG_4934

react-native-screens could not be found

当前问题

error: bundling failed: Error: Unable to resolve module `react-native-screens` from `node_modules/react-navigation-tabs/lib/module/navigators/createBottomTabNavigator.js`: react-native-screens could not be found within the project or in these directories:
  node_modules

I checked package.json and didn't see react-native-screens in the "dependencies": .

期待的正确输出

react-native-screens should be in the "dependencies": .

Handle request timeout

Currently, there is no handling of request timing out or failed. The end result is the spinner spins forever. The game plan will be,

  • adding a default timeout.
  • if the request failed or timed out, a button "Refresh" is shown and by clicking it, retrigger the request
  • [optional] add default data

(android)FAILURE: Build failed with an exception.

当前问题

I cloned this repository to my local and installed the dependencies with yarn , then

1:19:05 › npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1014 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve androidx.transition:transition:1.1.0.
     Required by:
         project :app > project :react-native-reanimated
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://jcenter.bintray.com/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://jitpack.io/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://jitpack.io/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6m 6s

I've searched on the internet and found this issue looks similar. transistorsoft/react-native-background-geolocation#536 (comment)
Now I'm trying to install the dependencies with npm .

Now it works. Build successful.

期待的正确输出

BUILD SUCCESSFUL

Show Statistic when the User Highlights a Province on the Map

It would be a nice feature to show the statistic (total number of cases) in a province/city when the user clicks to highlight it. E.g. in the screen capture below, when Henan is highlighted, there could be a figure next to it showing the number of confirmed cases in Henan Province to better guide the user.
IMG_4932

测试版本每日构建

每天固定时间如晚上十二点生产一版APP作为第二天的测试版本,并标注文件路径和日期,测试提出的问题会标注使用的版本和路径信息,方便问题管理

Make Map Zoomable

Currently, the maps on "疫情地图" are not zoomable, making it very difficult to inspect (click on) provinces and cities that are small in area (e.g. Tianjin and Hong Kong).

Integrate data module

Data from wuhan2020 are wrapped in this npm module.
Consume data leveraging this module

npm install wh-data-client

使用swipe back切换新物资分类时会自动回退

Reproduce step:
点击一种物资分类,例如医院;用iOS的swipe gesture返回到上一级页面;再选择新的分类,例如捐款。

Expected:
可以打开捐款

Actual:
捐款页面出现一下,马上回退到上一级页面

备注:
如果点击左上角返回按钮而不是用手势返回,这个bug并不会出现。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.