Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/pluggableWidgets/intro-screen-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- We fixed an issue where using the conditional visibility on the IntroScreen would cause the widget not to render.

## [4.1.0] - 2025-7-7

- Initial slide now correctly positioned on mount.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "intro-screen-native",
"widgetName": "IntroScreen",
"version": "4.2.0",
"version": "4.2.1",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useState, JSX } from "react";
import { defaultWelcomeScreenStyle, IntroScreenStyle } from "./ui/Styles";
import { IntroScreenProps } from "../typings/IntroScreenProps";
import { Modal, View } from "react-native";
import { InteractionManager, Modal, View } from "react-native";
import { DynamicValue, ValueStatus } from "mendix";
import { SwipeableContainer } from "./SwipeableContainer";
import AsyncStorage from "@react-native-async-storage/async-storage";
Expand All @@ -22,15 +22,15 @@ export function IntroScreen(props: IntroScreenProps<IntroScreenStyle>): JSX.Elem
setVisible(value === "" || value === null);
});
} else {
setVisible(true);
InteractionManager.runAfterInteractions(() => setVisible(true));
}
}, [props.identifier]);

const hideModal = useCallback((): void => {
if (props.identifier) {
AsyncStorage.setItem(props.identifier, "gone").then(() => setVisible(false));
} else {
setVisible(false);
InteractionManager.runAfterInteractions(() => setVisible(false));
}
}, [props.identifier]);

Expand Down
Loading
Loading