Skip to content

Commit

Permalink
Adding the add button
Browse files Browse the repository at this point in the history
  • Loading branch information
drorbiran committed Jun 13, 2018
1 parent 0a284a1 commit 9d39a6e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"wix/esnext"
],
"rules": {
"no-unused-labels": 0,
"no-labels": 0,
"no-use-before-define": 0,
"react/jsx-closing-bracket-location": 0,
"default-case": 0,
Expand Down
17 changes: 17 additions & 0 deletions src/posts/screens/PostsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ class PostsList extends PureComponent {
this.pushViewPostScreen = this.pushViewPostScreen.bind(this);
}

static get options() {
return {
topBar: {
rightButtons: [
{
id: 'addPost',
title: 'Add'
}
]
}
};
}

onNavigationButtonPressed(buttonId) {
console.error(buttonId);
}

pushViewPostScreen() {
Navigation.push(this.props.componentId, {
component: {
Expand Down

0 comments on commit 9d39a6e

Please sign in to comment.