Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rn): added sent invite to choice screen and improved choice scre…
…en style
- Loading branch information
Showing
4 changed files
with
53 additions
and
39 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
8 changes: 8 additions & 0 deletions
8
client/react-native/common/components/Screens/Contacts/Add/Invite.js
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React, { PureComponent } from 'react' | ||
import { Text } from '../../../Library' | ||
|
||
export default class ByBump extends PureComponent { | ||
render () { | ||
return <Text>Invite!</Text> | ||
} | ||
} |
28 changes: 16 additions & 12 deletions
28
client/react-native/common/components/Screens/Contacts/Add/index.js
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,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 | ||
navigation={navigation} | ||
title='Add a contact' | ||
titleIcon='user-plus' | ||
backBtn | ||
/>, | ||
header: ( | ||
<Header | ||
navigation={navigation} | ||
title='Add a contact' | ||
titleIcon='user-plus' | ||
backBtn | ||
/> | ||
), | ||
}), | ||
} | ||
) |