当然:登机屏幕在完成后保持出现 我构建一个React Native应用程序,并具有入门屏幕,该屏幕只能在用户首次打开应用程序时显示一次。但是,完成入职过程后,应用程序不断返回...

问题描述 投票:0回答:1

由于这是一个

expo

项目,您可以在

redirect
组件上使用
<Stack.Screen.../>
react-native
1个回答
0
投票

<Stack screenOptions={{headerShown: false}}> <Stack.Screen name="index" options={{ gestureEnabled: false, animation: 'none', }} redirect={!showOnBoarding} /> <Stack.Screen name="home/HomeScreen" options={{ gestureEnabled: false, animation: 'none', }} /> </Stack>

    

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.