Skip to content

Commit

Permalink
Reverted the file which casued the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipulbhj committed Nov 23, 2021
1 parent 9cd8633 commit 82ca40d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/task-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
ScrollView
} from 'react-native-gesture-handler'
import TaskItem from './task-item'
import { Factory } from 'native-base'
import { makeStyledComponent } from '../utils/styled'

const NativeBaseStyledView = Factory(View)
const NativeBaseStyledScrollView = Factory(ScrollView)
const StyledView = makeStyledComponent(View)
const StyledScrollView = makeStyledComponent(ScrollView)

interface TaskItemData {
id: string
Expand Down Expand Up @@ -67,7 +67,7 @@ export const AnimatedTaskItem = (props: TaskItemProps) => {
onRemove(data)
}, [data, onRemove])
return (
<NativeBaseStyledView
<StyledView
w="full"
from={{
opacity: 0,
Expand Down Expand Up @@ -96,7 +96,7 @@ export const AnimatedTaskItem = (props: TaskItemProps) => {
onPressLabel={handlePressLabel}
onRemove={handleRemove}
/>
</NativeBaseStyledView>
</StyledView>
)
}

Expand All @@ -113,7 +113,7 @@ export default function TaskList(props: TaskListProps) {
const refScrollView = useRef(null)

return (
<NativeBaseStyledScrollView ref={refScrollView} w="full">
<StyledScrollView ref={refScrollView} w="full">
<AnimatePresence>
{data.map(item => (
<AnimatedTaskItem
Expand All @@ -129,6 +129,6 @@ export default function TaskList(props: TaskListProps) {
/>
))}
</AnimatePresence>
</NativeBaseStyledScrollView>
</StyledScrollView>
)
}

0 comments on commit 82ca40d

Please sign in to comment.