Skip to content

Commit

Permalink
Merge pull request #13 from americool/more-push-stuff
Browse files Browse the repository at this point in the history
cleaned up a bit
  • Loading branch information
americool authored Jan 3, 2017
2 parents e0283b9 + 17bf305 commit 975a4be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vndr/src/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ class Form extends Component {
const { name, description, distance } = this.state;

base.push('vendors', {
data: { vndrName: name, description: description, distance: distance }
})
data: { vndrName: name, description: description, distance: distance }
}).then(
Actions.list()
);
}

render() {
Expand Down
4 changes: 4 additions & 0 deletions vndr/src/VndrList.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import React from 'react';
import { Actions } from 'react-native-router-flux';
import { ScrollView } from 'react-native';
import Vendors from './Vendors';
import { Button, Card, CardSection } from './common';


const VndrList = () => {
return (

<Card>
<ScrollView>
<CardSection>
<Vendors />
</CardSection>
</ScrollView>
<CardSection>
<Button onPress={() => Actions.map()}> Map View </Button>
</CardSection>
Expand Down
1 change: 1 addition & 0 deletions vndr/src/common/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const styles = {
marginLeft: 5,
marginRight: 5,
marginTop: 10,
marginBottom: 10,
}
};
export { Card };

0 comments on commit 975a4be

Please sign in to comment.