最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - React Native Expo: Onboarding not being shown - Stack Overflow

programmeradmin1浏览0评论

I'm trying to see what my onboarding.tsx looks and it showed once before, but now its not. I want to have it show each time I reload my app, and when I click the "Register / Login" button, it simply goes to the main app with tabs.

I've tried doing that with this, but its still only showing the main app tabs even when I try commenting it out.

// in my app/_layout.tsx
  return (
    <Stack 
      screenOptions={{ headerShown: false }}
      initialRouteName="(auth)/onboarding"
    >
      <Stack.Screen name="(auth)/onboarding" />
      <Stack.Screen name="(tabs)" />  // <---- Shows even when I comment out, but not onboarding
    </Stack>
  );

I don't get any errors in my IDE, I've tried npx expo start -c to clear cache, but its not working.

发布评论

评论列表(0)

  1. 暂无评论