diff --git a/README.md b/README.md index baccb254e9fb1ec9884b85a6d53876da76a9f98f..d9ac134f0936a1b718afe80c3b610fbbd0f03d74 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ | 13 | [react-native-svg](https://github.com/software-mansion/react-native-svg) | 13.14.0 | 是 | 10% | [@react-native-oh-tpl/react-native-svg](https://github.com/react-native-oh-library/react-native-svg/releases) | [链接](zh-cn/react-native-svg.md) | | 14 | [react-native-exception-handler](https://github.com/a7ul/react-native-exception-handler) | 2.10.10 | 否 | 100% | [@react-native-oh-tpl/react-native-exception-handler](https://github.com/react-native-oh-library/react-native-exception-handler/releases) | [链接](zh-cn/react-native-exception-handler.md) | | 15 | [react-native-pager-view](https://github.com/callstack/react-native-pager-view) | 6.2.2 | 是 | 100% | [@react-native-oh-tpl/react-native-pager-view](https://github.com/react-native-oh-library/react-native-pager-view/releases) | [链接](zh-cn/react-native-pager-view.md) | +| 16 | [react-native-screens](https://github.com/software-mansion/react-native-screens) | 3.29.0 | 是 | 0% | [react-native-screens](https://github.com/software-mansion/react-native-screens/releases) | [链接](zh-cn/react-native-screens.md) | ## 社区 diff --git a/zh-cn/react-native-screens.md b/zh-cn/react-native-screens.md new file mode 100644 index 0000000000000000000000000000000000000000..b9a8eea0186b8eb81ee281f74f2087c74eb1644f --- /dev/null +++ b/zh-cn/react-native-screens.md @@ -0,0 +1,29 @@ +> 模板版本:v0.0.1 + +

+

react-native-screens

+

+

+ + Supported platforms + + + License + +

+ +### 禁用 `react-native-screens` + +因为没有鸿蒙原生实现 react-native-screens,需要禁用鸿蒙原生屏幕,使用 react-native views,请在您的入口文件中添加以下代码。 (例如. `App.js`): + +```js +import { enableScreens } from "react-native-screens"; + +enableScreens(false); +``` + +您还可以通过[`detachInactiveScreens`](https://reactnavigation.org/docs/stack-navigator#detachinactivescreens)在每个导航器中禁用使用原生屏幕 + +## 开源协议 + +本项目基于 [The MIT License (MIT)](https://github.com/a7ul/react-native-exception-handler/blob/master/LICENSE) ,请自由地享受和参与开源。