Changeset View
Changeset View
Standalone View
Standalone View
native/account/registration/registration-navigator.react.js
// @flow | // @flow | ||||
import { | import { | ||||
createStackNavigator, | createStackNavigator, | ||||
type StackNavigationProp, | type StackNavigationProp, | ||||
type StackNavigationHelpers, | type StackNavigationHelpers, | ||||
} from '@react-navigation/stack'; | } from '@react-navigation/stack'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import ConnectEthereum from './connect-ethereum.react.js'; | import ConnectEthereum from './connect-ethereum.react.js'; | ||||
import CoolOrNerdModeSelection from './cool-or-nerd-mode-selection.react.js'; | import CoolOrNerdModeSelection from './cool-or-nerd-mode-selection.react.js'; | ||||
import ExistingEthereumAccount from './existing-ethereum-account.react.js'; | import ExistingEthereumAccount from './existing-ethereum-account.react.js'; | ||||
import KeyserverSelection from './keyserver-selection.react.js'; | import KeyserverSelection from './keyserver-selection.react.js'; | ||||
import UsernameSelection from './username-selection.react.js'; | |||||
import type { RootNavigationProp } from '../../navigation/root-navigator.react.js'; | import type { RootNavigationProp } from '../../navigation/root-navigator.react.js'; | ||||
import { | import { | ||||
KeyserverSelectionRouteName, | KeyserverSelectionRouteName, | ||||
CoolOrNerdModeSelectionRouteName, | CoolOrNerdModeSelectionRouteName, | ||||
ConnectEthereumRouteName, | ConnectEthereumRouteName, | ||||
ExistingEthereumAccountRouteName, | ExistingEthereumAccountRouteName, | ||||
UsernameSelectionRouteName, | |||||
type ScreenParamList, | type ScreenParamList, | ||||
type RegistrationParamList, | type RegistrationParamList, | ||||
} from '../../navigation/route-names.js'; | } from '../../navigation/route-names.js'; | ||||
export type RegistrationNavigationProp< | export type RegistrationNavigationProp< | ||||
RouteName: $Keys<RegistrationParamList> = $Keys<RegistrationParamList>, | RouteName: $Keys<RegistrationParamList> = $Keys<RegistrationParamList>, | ||||
> = StackNavigationProp<ScreenParamList, RouteName>; | > = StackNavigationProp<ScreenParamList, RouteName>; | ||||
Show All 32 Lines | <Registration.Navigator screenOptions={screenOptions}> | ||||
<Registration.Screen | <Registration.Screen | ||||
name={ConnectEthereumRouteName} | name={ConnectEthereumRouteName} | ||||
component={ConnectEthereum} | component={ConnectEthereum} | ||||
/> | /> | ||||
<Registration.Screen | <Registration.Screen | ||||
name={ExistingEthereumAccountRouteName} | name={ExistingEthereumAccountRouteName} | ||||
component={ExistingEthereumAccount} | component={ExistingEthereumAccount} | ||||
/> | /> | ||||
<Registration.Screen | |||||
name={UsernameSelectionRouteName} | |||||
component={UsernameSelection} | |||||
/> | |||||
</Registration.Navigator> | </Registration.Navigator> | ||||
); | ); | ||||
} | } | ||||
export default RegistrationNavigator; | export default RegistrationNavigator; |