From 13aa23105c90a133076ea7377963b1e3a9f751ee Mon Sep 17 00:00:00 2001 From: Virri Praneeth Reddy Date: Mon, 6 Apr 2026 15:09:37 +0530 Subject: [PATCH] applying root style for WMX widgets --- learn/react-native/wmx-docs/creating-wmx-widget.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/learn/react-native/wmx-docs/creating-wmx-widget.md b/learn/react-native/wmx-docs/creating-wmx-widget.md index 478d6d38e..a42006b5b 100644 --- a/learn/react-native/wmx-docs/creating-wmx-widget.md +++ b/learn/react-native/wmx-docs/creating-wmx-widget.md @@ -161,3 +161,7 @@ Name | Description | Required | ---- |-------------|----------| **name** | Style property name (alphanumeric). | Yes| **style**| Default style value. | No| + +:::tip React Native only +In the generated app, WaveMaker passes **`root`** and **`text`** to your component, plus any keys you add under the **`styles`** section in `wmx.json` (for example `container`). Apply **`root`** to your widget’s **outermost** view so **Show** in Studio and outer layout behave like built-in widgets. Those custom keys are in addition to `root`; they do not replace it. +:::