Skip to content

Commit

Permalink
fix(ts): make useNext optional (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvliwanag authored Jul 12, 2024
1 parent ef8b3d6 commit 5ba9ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PagerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class PagerViewInternal extends React.Component<NativeProps> {
}

// Temporary solution. It should be removed once all things get fixed
type PagerViewProps = Omit<NativeProps, 'useLegacy'> & { useNext: boolean };
type PagerViewProps = Omit<NativeProps, 'useLegacy'> & { useNext?: boolean };

export const PagerView = React.forwardRef<PagerViewInternal, PagerViewProps>(
(props, ref) => {
Expand Down

0 comments on commit 5ba9ca0

Please sign in to comment.