-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masonic/Multi Column support [Cleaner Rebase] #99
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import { | |
StyleProp, | ||
ScrollViewProps, | ||
ListRenderItemInfo, | ||
NativeScrollEvent, | ||
} from 'react-native'; | ||
import { | ||
LongPressGestureHandlerStateChangeEvent, | ||
|
@@ -583,6 +584,7 @@ export interface DraxContextValue { | |
/** Optional props that can be passed to a DraxProvider to modify its behavior */ | ||
export interface DraxProviderProps { | ||
debug?: boolean; | ||
multicolumn?: boolean; | ||
} | ||
|
||
/** Props that are passed to a DraxSubprovider, used internally for nesting views */ | ||
|
@@ -878,6 +880,9 @@ export interface DraxListProps<TItem> extends Omit<FlatListProps<TItem>, 'render | |
/** Callback handler for when a list item is moved within the list, reordering the list */ | ||
onItemReorder?: DraxListOnItemReorder<TItem>; | ||
|
||
/** Callback handler for when list is scrolled */ | ||
onScrollProp?: (scrollEvent: NativeScrollEvent) => void; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this leftover cruft from other branch work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah this is another change I added this to our app as well so we could pass in a custom onScroll event. I could put this in another commit if you prefer. |
||
|
||
/** Can the list be reordered by dragging items? Defaults to true if onItemReorder is set. */ | ||
reorderable?: boolean; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to tweak this to merge transform styles using the function I added when addressing #35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you mean this commit (https://github.com/nuclearpasta/react-native-drax/pull/88/files) I probably need to talk this one out, can't wrap my head around how to use it.