-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sign up screen on unauthenticated user upon joinging com
- Loading branch information
1 parent
48bac15
commit 98bb8ca
Showing
6 changed files
with
50 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { createStackNavigator } from 'react-navigation-stack'; | ||
|
||
import { navigateNestedReset } from '../../actions/navigation'; | ||
import { COMMUNITIES_TAB, MAIN_TABS } from '../../constants'; | ||
import { JOIN_GROUP_SCREEN } from '../../containers/Groups/JoinGroupScreen'; | ||
import { authFlowGenerator } from '../auth/authFlowGenerator'; | ||
import { SIGNUP_TYPES } from '../../containers/Auth/SignUpScreen'; | ||
|
||
const JoinCommunityUnauthenticatedFlowScreens = authFlowGenerator({ | ||
completeAction: navigateNestedReset([ | ||
{ | ||
routeName: MAIN_TABS, | ||
tabName: COMMUNITIES_TAB, | ||
}, | ||
{ routeName: JOIN_GROUP_SCREEN }, | ||
]), | ||
includeSignUp: true, | ||
// @ts-ignore | ||
signUpType: SIGNUP_TYPES.JOIN_COMMUNITY, | ||
}); | ||
|
||
export const JoinCommunityUnauthenticatedFlowNavigator = createStackNavigator( | ||
JoinCommunityUnauthenticatedFlowScreens, | ||
{ | ||
defaultNavigationOptions: { | ||
header: null, | ||
}, | ||
}, | ||
); |