about summary refs log tree commit diff
path: root/src/view/com/util/Views.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/util/Views.jsx')
-rw-r--r--src/view/com/util/Views.jsx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/view/com/util/Views.jsx b/src/view/com/util/Views.jsx
index 2984a2d2d..02a2b407e 100644
--- a/src/view/com/util/Views.jsx
+++ b/src/view/com/util/Views.jsx
@@ -1,12 +1,7 @@
-import React from 'react'
 import {View} from 'react-native'
 import Animated from 'react-native-reanimated'
 
+// If you explode these into functions, don't forget to forwardRef!
 export const FlatList_INTERNAL = Animated.FlatList
-export function CenteredView(props) {
-  return <View {...props} />
-}
-
-export function ScrollView(props) {
-  return <Animated.ScrollView {...props} />
-}
+export const CenteredView = View
+export const ScrollView = Animated.ScrollView