Skip to content

Commit

Permalink
refactor: remove getNode from scrollables (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom authored Jan 7, 2021
1 parent 5f22662 commit 262ac93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/flatList/FlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const BottomSheetFlatListComponent = forwardRef(

// effects
// @ts-ignore
useImperativeHandle(ref, () => scrollableRef.current!.getNode());
useImperativeHandle(ref, () => scrollableRef.current);
useFocusHook(handleSettingScrollable);

// render
Expand Down
2 changes: 1 addition & 1 deletion src/components/scrollView/ScrollView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const BottomSheetScrollViewComponent = forwardRef(

// effects
// @ts-ignore
useImperativeHandle(ref, () => scrollableRef.current!);
useImperativeHandle(ref, () => scrollableRef.current);
useFocusHook(handleSettingScrollable);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/sectionList/SectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const BottomSheetSectionListComponent = forwardRef(

// effects
// @ts-ignore
useImperativeHandle(ref, () => scrollableRef.current!.getNode());
useImperativeHandle(ref, () => scrollableRef.current);
useFocusHook(handleSettingScrollable);

// render
Expand Down

0 comments on commit 262ac93

Please sign in to comment.