diff --git a/example/src/Screens/BottomTabs.tsx b/example/src/Screens/BottomTabs.tsx
index 5ae63d51..458c7d36 100644
--- a/example/src/Screens/BottomTabs.tsx
+++ b/example/src/Screens/BottomTabs.tsx
@@ -86,12 +86,18 @@ export default function BottomTabsScreen({
>
+ >
+ {(props) => (
+
+ )}
+
+ >
+ {(props) => (
+
+ )}
+
();
export default function SimpleStackScreen({
navigation,
-}: StackScreenProps) {
+ screenOptions,
+}: StackScreenProps & {
+ screenOptions?: StackNavigationOptions;
+}) {
React.useLayoutEffect(() => {
navigation.setOptions({
headerShown: false,
@@ -113,7 +117,7 @@ export default function SimpleStackScreen({
}, [navigation]);
return (
-
+
{
? this.state.scenes.slice(-2).some((scene) => {
const { descriptor } = scene;
const options = descriptor ? descriptor.options : {};
- const {
- headerTransparent,
- headerShown = isParentHeaderShown === false,
- } = options;
+ const { headerTransparent, headerShown = true } = options;
if (headerTransparent || headerShown === false) {
return true;
@@ -542,7 +539,7 @@ export default class CardStack extends React.Component {
const {
safeAreaInsets,
- headerShown = isParentHeaderShown === false,
+ headerShown = true,
headerTransparent,
cardShadowEnabled,
cardOverlayEnabled,