Meituan-Dianping / Meituan-Dianping/beeshell

NavigationBar 的 backLabel 和 forwardLabel 属性不支持null?

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.8k
Forks
285
PR merge metrics
No merged PRs in 30d

Description

当前版本为 2.0.11,使用null ts会报错,已知版本2.0.3是支持的,,,type定义文件应该有修改,不知出于什么原因,目前采用空fragment处理空的情况,不知道是否有更好的解决方案

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the NavigationBar type definitions in the current 2.0.11 source and compare them with version 2.0.3, focusing on backLabel and forwardLabel. Verify whether null is accepted by the TypeScript types and confirm the intended behavior with a type-check or existing NavigationBar usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.