-
Notifications
You must be signed in to change notification settings - Fork 279
Add renderHeader which acts the same as renderFooter but at the top #91
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
Conversation
src/SortableList.js
Outdated
@@ -222,10 +229,10 @@ export default class SortableList extends Component { | |||
if (rowsLayouts) { | |||
if (horizontal) { | |||
location.x = nextX; | |||
nextX += rowsLayouts[key].width; | |||
nextX += rowsLayouts[key] ? rowsLayouts[key].width : 0; |
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.
do we really need this check?
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.
Yes - I ran into crashes using react-navigation when this component was not currently on the screen but being updated. I probably could have made a separate PR for that. Let me know if you'd prefer that.
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.
yea, separate pr will be better
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.
Coming right up.
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.
Moved fix over to #93
src/SortableList.js
Outdated
@@ -178,7 +184,7 @@ export default class SortableList extends Component { | |||
const containerStyle = StyleSheet.flatten([style, {opacity: Number(animated)}]) | |||
const innerContainerStyle = [ | |||
styles.rowsContainer, | |||
horizontal ? {width: contentWidth} : {height: contentHeight}, | |||
horizontal ? {width: contentWidth} : {height: contentHeight} |
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.
lets keep trailing comma
ok, thanks! will release it soon |
Helps a bit with #89
Fixes #86
Reposted this due to branching change