From c31e186f94eb4ecb892d70bd38523dd1832b23c0 Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Thu, 17 Mar 2016 22:19:20 +0000 Subject: [PATCH] Add better label when all builds displayed --- app/components/builds/BuildItemEnd.js | 34 +++++++++++++++++++++++++++ app/components/builds/BuildList.js | 3 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 app/components/builds/BuildItemEnd.js diff --git a/app/components/builds/BuildItemEnd.js b/app/components/builds/BuildItemEnd.js new file mode 100644 index 0000000..da590e7 --- /dev/null +++ b/app/components/builds/BuildItemEnd.js @@ -0,0 +1,34 @@ +import React from 'react-native'; +import GlobalStyles from '../../settings/styles'; + +const { + View, + Text, + StyleSheet +} = React; + +const styles = StyleSheet.create({ + container: { + flex: 1, + height: 45, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: GlobalStyles.get('CIRCLE_ITEM_BG'), + borderBottomColor: GlobalStyles.get('CIRCLE_ITEM_BORDER'), + borderBottomWidth: 2, + flexDirection: 'row', + }, + text: { + fontSize: 18, + } +}); + +export default class BuildItem extends React.Component { + render() { + return ( + + That's all! + + ); + } +}; diff --git a/app/components/builds/BuildList.js b/app/components/builds/BuildList.js index 3086f30..a8f9b3e 100644 --- a/app/components/builds/BuildList.js +++ b/app/components/builds/BuildList.js @@ -3,6 +3,7 @@ import GiftedListView from 'react-native-gifted-listview'; import GlobalStyles from '../../settings/styles'; import loaderHandler from 'react-native-busy-indicator/LoaderHandler'; import BuildItem from './BuildItem'; +import BuildItemEnd from './BuildItemEnd'; import { getProjectRecentBuilds } from '../../api/CircleCI'; import _ from 'underscore'; @@ -59,7 +60,7 @@ export default class BuildList extends React.Component { rowView={this.renderRow} refreshable={true} onFetch={this._fetch} - paginationAllLoadedView={() => null}/> + paginationAllLoadedView={() => }/> ); }