-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: alt person flow framing skeleton #2228
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once we have an actual external URL to navigate to for help content, we can add that here. For now the button does nothing. |
||
/> | ||
), | ||
}} | ||
/> | ||
<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} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
/> | ||
), | ||
}} | ||
/> | ||
</Stack.Navigator> | ||
) | ||
} | ||
|
||
export default VerifiedPersonStack |
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 | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just added one placeholder screen to show the process for adding new screens and steps. |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snapshot just updated to include new option