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

add configurable component container prop #40

Merged
merged 1 commit into from
Jun 15, 2016

Conversation

hartzis
Copy link
Collaborator

@hartzis hartzis commented Jun 13, 2016

solution for #24. some ideas used from #36.

This is a non breaking, backwards compatible implementation. Will probably go out as v3.5.0.

I'd still like to update the api someday to do something close to #36, where it just attaches all the swiping props to what it is wrapping.

@@ -30,7 +31,8 @@ const Swipeable = React.createClass({
return {
flickThreshold: 0.6,
delta: 10,
preventDefaultTouchmoveEvent: true
preventDefaultTouchmoveEvent: true,
component: 'div'
Copy link
Contributor

Choose a reason for hiding this comment

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

should we name this nodeName instead or will ya'll accept a React component in here? If so, we should update the propTypes.

Copy link
Collaborator Author

@hartzis hartzis Jun 14, 2016

Choose a reason for hiding this comment

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

I like nodeName, I used component due to conventions in other libraries, but I think some of those accept a react component. This won't accept a react component, there have not been expressed needs for this to accept an actual react component, yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

we can might as well make it accept a React component, there's no harm in allowing it.

@hartzis hartzis force-pushed the feature/component-container branch from 5e25c00 to 4e8ccf1 Compare June 14, 2016 21:15
@hartzis hartzis force-pushed the feature/component-container branch from 4e8ccf1 to 0614970 Compare June 14, 2016 21:19
@hartzis
Copy link
Collaborator Author

hartzis commented Jun 14, 2016

@goatslacker thanks for the feedback, I updated the prop to nodeName.

@goatslacker
Copy link
Contributor

LGTM

@hartzis hartzis merged commit ed8c779 into master Jun 15, 2016
@hartzis hartzis deleted the feature/component-container branch August 18, 2016 15:48
@github-actions github-actions bot mentioned this pull request May 18, 2023
@paulmarsicloud paulmarsicloud mentioned this pull request Jun 1, 2023
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.

2 participants