Skip to content

Commit

Permalink
fix(rn): few minor fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Sep 17, 2018
1 parent 0e72f38 commit 7b10f2a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
Expand Up @@ -63,6 +63,7 @@ export default class ListScreen extends PureComponent {
navigation={navigation}
title='Chats'
titleIcon='message-circle'
rightBtnIcon='edit'
searchBar
searchHandler={text => console.log(text)} // Placeholder
/>
Expand Down
@@ -1,8 +1,14 @@
import React, { PureComponent } from 'react'
import { Text } from '../../../Library'
import { Text, Flex } from '../../../Library'

export default class ByBump extends PureComponent {
render () {
return <Text>Bump!</Text>
return (
<Flex.Cols size={1} align='center' space='between'>
<Flex.Rows size={1} align='center' space='between'>
<Text big>Bump!</Text>
</Flex.Rows>
</Flex.Cols>
)
}
}
@@ -1,8 +1,14 @@
import React, { PureComponent } from 'react'
import { Text } from '../../../Library'
import { Text, Flex } from '../../../Library'

export default class ByBump extends PureComponent {
export default class Invite extends PureComponent {
render () {
return <Text>Invite!</Text>
return (
<Flex.Cols size={1} align='center' space='between'>
<Flex.Rows size={1} align='center' space='between'>
<Text big>Invite!</Text>
</Flex.Rows>
</Flex.Cols>
)
}
}
@@ -1,6 +1,6 @@
import React, { PureComponent, Fragment } from 'react'
import { PureComponent } from 'react'
export default class QRReader extends PureComponent {
render () {
return <Fragment />
return null
}
}
Expand Up @@ -13,7 +13,6 @@ export default class List extends PureComponent {
navigation={navigation}
title='Contacts'
titleIcon='feather-users'
backBtn
rightBtnIcon='user-plus'
onPressRightBtn={() => navigation.push('Add')}
searchBar
Expand Down

0 comments on commit 7b10f2a

Please sign in to comment.