Skip to content

Commit

Permalink
Merge pull request #6 from scottdj92/fixing-android
Browse files Browse the repository at this point in the history
Fixing android
  • Loading branch information
scottdj92 authored May 8, 2017
2 parents 0775c83 + c5106bb commit 3514ae5
Show file tree
Hide file tree
Showing 46 changed files with 902 additions and 537 deletions.
Binary file added android/app/src/main/res/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{"images":[{"idiom":"iphone","size":"29x29","scale":"2x","filename":"58pt-tc-logo.png"},{"idiom":"iphone","size":"29x29","scale":"3x","filename":"87pt-tc-logo.png"},{"idiom":"iphone","size":"40x40","scale":"2x","filename":"80pt-tc-logo.png"},{"idiom":"iphone","size":"40x40","scale":"3x","filename":"120pt-tc-logo.png"},{"idiom":"iphone","size":"60x60","scale":"2x","filename":"120pt-tc-logo.png"},{"idiom":"iphone","size":"60x60","scale":"3x","filename":"180pt-tc-logo.png"}],"info":{"version":1,"author":"xcode"}}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"test": "jest"
},
"rnpm": {
"assets": ["./src/fonts/Exo_2"]
"assets": [
"./src/fonts/Exo_2"
]
},
"dependencies": {
"@exponent/ex-navigation": "^2.1.5",
"@exponent/ex-navigation": "2.1.5",
"babel": "^6.5.2",
"babel-core": "^6.18.2",
"babel-preset-react-native": "^1.9.0",
Expand All @@ -19,8 +21,10 @@
"fetch": "^1.1.0",
"react": "15.4.1",
"react-dom": "^15.4.1",
"react-native": "^0.40.0",
"react-native-accordion": "^1.0.1",
"react-native": "0.40.0",
"react-native-accordion": "git+https://github.com/ndejesus1227/react-native-accordion.git",
"react-native-checkbox": "^1.1.0",
"react-native-drawer": "^2.3.0",
"react-native-dropdown": "git+https://github.com/g6ling/react-native-dropdown.git",
"react-native-side-menu": "^0.20.1",
"react-redux": "^4.4.6",
Expand Down
2 changes: 0 additions & 2 deletions src/components/CharacterProfile/ProfileBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import {
Text,
Image
} from 'react-native';
import Toolbar from '../Toolbar/Toolbar';

import Styles from './styles';

class ProfileBanner extends Component {
render() {
return (
<View style={Styles.viewContainer}>
<Toolbar name={this.props.name} />
</View>
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/CharacterProfile/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import {

export default Styles = StyleSheet.create({
viewContainer: {
height: 70,
backgroundColor: 'rgb(65, 18, 18)',

},
commandListContainer: {
backgroundColor: 'rgb(65, 18, 18)',
Expand Down
18 changes: 18 additions & 0 deletions src/components/DataList/DataList.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,23 @@ const styles = StyleSheet.create({
}
});

DataList.propTypes = {
listData: PropTypes.array,
cellComponent: PropTypes.func, // component
cellsPerRow: PropTypes.number,
onCellPress: PropTypes.func,
/*
Stylesheet Properties
(comes as number or array when passed, so it can't be specified)
Props: Description:
----- ------------
mainStyle List base style
containerStyle List Row Container style
rowStyle List Row styling
cellStyle List Cell style
*/
};


export default DataList;
73 changes: 73 additions & 0 deletions src/components/FilterMenu/FilterAccordion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import React, { Component, PropTypes } from 'react';
import {
Text,
View,
StyleSheet,
Button
} from 'react-native';

// Components
import Accordion from 'react-native-accordion';
import FilterButtonGroup from './FilterButtonGroup';

class FilterAccordion extends Component {

renderHeader(label) {
return (
<View>
<Text style={Styles.filterTitle}>{label}</Text>
</View>
);
}
renderFilterOptions(filterKey, options, callback) {
return (
<View>
<FilterButtonGroup
filterKey={filterKey}
options={options}
onOptionSelectHandler={(key, value, addFlag) => callback(key, value, addFlag)}
/>
</View>
);
}

render() {
const { filterKey, options, onFilterPressHandler, headerLabel } = this.props;
const header = this.renderHeader(headerLabel);
const content = this.renderFilterOptions(filterKey, options, onFilterPressHandler);
return (
<Accordion
header={header}
content={content}
easing="easeOutCubic"
underlayColor="white"
/>
);
}
}

const Styles = StyleSheet.create({
accordionContainer: {
height: 40,
width: 240,
backgroundColor: 'rgb(132, 18, 18)'
},
filterTitle: {
color: '#f0aa23',
height: 50,
borderStyle: 'solid',
borderWidth: 1,
borderColor: 'rgb(132, 18, 18)',
paddingLeft: 10,
paddingTop: 10
},
filterButton: {
}
});

FilterAccordion.propTypes = {
filter: PropTypes.object,
onFilterPressHandler: PropTypes.func,
};

export default FilterAccordion;
68 changes: 68 additions & 0 deletions src/components/FilterMenu/FilterButtonGroup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import React, { Component, PropTypes } from 'react';
import {
View,
StyleSheet,
Button
} from 'react-native';
import CheckBox from 'react-native-checkbox';

// Filter Option Button
class FilterButtonGroup extends Component {
constructor(props) {
super(props);
this.state = { active: [] };
}

resetButtonState() {
this.setState({ active: [] });
}

updateButtonState(index, checked) {
if (checked) {
this.state.active.push(index);
} else {
this.state.active.splice( this.state.active.indexOf(index), 1);
}
}

toggleCheck(filterKey, filterValue, checked, index) {
this.props.onOptionSelectHandler(filterKey, filterValue, checked);
this.updateButtonState(index, checked);
}

renderButtons(options, filterKey) {
return (
options.map((option, i) =>
<View style={(this.state.active === i) ? Styles.activeOption : ''} key={i}>
<CheckBox
color="white"
label={option.label}
onChange={(checked) => this.toggleCheck(filterKey, option.value, !checked, i)}
/>
</View>
)
);
}

render() {
const { options, filterKey } = this.props;
return (
<View>
{this.renderButtons(options, filterKey)}
</View>
);
}
}

const Styles = StyleSheet.create({
activeOption: {
backgroundColor: "black"
}
});

FilterButtonGroup.propTypes = {
options: PropTypes.array,
onOptionSelectHandler: PropTypes.func,
};

export default FilterButtonGroup;
Loading

0 comments on commit 3514ae5

Please sign in to comment.