-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
90 additions
and
114 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
const styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
} = React; | ||
} = React; | ||
|
||
var Action = React.createClass({ | ||
const Action = React.createClass({ | ||
|
||
render(){ | ||
return <View style={styles.action}>{this.props.content}</View> | ||
render() { | ||
return <View style={styles.action}>{this.props.content}</View>; | ||
}, | ||
|
||
}) | ||
}); | ||
|
||
module.exports = Action; |
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,20 +1,19 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
const styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
} = React; | ||
} = React; | ||
|
||
var Container = React.createClass({ | ||
const Container = React.createClass({ | ||
|
||
render(){ | ||
return ( | ||
<View style={styles.card}> | ||
{this.props.children} | ||
</View> | ||
) | ||
render() { | ||
return ( | ||
<View style={styles.card}> | ||
{this.props.children} | ||
</View> | ||
) | ||
}, | ||
}) | ||
}); | ||
|
||
module.exports = Container; |
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,23 +1,22 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
const styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
Text, | ||
} = React; | ||
} = React; | ||
|
||
var Content = React.createClass({ | ||
const Content = React.createClass({ | ||
|
||
render(){ | ||
if(this.props.children.type.displayName === "Text"){ | ||
return <Text style={styles.content}>{this.props.children}</Text> | ||
}else{ | ||
render() { | ||
if (this.props.children.type.displayName === 'Text') { | ||
return <Text style={styles.content}>{this.props.children}</Text> | ||
} else { | ||
return <View>{this.props.children}</View> | ||
} | ||
|
||
}, | ||
|
||
}) | ||
}); | ||
|
||
module.exports = Content; |
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,18 +1,15 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
Image, | ||
} = React; | ||
} = React; | ||
|
||
var Imag = React.createClass({ | ||
const Image = React.createClass({ | ||
|
||
render(){ | ||
render() { | ||
return <View>{this.props.children}</View>; | ||
}, | ||
|
||
}) | ||
}); | ||
|
||
module.exports = Imag; | ||
module.exports = Image; |
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,18 +1,11 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
Text, | ||
} = React; | ||
const Menu = React.createClass({ | ||
|
||
var Menu = React.createClass({ | ||
|
||
render(){ | ||
return this.props.children | ||
render() { | ||
return this.props.children; | ||
}, | ||
|
||
}) | ||
}); | ||
|
||
module.exports = Menu; |
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,57 +1,59 @@ | ||
const React = require('react-native'); | ||
|
||
const { | ||
StyleSheet | ||
} = React; | ||
StyleSheet, | ||
} = React; | ||
|
||
// TODO: Plug colors etc with MKTheme | ||
var style = StyleSheet.create({ | ||
card: { | ||
flex : 1, | ||
backgroundColor: "#ffffff", | ||
borderRadius: 2, | ||
// TODO: Plug colors etc with MKTheme | ||
const style = StyleSheet.create({ | ||
card: { | ||
flex: 1, | ||
backgroundColor: '#ffffff', | ||
borderRadius: 8, | ||
borderColor: '#ffffff', | ||
borderWidth: 10, | ||
|
||
shadowColor: "rgba(0,0,0,.12)", | ||
shadowColor: 'rgba(0,0,0,.12)', | ||
shadowOpacity: 0.8, | ||
shadowRadius: 2, | ||
shadowOffset: { | ||
height: 1, | ||
width: 2 | ||
} | ||
width: 2, | ||
}, | ||
}, | ||
image : { | ||
flex : 1, | ||
height : 170, | ||
resizeMode: 'cover' | ||
}, | ||
title : { | ||
position : "absolute", | ||
top : 120, | ||
left : 26, | ||
backgroundColor: 'transparent', | ||
padding : 16, | ||
fontSize : 24, | ||
color : "#000000", | ||
fontWeight: 'bold', | ||
}, | ||
content : { | ||
padding : 15, | ||
color: "rgba(0,0,0,.54)", | ||
}, | ||
action : { | ||
borderStyle:"solid", | ||
borderTopColor : "rgba(0,0,0,.1)", | ||
borderTopWidth : 1, | ||
padding : 15, | ||
image: { | ||
flex: 1, | ||
height: 170, | ||
resizeMode: 'cover', | ||
}, | ||
title: { | ||
position: 'absolute', | ||
top: 120, | ||
left: 26, | ||
backgroundColor: 'transparent', | ||
padding: 16, | ||
fontSize: 24, | ||
color: '#000000', | ||
fontWeight: 'bold', | ||
}, | ||
content: { | ||
padding: 15, | ||
color: 'rgba(0,0,0,.54)', | ||
}, | ||
action: { | ||
borderStyle: 'solid', | ||
borderTopColor: 'rgba(0,0,0,.1)', | ||
borderTopWidth: 1, | ||
padding: 15, | ||
|
||
}, | ||
menu : { | ||
position : "absolute", | ||
top : 16, | ||
right : 16, | ||
backgroundColor : "transparent", | ||
}, | ||
menu: { | ||
position: 'absolute', | ||
top: 16, | ||
right: 16, | ||
backgroundColor: 'transparent', | ||
|
||
} | ||
}, | ||
}); | ||
|
||
module.exports = style; |
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,18 +1,16 @@ | ||
const React = require('react-native'); | ||
let styles = require('./styles'); | ||
const styles = require('./styles'); | ||
|
||
const { | ||
PropTypes, | ||
View, | ||
Text, | ||
} = React; | ||
} = React; | ||
|
||
var Title = React.createClass({ | ||
const Title = React.createClass({ | ||
|
||
render(){ | ||
return <Text style={styles.title}>{this.props.children}</Text> | ||
render() { | ||
return <Text style={styles.title}>{this.props.children}</Text> | ||
}, | ||
|
||
}) | ||
}); | ||
|
||
module.exports = Title; |