Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afgarcia86
Copy link

related: #67

@@ -210,7 +211,7 @@ export const DraxList = <T extends unknown>(
} = itemStyles ?? {};
return (
<DraxView
style={[itemStyle, { transform: getShiftTransform(originalIndex) }]}
style={[itemStyle, getShiftTransformStyle(originalIndex)]}
Copy link
Contributor

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

Copy link
Author

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.

src/DraxList.tsx Outdated Show resolved Hide resolved
@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this leftover cruft from other branch work?

Copy link
Author

Choose a reason for hiding this comment

The 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.

@lafiosca
Copy link
Contributor

The good news is that ultimately there doesn't seem to be a lot of code for us to review! Still I'd love to step through it and work an example together to understand what's going on here and any potential gaps it has. Thank you!

@afgarcia86
Copy link
Author

afgarcia86 commented Jun 15, 2021 via email

@lafiosca
Copy link
Contributor

Sorry for the hit and run comments yesterday @afgarcia86 I jumped offline for the day right after that!

@StevenGonzalez
Copy link

StevenGonzalez commented Sep 26, 2022

@lafiosca @afgarcia86 Hello, I was wondering what the state of this PR was. This change appears to be what I am needing for my project, but it appears that the PR may have been forgotten.

@lafiosca
Copy link
Contributor

Hi @StevenGonzalez. I apologize but Andres and I never managed to coordinate our schedules to review this together, and it fell to the wayside as you noted. Unfortunately, these days I do not have availability to work on significant features like this for the repo. If this PR can suit your needs, I encourage you to use patch-package or a custom fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants