Merge branch 'master' of https://github.com/edazdarevic/meme
This commit is contained in:
@@ -25,7 +25,6 @@ export default class LessonItem extends React.Component {
|
|||||||
|
|
||||||
render () {
|
render () {
|
||||||
const {cards} = this.props
|
const {cards} = this.props
|
||||||
const {defaultStyle} = styles;
|
|
||||||
|
|
||||||
const onSwiped = (index) => {
|
const onSwiped = (index) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
@@ -38,11 +37,9 @@ export default class LessonItem extends React.Component {
|
|||||||
<View style={styles.top}>
|
<View style={styles.top}>
|
||||||
<View style={
|
<View style={
|
||||||
{
|
{
|
||||||
|
|
||||||
marginLeft: 20,
|
marginLeft: 20,
|
||||||
marginRight: 20,
|
marginRight: 20,
|
||||||
justifyContent: 'center',
|
flex: 1
|
||||||
paddingTop: 30
|
|
||||||
}
|
}
|
||||||
}>
|
}>
|
||||||
|
|
||||||
@@ -53,8 +50,10 @@ export default class LessonItem extends React.Component {
|
|||||||
progress={progress} width={null} />
|
progress={progress} width={null} />
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
<View>
|
<View style={{justifyContent: "flex-start", backgroundColor: 'green', flex: 15}}>
|
||||||
<Swiper
|
<Swiper
|
||||||
|
cardVerticalMargin={0}
|
||||||
|
style={{justifyContent: 'flex-start'}}
|
||||||
onSwiped={onSwiped}
|
onSwiped={onSwiped}
|
||||||
backgroundColor='#7270a8'
|
backgroundColor='#7270a8'
|
||||||
cards={cards}
|
cards={cards}
|
||||||
@@ -71,26 +70,21 @@ export default class LessonItem extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
|
|
||||||
top: {
|
top: {
|
||||||
|
paddingTop: 50,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
backgroundColor: '#7270a8',
|
backgroundColor: '#7270a8',
|
||||||
flex: 1
|
justifyContent: 'flex-start',
|
||||||
},
|
|
||||||
defaultStyle: {
|
|
||||||
flexDirection: 'column',
|
|
||||||
justifyContent: 'center',
|
|
||||||
backgroundColor: '#7270a8',
|
|
||||||
flex: 1
|
flex: 1
|
||||||
},
|
},
|
||||||
card: {
|
card: {
|
||||||
flex: 1,
|
padding: 30,
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
borderColor: '#E8E8E8',
|
borderColor: '#E8E8E8',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
alignItems: 'center'
|
alignItems: 'center',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
margin: 20,
|
margin: 20,
|
||||||
|
|||||||
Reference in New Issue
Block a user