Skip to content

Commit ccd512a

Browse files
committed
fix(background-gradient-native): removed old guard condition for specific MiN < 9
1 parent 88b10b8 commit ccd512a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactElement } from "react";
2-
import { Pressable, Alert } from "react-native";
2+
import { Pressable } from "react-native";
33
import LinearGradient from "react-native-linear-gradient";
44
import { all } from "deepmerge";
55
import { executeAction } from "@mendix/piw-utils-internal";
@@ -36,18 +36,6 @@ const angleValidation = (angle: number | undefined): number => {
3636
};
3737

3838
export function BackgroundGradient({ name, colorList, content, onClick, style }: props): ReactElement {
39-
if (!LinearGradient) {
40-
Alert.alert(
41-
"Background Gradient Not Available",
42-
"This device does not support the background gradient feature.\n\n" +
43-
"Possible reasons:\n" +
44-
"• The app binary does not include native gradient support (older app version).\n" +
45-
"• The native library wasn’t linked or rebuilt before installation.\n" +
46-
"• The current OS/platform does not support this feature.\n\n" +
47-
"Please update the app to the latest version or check that the required native modules are built into this release."
48-
);
49-
}
50-
5139
const styles = all<CustomStyle>([defaultStyle, ...style]);
5240
const angle = angleValidation(styles.angle);
5341
const opacity = opacityValidation(styles.opacity);

0 commit comments

Comments
 (0)