From bcf473928d30bf1fc8b9253187436a28de0885aa Mon Sep 17 00:00:00 2001 From: p60087772 Date: Thu, 12 Jun 2025 15:54:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICEPKS]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9animate-number=E5=92=8Cscrollable-tab-view=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-animate-number.md | 2 +- en/react-native-scrollable-tab-view.md | 12 +++++++++--- zh-cn/react-native-animate-number.md | 2 +- zh-cn/react-native-scrollable-tab-view.md | 12 +++++++++--- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/en/react-native-animate-number.md b/en/react-native-animate-number.md index 82121cb8a..af6097989 100644 --- a/en/react-native-animate-number.md +++ b/en/react-native-animate-number.md @@ -98,7 +98,7 @@ const App = () => { value={value} countBy={1} interval={150} - formatter={(val) => { + formatter={(val: any) => { return "$ " + parseFloat(val).toFixed(2); }} /> diff --git a/en/react-native-scrollable-tab-view.md b/en/react-native-scrollable-tab-view.md index a5deb72cd..2604c2541 100644 --- a/en/react-native-scrollable-tab-view.md +++ b/en/react-native-scrollable-tab-view.md @@ -50,15 +50,21 @@ import { import ScrollableTabView, { DefaultTabBar } from 'react-native-scrollable-tab-view'; +const TabText = (props: any) => { + return ( + {props.children} + ) +} + export default () => { return } > - My - favorite - project + My + favorite + project ; } ``` diff --git a/zh-cn/react-native-animate-number.md b/zh-cn/react-native-animate-number.md index 5f113c76d..cc9c8dd6e 100644 --- a/zh-cn/react-native-animate-number.md +++ b/zh-cn/react-native-animate-number.md @@ -98,7 +98,7 @@ const App = () => { value={value} countBy={1} interval={150} - formatter={(val) => { + formatter={(val: any) => { return "$ " + parseFloat(val).toFixed(2); }} /> diff --git a/zh-cn/react-native-scrollable-tab-view.md b/zh-cn/react-native-scrollable-tab-view.md index 02b32a6ab..aa35156d4 100644 --- a/zh-cn/react-native-scrollable-tab-view.md +++ b/zh-cn/react-native-scrollable-tab-view.md @@ -50,15 +50,21 @@ import { import ScrollableTabView, { DefaultTabBar } from 'react-native-scrollable-tab-view'; +const TabText = (props: any) => { + return ( + {props.children} + ) +} + export default () => { return } > - My - favorite - project + My + favorite + project ; } ``` -- Gitee