From 6d7cbbe963f3b4da03291cff11cac41f5914878e Mon Sep 17 00:00:00 2001 From: fankw Date: Tue, 4 Mar 2025 16:55:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IBQNH8]:=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-json-tree=E7=BB=84=E4=BB=B6=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81collectionLimit=E5=B1=9E=E6=80=A7=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-json-tree.md | 4 +++- zh-cn/react-native-json-tree.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/en/react-native-json-tree.md b/en/react-native-json-tree.md index 6a989165..1e7dddd3 100644 --- a/en/react-native-json-tree.md +++ b/en/react-native-json-tree.md @@ -283,7 +283,7 @@ For details, see [react-native-json-tree docs](https://github.com/Dean177/react- | `valueRenderer` | `Rendering function for custom node values`. | `()=>void` | No | All | Yes | | `sortObjectKeys` | `Sort the keys of JSON objects`. | `()=>void` | No | All | Yes | | `keyPath` | `A data node used to identify and customize a specific path in a JSON tree`. | `['']` | No | All | Yes | -| `collectionLimit` | `Use to control the maximum number of elements of a collection displayed in a JSON tree`. | `number` | No | All | Yes | +| `collectionLimit` | `Use to control the maximum number of elements of a collection displayed in a JSON tree`. | `number` | No | All | No | | `postprocessValue` | `For customizing values before they are rendered`. | `()=>void` | No | All | Yes | | `isCustomNode` | `Specify which nodes should use custom rendered properties.` | `()=>bool` | No | All | Yes | @@ -291,6 +291,8 @@ For details, see [react-native-json-tree docs](https://github.com/Dean177/react- ## Others +-The collectionLimit attribute of JSONTree component does not take effect, which is consistent with iOS [issue # 163](https://github.com/Dean177/react-native-json-tree/issues/163) + ## License This project is licensed under [The MIT License (MIT)](https://github.com/Dean177/react-native-json-tree/blob/master/LICENSE.md). diff --git a/zh-cn/react-native-json-tree.md b/zh-cn/react-native-json-tree.md index 6cd5ea50..3add10c2 100644 --- a/zh-cn/react-native-json-tree.md +++ b/zh-cn/react-native-json-tree.md @@ -286,7 +286,7 @@ export default () => { | `valueRenderer` | `Rendering function for custom node values`. | `()=>void` | No | All | Yes | | `sortObjectKeys` | `Sort the keys of JSON objects`. | `()=>void` | No | All | Yes | | `keyPath` | `A data node used to identify and customize a specific path in a JSON tree`. | `['']` | No | All | Yes | -| `collectionLimit` | `Use to control the maximum number of elements of a collection displayed in a JSON tree`. | `number` | No | All | Yes | +| `collectionLimit` | `Use to control the maximum number of elements of a collection displayed in a JSON tree`. | `number` | No | All | No | | `postprocessValue` | `For customizing values before they are rendered`. | `()=>void` | No | All | Yes | | `isCustomNode` | `Specify which nodes should use custom rendered properties.` | `()=>bool` | No | All | Yes | -- Gitee