-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from scottdj92/fixing-android
Fixing android
- Loading branch information
Showing
46 changed files
with
902 additions
and
537 deletions.
There are no files selected for viewing
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.
Binary file added
BIN
+14.3 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/120pt-tc-logo.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 added
BIN
+25.6 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/180pt-tc-logo.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 added
BIN
+2.18 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/40pt-tc-logo.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 added
BIN
+3.66 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/58pt-tc-logo.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 added
BIN
+3.88 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/60pt-tc-logo.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 added
BIN
+7.7 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/80pt-tc-logo.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 added
BIN
+8.77 KB
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/87pt-tc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 1 addition & 38 deletions
39
ios/t7ChickenNative/Images.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.