【发布时间】: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>
<MyCustomSignUp> 是堆栈导航器,而不是组件或屏幕...
有人见过使用 Amplify 和 React Native 实现的入职流程吗? 我的实施会奏效吗? 有例子吗?
感谢您的帮助,我这几天一直在寻找任何东西。
【问题讨论】:
标签: reactjs react-native authentication aws-amplify