Skip to content

Instantly share code, notes, and snippets.

@billyvg
Created May 20, 2015 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billyvg/705af8449c510be3948e to your computer and use it in GitHub Desktop.
Save billyvg/705af8449c510be3948e to your computer and use it in GitHub Desktop.
class MainView extends React.Component {
_addEntry(e) {
this.props.navigator.push({
title: 'New',
component: AddEntryView,
rightButtonTitle: 'Save',
onRightButtonPress: (e) => {
// save
},
});
}
}
@christopherdro
Copy link

class MainView extends React.Component {
    _addEntry(e) {
        this.props.navigator.push({
            title: 'New',
            component: AddEntryView,
            rightButtonTitle: 'Save',
            onRightButtonPress: () => { this._saveEntry(e) },
        });
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment