diff --git a/zh-cn/react-native-drawer-layout-polyfill.md b/zh-cn/react-native-drawer-layout-polyfill.md index 1b65faf2a57b3b8da9cc4d58ca513fbaec52da07..abcaecc96dafb4b9864e26bc3a16f436a687794f 100644 --- a/zh-cn/react-native-drawer-layout-polyfill.md +++ b/zh-cn/react-native-drawer-layout-polyfill.md @@ -243,24 +243,24 @@ export default App; | Name | Description | Type | Required | Platform | HarmonyOS Support | note | | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- | ------------------------------------------------------ | -| renderNavigationView | The navigation view that will be rendered to the side of the screen and can be pulled in. | function | YES | Android IOS | YES | | -| drawerPosition | Specifies the side of the screen from which the drawer will slide in. By default it is set to left. enum('left', 'right') | string | NO | Android IOS | YES | | -| drawerWidth | Specifies the width of the drawer, more precisely the width of the view that be pulled in from the edge of the window. | number | NO | Android IOS | YES | | -| keyboardDismissMode | Determines whether the keyboard gets dismissed in response to a drag. 'none' (the default), drags do not dismiss the keyboard. 'on-drag', the keyboard is dismissed when a drag begins. | string | NO | Android IOS | YES | | -| drawerLockMode | Specifies the lock mode of the drawer. The drawer can be locked in 3 states: unlocked (default), meaning that the drawer will respond (open/close) to touch gestures. locked-closed, meaning that the drawer will stay closed and not respond to gestures. locked-open, meaning that the drawer will stay opened and not respond to gestures. The drawer may still be opened and closed programmatically (openDrawer/closeDrawer). | string | NO | Android IOS | YES | | -| drawerBackgroundColor | Specifies the background color of the drawer. The default value is white. If you want to set the opacity of the drawer, use rgba. | string | NO | Android IOS | YES | | -| statusBarBackgroundColor | Make the drawer take the entire screen and draw the background of the status bar to allow it to open over the status bar. It will only have an effect on API 21+. IOS and harmony are not supported. | string | NO | Android | NO | The original library only does the function of Android | -| onDrawerOpen | Function called whenever the navigation view has been opened. | function | NO | Android IOS | YES | | -| onDrawerClose | Function called whenever the navigation view has been closed. | function | NO | Android IOS | YES | | -| onDrawerSlide | Function called whenever there is an interaction with the navigation view. | function | NO | Android IOS | YES | | -| onDrawerStateChanged | Function called when the drawer state has changed. The drawer can be in 3 states: idle, meaning there is no interaction with the navigation view happening at the time | function | NO | Android IOS | YES | | +| renderNavigationView | 一种将渲染在屏幕侧边、可滑动唤出的导航视图。 | function | YES | Android IOS | YES | | +| drawerPosition | 指定抽屉式导航栏滑入屏幕时对应的侧边方向。默认设置为左侧。枚举类型:('left', 'right') | string | NO | Android IOS | YES | | +| drawerWidth | 指定抽屉的宽度,更准确地说,是从窗口边缘滑入的视图的宽度。 | number | NO | Android IOS | YES | | +| keyboardDismissMode | 决定拖动操作是否会收起软键盘。取值 none(默认值)时,拖动不会收起软键盘;取值 on-drag 时,拖动时软键盘即会收起。 | string | NO | Android IOS | YES | | +| drawerLockMode | 指定抽屉的锁定模式。抽屉可被锁定为三种状态:unlocked(默认):抽屉会响应触摸手势,支持打开 / 关闭操作;locked-closed:抽屉保持关闭状态,不能使用手势打开;locked-open:抽屉保持打开状态,不能使用手势关闭。 | string | NO | Android IOS | YES | | +| drawerBackgroundColor | 指定抽屉的背景颜色,默认值为白色。若需设置抽屉的不透明度,请使用 rgba 颜色值。 | string | NO | Android IOS | YES | | +| statusBarBackgroundColor | 使抽屉占据整个屏幕并绘制状态栏背景,以允许其在状态栏上方展开。此功能仅在 API 21 及以上版本生效,不支持 iOS 和鸿蒙系统。 | string | NO | Android | NO | 该原生库仅支持安卓。| +| onDrawerOpen | 导航视图被打开后的回调函数。 | function | NO | Android IOS | YES | | +| onDrawerClose | 导航视图被关闭后的回调函数。 | function | NO | Android IOS | YES | | +| onDrawerSlide | 导航视图发生交互时的回调函数。 | function | NO | Android IOS | YES | | +| onDrawerStateChanged | 导航视图的状态变化时的回调函数。有三种状态: idle,导航视图没有发生任何交互;dragging,导航视图正在进行交互; settling,导航视图正在发生交互,并且导航视图正在完成其关闭或打开动画。 | function | NO | Android IOS | YES | | ## 方法 | Name | Description | Required | Platform | HarmonyOS Support | | ----------- | ------------------ | -------- | ----------- | ----------------- | -| openDrawer | Closes the drawer. | NO | Android IOS | YES | -| closeDrawer | Opens the drawer. | NO | Android IOS | YES | +| openDrawer | 打开弹框。 | NO | Android IOS | YES | +| closeDrawer | 关闭弹框。 | NO | Android IOS | YES | ## 遗留问题