我有在电子商务中展示标记的代码。
Structure like that: RestaurantScreen has basketIcon, and when onPress in basketIcon, it will show BasketScreen. I want to show it with popup, and i have this code in App.js.
<Stack.Screen
name="Basket"
component={BasketScreen}
options={{presentation: "modal", headerShown: false}}
/>
但是,当点击显示Cart时,它只看上页显示(不是人)。 因此,我如何确定这一点?
我也在上述3个卷宗中加上反应/反应版本。
import { useNavigation } from @react-navigation/native
"@react-navigation/native": "^6.1.8",