Heavily inspired by RegistrationNavigator, this diff introduces CommunityCreationNavigator. This navigator will "handle" the screens of the community creation flow. Specifically the community configuration screen and the optional "Add members" screen.
Details
Details
WARNING: Please let me know if this is the wrong approach. My understanding is that because we have > 1 screen in sequence as part of our flow we should create a new navigation stack. HOWEVER, I have a very very limited understanding of navigation on native, so please correct me if that assumption is incorrect and I should approach this differently.
- Set isCommunityCreationButtonEnabled to true.
- Open community drawer and press "Create community."
- Observe that CommunityConfiguration is displayed (by looking at screen "title").
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
High-level approach is great, but some comments below
native/community-creation/community-creation-navigator.react.js | ||
---|---|---|
31 ↗ | (On Diff #26914) | I'm not sure since I don't have the link to the Figma designs handy, but if the title is different for different screens, this might be something you want to specify to CommunityConfiguration directly: <CommunityCreation.Screen name={CommunityConfigurationRouteName} component={CommunityConfiguration} options={{ headerTitle: 'Create a community' }} /> (Memoized of course) |
32 ↗ | (On Diff #26914) | I use white directly in the registration flow, but that flow is built for dark mode only. I think you'll need to call useColors in CommunityCreationNavigator, and construct screenOptions with the appropriate color there |
native/navigation/root-navigator.react.js | ||
207 ↗ | (On Diff #26914) | Why include disableGesturesScreenOptions here? Feels like it would be better with gestures enabled |
native/community-creation/community-creation-navigator.react.js | ||
---|---|---|
50–52 ↗ | (On Diff #26985) | Doesn't really matter, and partly my fault for suggesting memoization... but this could be defined outside the component |
native/community-creation/community-creation-navigator.react.js | ||
---|---|---|
50–52 ↗ | (On Diff #26985) | True, will make that change |