move onboarding to screens

This commit is contained in:
Ansh Nanda 2023-08-28 13:37:44 -07:00
parent 84e065667a
commit edfd326069
11 changed files with 149 additions and 107 deletions

View file

@ -67,6 +67,8 @@ import {getRoutingInstrumentation} from 'lib/sentry'
import {bskyTitle} from 'lib/strings/headings'
import {JSX} from 'react/jsx-runtime'
import {timeout} from 'lib/async/timeout'
import {Welcome} from 'view/com/auth/onboarding/Welcome'
import {RecommendedFeeds} from 'view/com/auth/onboarding/RecommendedFeeds'
const navigationRef = createNavigationContainerRef<AllNavigatorParams>()
@ -219,6 +221,18 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
component={SavedFeeds}
options={{title: title('Edit My Feeds')}}
/>
<Stack.Group
screenOptions={{
animation: 'slide_from_bottom',
presentation: 'modal',
}}>
<Stack.Screen
name="Welcome"
component={Welcome}
options={{title: title('Welcome')}}
/>
<Stack.Screen name="RecommendedFeeds" component={RecommendedFeeds} />
</Stack.Group>
</>
)
}
@ -254,6 +268,7 @@ function TabsNavigator() {
function HomeTabNavigator() {
const contentStyle = useColorSchemeStyle(styles.bgLight, styles.bgDark)
return (
<HomeTab.Navigator
screenOptions={{