Skip to content
Open
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
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]

### Changed

- We updated the style prop name from `experimental_backgroundImage` to `backgroundImage`.

## [2.4.0] - 2026-11-25

### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "background-gradient-native",
"widgetName": "BackgroundGradient",
"version": "2.4.0",
"version": "2.4.1",
"repository": {
"type": "git",
"url": "https://github.com/mendix/native-widgets.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function BackgroundGradient({ name, colorList, content, onClick, style }:
style={[
styles.container,
{
experimental_backgroundImage: [
backgroundImage: [
{
type: "linear-gradient" as const,
direction: `${angle}deg`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports[`Background gradient render background gradient with custom style 1`] =
[
{},
{
"experimental_backgroundImage": [
"backgroundImage": [
{
"colorStops": [
{
Expand Down Expand Up @@ -119,7 +119,7 @@ exports[`Background gradient render background gradient with one color 1`] = `
[
{},
{
"experimental_backgroundImage": [
"backgroundImage": [
{
"colorStops": [
{
Expand Down Expand Up @@ -194,7 +194,7 @@ exports[`Background gradient render correctly 1`] = `
[
{},
{
"experimental_backgroundImage": [
"backgroundImage": [
{
"colorStops": [
{
Expand Down Expand Up @@ -269,7 +269,7 @@ exports[`Background gradient render with undefined angle 1`] = `
[
{},
{
"experimental_backgroundImage": [
"backgroundImage": [
{
"colorStops": [
{
Expand Down Expand Up @@ -344,7 +344,7 @@ exports[`Background gradient render with undefined opacity 1`] = `
[
{},
{
"experimental_backgroundImage": [
"backgroundImage": [
{
"colorStops": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("Background gradient", () => {
};
const tree = render(<BackgroundGradient {...defaultProps} />).toJSON() as any;
const gradientView = tree.children[0];
const colorStops = gradientView.props.style[1].experimental_backgroundImage[0].colorStops;
const colorStops = gradientView.props.style[1].backgroundImage[0].colorStops;
expect(colorStops.map((s: any) => s.positions[0])).toEqual(["0%", "50%", "100%"]);
});
it("render background gradient with one color", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="BackgroundGradient" version="2.4.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="BackgroundGradient" version="2.4.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="BackgroundGradient.xml" />
</widgetFiles>
Expand Down
Loading