Skip to content

Commit

Permalink
comment in list article and navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
teseo committed Jul 6, 2016
1 parent 28a2e5e commit da6447c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions components/ListArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import {
import colors from '../utils/colors';
const placeholder = require('../assets/default.png');

/**
* List Article component class
*/
export default ListArticle = ({ text, image, navState, navigator }) => {

return (
Expand Down
9 changes: 6 additions & 3 deletions components/NavigationBar.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/**
* Navigator Component
* https://github.com/facebook/react-native
* @flow
*/

//React components
import React, { Component } from 'react';
import {
StyleSheet,
Expand All @@ -12,7 +11,11 @@ import {
Text,
TouchableOpacity
} from 'react-native';

//utils
import colors from '../utils/colors';
//Navigation Bar route mapper. The one in charge of navigate from articles
//to search result page
const NavigationBarRouteMapper = {

LeftButton: (route, navigator) => {
Expand Down Expand Up @@ -65,7 +68,7 @@ const styles = StyleSheet.create({
marginVertical: 9,
}
});

// Navigation compoment
export default (
<Navigator.NavigationBar
style={ styles.navBar }
Expand Down

0 comments on commit da6447c

Please sign in to comment.