about summary refs log tree commit diff
path: root/src/view/com/util/Views.web.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-09-08 00:38:57 +0100
committerGitHub <noreply@github.com>2023-09-07 16:38:57 -0700
commita5b89dffa6713bb06c1c572bbdc00517cf5e9bc5 (patch)
treeac8aa2deec7cc24d9a3553bab0c48335d2e8677c /src/view/com/util/Views.web.tsx
parent00595591c46db6ebfa9a8ee404f275b43493f7e0 (diff)
downloadvoidsky-a5b89dffa6713bb06c1c572bbdc00517cf5e9bc5.tar.zst
Add ESLint React plugin (#1412)
* Add eslint-plugin-react

* Enable display name rule
Diffstat (limited to 'src/view/com/util/Views.web.tsx')
-rw-r--r--src/view/com/util/Views.web.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/util/Views.web.tsx b/src/view/com/util/Views.web.tsx
index 891d3f2ee..fda0a9b86 100644
--- a/src/view/com/util/Views.web.tsx
+++ b/src/view/com/util/Views.web.tsx
@@ -38,7 +38,7 @@ export function CenteredView({
   return <View style={style} {...props} />
 }
 
-export const FlatList = React.forwardRef(function <ItemT>(
+export const FlatList = React.forwardRef(function FlatListImpl<ItemT>(
   {
     contentContainerStyle,
     style,
@@ -99,7 +99,7 @@ export const FlatList = React.forwardRef(function <ItemT>(
   )
 })
 
-export const ScrollView = React.forwardRef(function (
+export const ScrollView = React.forwardRef(function ScrollViewImpl(
   {contentContainerStyle, ...props}: React.PropsWithChildren<ScrollViewProps>,
   ref: React.Ref<RNScrollView>,
 ) {