diff --git a/components/ListArticle.js b/components/ListArticle.js index 880f7ca..189f0b7 100644 --- a/components/ListArticle.js +++ b/components/ListArticle.js @@ -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 ( diff --git a/components/NavigationBar.js b/components/NavigationBar.js index ea7eb83..f25bd69 100644 --- a/components/NavigationBar.js +++ b/components/NavigationBar.js @@ -1,9 +1,8 @@ /** * Navigator Component - * https://github.com/facebook/react-native - * @flow */ +//React components import React, { Component } from 'react'; import { StyleSheet, @@ -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) => { @@ -65,7 +68,7 @@ const styles = StyleSheet.create({ marginVertical: 9, } }); - +// Navigation compoment export default (