Skip to content

Commit bc9162b

Browse files
authored
Update optimizing-flatlist-configuration.md
1 parent d83ebd6 commit bc9162b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/optimizing-flatlist-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ render(){
148148
<TabItem value="functional">
149149

150150
```jsx
151-
const renderItem = ({ item }) => (
151+
const renderItem = useCallback(({ item }) => (
152152
<View key={item.key}>
153153
<Text>{item.title}</Text>
154154
</View>
155-
);
155+
), []);
156156

157157
return (
158158
// ...

0 commit comments

Comments
 (0)