diff --git a/client/react-native/common/components/Screens/Contacts/Add/ByPublicKey.js b/client/react-native/common/components/Screens/Contacts/Add/ByPublicKey.js index 76c00c656f..ffea504c44 100644 --- a/client/react-native/common/components/Screens/Contacts/Add/ByPublicKey.js +++ b/client/react-native/common/components/Screens/Contacts/Add/ByPublicKey.js @@ -11,7 +11,6 @@ import { borderBottom, } from '../../../../styles' import { mutations } from '../../../../graphql' - import createTabNavigator from 'react-navigation-deprecated-tab-navigator/src/createTabNavigator' class ByPublicKey extends PureComponent { diff --git a/client/react-native/common/components/Screens/Contacts/Add/Choice.js b/client/react-native/common/components/Screens/Contacts/Add/Choice.js index db750f4950..47a96960bf 100644 --- a/client/react-native/common/components/Screens/Contacts/Add/Choice.js +++ b/client/react-native/common/components/Screens/Contacts/Add/Choice.js @@ -12,29 +12,35 @@ export default class Choice extends PureComponent { size={1} style={[{ backgroundColor: colors.white }, borderTop]} > - + + @@ -43,29 +49,26 @@ export default class Choice extends PureComponent { } } -const Item = ({ color, name, link, navigation }) => ( +const Item = ({ icon, name, link, navigation }) => ( navigation.push(link)} style={[ { borderRadius: 8, - height: 100, + height: 60, width: 300, - backgroundColor: color, - justifyContent: 'center', - alignItems: 'center', + backgroundColor: colors.blue, + paddingLeft: 24, + paddingRight: 8, + margin: 10, }, ]} > - - {name} - + + + {name} + + + ) diff --git a/client/react-native/common/components/Screens/Contacts/Add/Invite.js b/client/react-native/common/components/Screens/Contacts/Add/Invite.js new file mode 100644 index 0000000000..33cecd7ff4 --- /dev/null +++ b/client/react-native/common/components/Screens/Contacts/Add/Invite.js @@ -0,0 +1,8 @@ +import React, { PureComponent } from 'react' +import { Text } from '../../../Library' + +export default class ByBump extends PureComponent { + render () { + return Invite! + } +} diff --git a/client/react-native/common/components/Screens/Contacts/Add/index.js b/client/react-native/common/components/Screens/Contacts/Add/index.js index 37934af6a4..49ca9f6500 100644 --- a/client/react-native/common/components/Screens/Contacts/Add/index.js +++ b/client/react-native/common/components/Screens/Contacts/Add/index.js @@ -1,31 +1,35 @@ import { createSubStackNavigator } from '../../../../helpers/react-navigation' import Choice from './Choice' -import ByBump from './ByBump' -import ByPublicKey from './ByPublicKey' -import ByQRCode from './ByQRCode' import Request from './Request' +import ByQRCode from './ByQRCode' +import ByPublicKey from './ByPublicKey' +import ByBump from './ByBump' +import Invite from './Invite' import RequestValidation from './RequestValidation' import React from 'react' import { Header } from '../../../Library' export default createSubStackNavigator( { - ByBump, - ByPublicKey, - ByQRCode, Request, + ByQRCode, + ByPublicKey, + ByBump, + Invite, RequestValidation, Choice, }, { initialRouteName: 'Choice', navigationOptions: ({ navigation }) => ({ - header:
, + header: ( +
+ ), }), } )