Skip to content

在Screen和其子组件中通过Option有设置不同属性时,在77环境ets侧接收到的属性有丢失。需要系统框架定位处理后。 #30

@North-Wind-1

Description

@North-Wind-1

如下代码:
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{
headerTintColor: '#FF69B4',
headerBackVisible: true,
}}
/>

在子页SettingsScreen中:
useLayoutEffect(() => {
navigation.setOptions({
headerShadowVisible,
headerTransparent,
headerBlurEffect,
})
}, [
navigation,
headerShadowVisible,
headerTransparent,
headerBlurEffect,
]);

在框架72环境和安卓、iOS上属性接收正常,在77环境上接收时属性会有丢失。需要框架定位处理。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions