Skip to content

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

Merged
merged 4 commits into from
Feb 28, 2018

Conversation

jcurtis
Copy link
Contributor

@jcurtis jcurtis commented Feb 16, 2018

Helps a bit with #89
Fixes #86

Reposted this due to branching change

@@ -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;
Copy link
Owner

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?

Copy link
Contributor Author

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.

Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Coming right up.

Copy link
Contributor Author

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

@@ -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}
Copy link
Owner

Choose a reason for hiding this comment

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

lets keep trailing comma

@gitim gitim merged commit 2a834de into gitim:master Feb 28, 2018
@gitim
Copy link
Owner

gitim commented Feb 28, 2018

ok, thanks! will release it soon

@jcurtis jcurtis deleted the renderHeader branch February 28, 2018 15:17
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