From 72769e97316238a285079088a75c2bb25210222c Mon Sep 17 00:00:00 2001 From: 01xkp <1903679953@qq.com> Date: Fri, 22 Nov 2024 14:35:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9react-native-notifier?= =?UTF-8?q?=E7=9A=84=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-notifier.md | 4 ++-- zh-cn/react-native-notifier.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/react-native-notifier.md b/en/react-native-notifier.md index 888f6e92..f92b1b0a 100644 --- a/en/react-native-notifier.md +++ b/en/react-native-notifier.md @@ -130,7 +130,7 @@ Notifier.showNotification(params: object); | description | Description of notification. Passed to Component. | String | Yes | All | Yes | | duration | Time after notification will disappear. Set to 0 to not hide notification automatically | Number | No | All | Yes | | Component | Component of the notification body. You can use one of the [bin components](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components), or your [custom component](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#custom-component). | Component | No | All | Yes | -| componentProps | Additional props that are passed to Component. See all available props of built-in components in the [components section](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components). | Object | No | All | Yes | +| componentProps | Additional props that are passed to Component. See all available props of built-in components in the [components section](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components). | Object | No | All | No | | containerStyle | tyles Object or a Function that will receive translateY: Animated.Value as first parameter and should return Styles that will be used in container. Using this parameter it is possible to create[ your own animations of the notification](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#custom-animations). | bool | No | All | Yes | | containerProps | Props of Animated Container | Object | No | All | Yes | | queueMode | Determines the order in which notifications are shown. Read more in the [Queue Mode](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#queue-mode) section. | String | No | All | Yes | @@ -222,7 +222,7 @@ Currently, there are 2 components out of the box. If none of them fits your need ## Known Issues - [ ] translucentStatusBar 状态栏透明在 HarmonyOS 不支持,useRNScreensOverlay,rnScreensOverlayViewStyle 两个 Properties 依赖于 react-native-screens,暂未适配 harmonyOS - +- [ ] componentProps{needsOffscreenAlphaCompositing}, 在harmonyOS不支持 ## Others - omitGlobalMethodsHookup 源库 Properties 未生效 问题:[issues#102](https://github.com/seniv/react-native-notifier/issues/102) diff --git a/zh-cn/react-native-notifier.md b/zh-cn/react-native-notifier.md index c53cc98c..ef01e40a 100644 --- a/zh-cn/react-native-notifier.md +++ b/zh-cn/react-native-notifier.md @@ -128,7 +128,7 @@ Notifier.showNotification(params: object); | description |Description of notification. Passed to Component. | String | Yes | All | Yes | | duration |Time after notification will disappear. Set to 0 to not hide notification automatically | Number | No |All | Yes | Component |Component of the notification body. You can use one of the [bin components](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components), or your [custom component](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#custom-component). | Component | No |All | Yes -| componentProps | Additional props that are passed to Component. See all available props of built-in components in the [components section](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components). | Object | No |All | Yes +| componentProps | Additional props that are passed to Component. See all available props of built-in components in the [components section](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#components). | Object | No |All | No | containerStyle |tyles Object or a Function that will receive translateY: Animated.Value as first parameter and should return Styles that will be used in container. Using this parameter it is possible to create[ your own animations of the notification](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#custom-animations). | bool |No | All | Yes | containerProps | Props of Animated Container | Object |No | All | Yes | queueMode | Determines the order in which notifications are shown. Read more in the [Queue Mode](https://github.com/seniv/react-native-notifier/tree/main?tab=readme-ov-file#queue-mode) section. | String |No | All | Yes @@ -216,7 +216,7 @@ Currently, there are 2 components out of the box. If none of them fits your need ## 遗留问题 - [ ] translucentStatusBar状态栏透明在HarmonyOS不支持,useRNScreensOverlay,rnScreensOverlayViewStyle两个属性依赖于react-native-screens,暂未适配harmonyOS - +- [ ] componentProps{needsOffscreenAlphaCompositing}, 在harmonyOS不支持 ## 其他 - omitGlobalMethodsHookup源库属性未生效 问题:[issues#102](https://github.com/seniv/react-native-notifier/issues/102) -- Gitee