Skip to content

Commit

Permalink
Merge pull request #615 from gponsinet/fix/gponsinet/ui-some-fixes
Browse files Browse the repository at this point in the history
fix(rn): some fixes
  • Loading branch information
Godefroy Ponsinet committed Nov 15, 2018
2 parents 7cde4ff + fd892a6 commit b780785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Expand Up @@ -51,9 +51,9 @@ export default (input, configs) =>
merge([contact.default, input]),
{
updater: (store, data) =>
fragments.ContactList.Received.updater(store).delete(
data.ContactAcceptRequest.id
),
fragments.ContactList.updater
.Received(store)
.delete(data.ContactAcceptRequest.id),
...configs,
}
)
4 changes: 3 additions & 1 deletion client/react-native/common/relay/Pagination.js
Expand Up @@ -35,6 +35,8 @@ class PaginationContainer extends PureComponent {

keyExtractor = item => item.node.id

renderItem = ({ item: { node } }) => this.props.renderItem({ data: node })

render () {
const { data, connection, relay, renderItem, inverted, style } = this.props
return (
Expand All @@ -49,7 +51,7 @@ class PaginationContainer extends PureComponent {
onRefresh={this.refetch}
onEndReached={this.onEndReached}
keyExtractor={this.keyExtractor}
renderItem={({ item: { node } }) => renderItem({ data: node })}
renderItem={renderItem && this.renderItem}
style={style}
/>
)
Expand Down

0 comments on commit b780785

Please sign in to comment.