diff --git a/src/index.tsx b/src/index.tsx index 134be3c..2661058 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useMemo, useState, useEffect } from 'react'; -import { ScrollViewProps, ScrollView } from 'react-native'; +import { ScrollViewProps, ScrollView, View } from 'react-native'; interface Props extends ScrollViewProps { readonly children: React.ReactNode; @@ -56,8 +56,12 @@ const SmartScrollContainer = ({ [horizontal, onContentSizeChange] ); + // TODO: fix sizing/positioning + const Component = !scrollEnabled && !horizontal ? View : ScrollView; + return ( - {children} - + ); };