【问题标题】:Ract Native: first time user onboarding with AWS AmplifyReact Native:首次使用 AWS Amplify 的用户入门
【发布时间】:2021-09-04 13:21:44
【问题描述】:

不太确定这是否可行,但我想在第一次使用 React Native 应用程序的用户登录后实施入职流程。我正在使用 AWS Amplify,但我不确定如果有办法检查用户是否是第一次登录 - 或者我应该有一个 postConfirmation 触发器将他们添加到一个强制他们通过几页的组中,并且完成这些页面的事件会将他们从该组中删除并且刷新?

我的替代选择是探索在放大 <Authenticator> 组件中放置一个 react-navigation 堆栈导航器,如下所示:

import { Authenticator, SignIn } from 'aws-amplify-react-native';

// The override prop tells the Authenticator that the SignUp component is not hidden but overridden
<Authenticator hideDefault={true}>
  <SignIn />
  <MyCustomSignUp override={'SignUp'}/> 
</Authenticator>

&lt;MyCustomSignUp&gt; 是堆栈导航器,而不是组件或屏幕...

有人见过使用 Amplify 和 React Native 实现的入职流程吗? 我的实施会奏效吗? 有例子吗?

感谢您的帮助,我这几天一直在寻找任何东西

【问题讨论】:

    标签: reactjs react-native authentication aws-amplify


    【解决方案1】:

    有可能,我已经在我的 Amplify 应用程序中实现了它,您需要实现 react-native-onboarding-swiper,对其进行自定义,然后将其与 useEffect 和条件语句一起导入您的 App.js。 跟随本教程:https://www.youtube.com/watch?v=SMkR-iIGvwQ

    【讨论】:

      猜你喜欢
      • 2023-03-13
      • 1970-01-01
      • 2018-11-08
      • 2020-04-26
      • 1970-01-01
      • 2020-03-26
      • 2020-08-21
      • 2021-01-30
      • 2019-08-30
      相关资源
      最近更新 更多