Remove deprecated APIs
未关闭
还没有人认领这个 Issue。
Needs: Attention
Needs: Repro
p: Expo
Partner
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
The APIs listed below are already replaced, broken, or no longer do anything. They should be removed to keep the surface small and avoid confusing new users.
We should clean each one up once the version it was deprecated in is flagged as unsupported. The React Native releases page lists which versions are still supported, so use it to decide when removal is safe.
I will open multiple PRs to clean these up, one per API.
- Modal
animated(deprecated since < 0.60) - https://github.com/react/react-native/pull/57385 - ScrollView
keyboardShouldPersistTapsboolean values (deprecated since < 0.60) - https://github.com/react/react-native/pull/57386 - VirtualizedList
disableVirtualization(deprecated since < 0.60) - https://github.com/react/react-native/pull/57388 - StatusBar
backgroundColor/translucent(Android) (deprecated since 0.76) - https://github.com/react/react-native/pull/57392 - StatusBar
setNetworkActivityIndicatorVisible()(iOS) (deprecated since 0.77) - https://github.com/react/react-native/pull/57392 - TextInput
blurOnSubmit(deprecated since 0.77) - https://github.com/react/react-native/pull/57393 - InteractionManager (deprecated since 0.80) - https://github.com/react/react-native/pull/57394
- SafeAreaView (deprecated since 0.81) - https://github.com/react/react-native/pull/57395
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从 React Native releases 页面开始,确认已弃用 API 的引入版本已不再受支持。选择一个未勾选的条目—VirtualizedList disableVirtualization、TextInput blurOnSubmit 或 SafeAreaView—然后检查其实现和对应的 PR 引用;当该 API 被安全移除后即算完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native
- 领域
- mobile
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100