-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: alt person flow framing skeleton (#2228)
Signed-off-by: Bryce McMath <[email protected]>
- Loading branch information
1 parent
faed084
commit 7233111
Showing
15 changed files
with
495 additions
and
97 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { | ||
ButtonLocation, | ||
IconButton, | ||
testIdWithKey, | ||
useDefaultStackOptions, | ||
useTheme, | ||
} from '@hyperledger/aries-bifold-core' | ||
import { createStackNavigator } from '@react-navigation/stack' | ||
import { useTranslation } from 'react-i18next' | ||
import ChooseID from '../screens/ChooseID' | ||
import VerificationSteps from '../screens/VerificationSteps' | ||
|
||
import { BCScreens, BCVerifiedPersonStackParams } from './navigators' | ||
|
||
const VerifiedPersonStack: React.FC = () => { | ||
const Stack = createStackNavigator<BCVerifiedPersonStackParams>() | ||
const theme = useTheme() | ||
const defaultStackOptions = useDefaultStackOptions(theme) | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Stack.Navigator screenOptions={{ ...defaultStackOptions }}> | ||
<Stack.Screen | ||
name={BCScreens.VerificationSteps} | ||
component={VerificationSteps} | ||
options={{ | ||
title: t('Screens.VerificationSteps'), | ||
headerRight: () => ( | ||
<IconButton | ||
buttonLocation={ButtonLocation.Right} | ||
icon={'help-circle'} | ||
accessibilityLabel={t('PersonCredential.HelpLink')} | ||
testID={testIdWithKey('Help')} | ||
onPress={() => null} | ||
/> | ||
), | ||
}} | ||
/> | ||
<Stack.Screen | ||
name={BCScreens.ChooseID} | ||
component={ChooseID} | ||
options={{ | ||
title: t('Screens.ChooseID'), | ||
headerRight: () => ( | ||
<IconButton | ||
buttonLocation={ButtonLocation.Right} | ||
icon={'help-circle'} | ||
accessibilityLabel={t('PersonCredential.HelpLink')} | ||
testID={testIdWithKey('Help')} | ||
onPress={() => null} | ||
/> | ||
), | ||
}} | ||
/> | ||
</Stack.Navigator> | ||
) | ||
} | ||
|
||
export default VerifiedPersonStack |
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,9 @@ | ||
export enum BCScreens { | ||
VerificationSteps = 'VerificationSteps', | ||
ChooseID = 'ChooseID', | ||
} | ||
|
||
export type BCVerifiedPersonStackParams = { | ||
[BCScreens.VerificationSteps]: undefined | ||
[BCScreens.ChooseID]: undefined | ||
} |
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,21 @@ | ||
import { Text, View, StyleSheet } from 'react-native' | ||
|
||
const ChooseID: React.FC = () => { | ||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
padding: 24, | ||
}, | ||
text: { | ||
fontSize: 24, | ||
}, | ||
}) | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<Text style={styles.text}>Placeholder</Text> | ||
</View> | ||
) | ||
} | ||
|
||
export default ChooseID |
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
Oops, something went wrong.