@@ -0,0 +1,61 @@
import React from 'react';

import {
View,
StyleSheet,
Image
} from 'react-native';

import {
ThinGrayLine,
ThickWhiteLine,
} from './Lines';

export default ({ onPress }) => (
<View style={styles.container}>

<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
backgroundColor: '#5A4A9C',
height: 40,
padding: 10,
}}
>
<ThickWhiteLine width={40} onPress={onPress} />
<ThickWhiteLine width={60} />
<ThickWhiteLine width={40} />
</View>

<View style={styles.card}>
<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
padding: 10,
paddingBottom: 0,
}}
>
<ThinGrayLine width={40} />
<ThinGrayLine width={80} />
<ThinGrayLine width={50} onPress={onPress} />
</View>
</View>

</View>
);

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#33373B',
padding: 10,
flexDirection: 'column',
},
card: {
flex: 1,
backgroundColor: '#FFFFFF',
justifyContent: 'flex-end',
},
});
@@ -0,0 +1,152 @@
import React, {
Component,
} from 'react';

import {
View,
Text,
TouchableHighlight,
StyleSheet,
Image
} from 'react-native';

import FoldView from 'react-native-foldview';

import ProfileDetailCard from './ProfileDetailCard';
import AdditionalInfoCard from './AdditionalInfoCard';

import {
ThinGrayLine,
ThickDarkGrayLine,
} from './Lines';

export default class Row extends Component {

componentWillMount() {
this.renderBackface = this.renderBackface.bind(this);
this.renderInnerBackFace = this.renderInnerBackFace.bind(this);
}

renderBlankFace() {
return (
<View
style={{
backgroundColor: '#D6EFFF',
flex: 1,
}}
>
</View>
);
}

renderBackface() {
const onPress = this.props.onPress;
return (
<View style={{ flex: 1 }}>

<FoldView
renderFrontface={this.renderBlankFace}
renderBackface={this.renderInnerBackFace}
>
</FoldView>

</View>
);
}

renderInnerBackFace() {
const onPress = this.props.onPress;
return (
<View
style={{
backgroundColor: '#fff',
flex: 1,
borderTopWidth: StyleSheet.hairlineWidth,
borderTopColor: '#BDC2C9',
borderBottomLeftRadius: 2,
borderBottomRightRadius: 2,
}}
>
<View
style={{
backgroundColor: '#FFBD18',
flex: 1,
margin: 14,
borderRadius: 2,
}}
>
<TouchableHighlight
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}
onPress={onPress}
>
<Text>
PRESS ME
</Text>
</TouchableHighlight>

</View>
</View>
);
}

render() {
const onPress = this.props.onPress;
const profile = this.props.profile

return (
<View
style={{
flex: 1,
backgroundColor: '#2b2b2b',
flexDirection: 'column',
}}
>
<View style={{ flex: 1 }}>
<View
style={{
marginTop: 50,
flexDirection: 'row',
}}
>

<TouchableHighlight
onPress={onPress}
>
<View
style={{
width: 40,
height: 40,
marginRight: 10,
backgroundColor: '#BDC2C9',
}} >
<Text>Fold</Text>
</View>
</TouchableHighlight>
</View>
<Text
style={{
marginBottom: 10,
color: '#fff',
fontSize: 24,
textAlign: 'center',
}} >
{profile.name}
</Text>
<Image
style={{
alignSelf: 'center',
height: 100,
width: 100,
borderRadius: 50,
}}
source={{uri: profile.picture}}
/>
</View>
</View>
);
}
}
@@ -0,0 +1,36 @@
import React from 'react';

import {
View,
StyleSheet,
} from 'react-native';

import {
ThinGrayLine,
ThickGrayLine,
} from './Lines';

export default ({ onPress }) => (
<View style={styles.container}>
<View style={{ flex: 1 }}>
<ThickGrayLine width={60} />
<ThinGrayLine width={120} />
</View>

<View style={{ flex: 1 }}>
<ThickGrayLine width={60} onPress={onPress} />
<ThinGrayLine width={120} />
</View>
</View>
);

const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 10,
paddingHorizontal: 16,
flexDirection: 'row',
borderTopWidth: StyleSheet.hairlineWidth,
borderTopColor: '#BDC2C9',
},
});
@@ -10,6 +10,7 @@
"dependencies": {
"react": "~15.4.0-rc.4",
"react-native": "0.38.1",
"react-native-foldview": "^1.1.0",
"react-native-lock": "^0.4.0"
},
"devDependencies": {
@@ -2357,7 +2357,7 @@ inquirer@^0.12.0:
strip-ansi "^3.0.0"
through "^2.3.6"

invariant@^2.2.0:
invariant@^2.2.0, invariant@^2.2.1:
version "2.2.2"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"
dependencies:
@@ -3911,6 +3911,23 @@ react-native:
yeoman-environment "1.5.3"
yeoman-generator "0.21.2"

react-native-auth0@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/react-native-auth0/-/react-native-auth0-0.0.1.tgz#6a712cc0f00740337396205bc3da453f52d25026"

react-native-foldview:
version "1.1.0"
resolved "https://registry.yarnpkg.com/react-native-foldview/-/react-native-foldview-1.1.0.tgz#829b532ed0c26b1b5103136da30abf35b461bc11"
dependencies:
invariant "^2.2.1"
warning "^3.0.0"

react-native-lock@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/react-native-lock/-/react-native-lock-0.4.0.tgz#6c6df838cab6ffaa47fd561c42e254e5160868c9"
dependencies:
react-native-auth0 "^0.0.1"

react-proxy@^1.1.7:
version "1.1.8"
resolved "https://registry.yarnpkg.com/react-proxy/-/react-proxy-1.1.8.tgz#9dbfd9d927528c3aa9f444e4558c37830ab8c26a"
@@ -4889,6 +4906,12 @@ ware@^1.2.0:
dependencies:
wrap-fn "^0.1.0"

warning@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/warning/-/warning-3.0.0.tgz#32e5377cb572de4ab04753bdf8821c01ed605b7c"
dependencies:
loose-envify "^1.0.0"

watch@~0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc"