Skip to content

Commit

Permalink
fix: [Issues: #38] 修复@react-navigation/native-stack库,返回上个页面会重新加载问题。 (#39
Browse files Browse the repository at this point in the history
)

Co-authored-by: Inkmu <[email protected]>
  • Loading branch information
xuxiaoqian1 and Inkmusun authored Sep 26, 2024
1 parent 2b510ac commit 3c24073
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/native-stack/src/views/NativeStackView.harmony.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,7 @@ export default function NativeStackView({ state, descriptors }: Props) {
style={[
StyleSheet.absoluteFill,
{
display:
isFocused ||
(nextPresentation != null &&
TRANSPARENT_PRESENTATIONS.includes(nextPresentation))
? 'flex'
: 'none',
display:'flex',
},
presentation != null &&
TRANSPARENT_PRESENTATIONS.includes(presentation)
Expand Down

0 comments on commit 3c24073

Please sign in to comment.