Skip to content

Commit

Permalink
Added test for issue 39
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed Mar 24, 2016
1 parent bbd158f commit 5e2ba9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions example/mobile/app/Routes/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export default class Settings extends Component {
return (
<View style={styles.container}>
<View style={{marginTop: 25}}>
<Button containerStyle={{padding:10, height:45, overflow:'hidden', borderRadius:4, backgroundColor: 'green'}}
style={{fontSize: 20, color: 'white'}} onPress={()=>{Meteor.call('sayHello')} }
>
Say hello
</Button>
<Button containerStyle={{padding:10, height:45, overflow:'hidden', borderRadius:4, backgroundColor: 'green'}}
style={{fontSize: 20, color: 'white'}} onPress={()=>{this.setState({show: !show})}}
>
Expand Down
1 change: 1 addition & 0 deletions example/web/app/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Meteor.methods({
sayHello() {
console.log(this.userId);
return 'Hello from Meteor method!';
},
});

0 comments on commit 5e2ba9c

Please sign in to comment.