diff --git a/en/react-native-animate-number.md b/en/react-native-animate-number.md
index 82121cb8ad211cad06f9a92283ae714d23ad8999..af60979894813d4e6076d0e16a2a360e56cb12f7 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 a5deb72cda90dbeb60f5d5704aa866faeea47140..2604c2541670a39dd769f2910fcb4a68554af795 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 5f113c76d8eb7903859f0047c1adaacbc6121deb..cc9c8dd6eb5231fd111bbdf13bf8695f890eba61 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 02b32a6ab5649708981c2f58a91ccd50faf06bdf..aa35156d46aaf36465932f40c2ee1861737d1444 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
;
}
```