{"id":29170242,"url":"https://github.com/mendixlabs/mendix-native-content-renderer","last_synced_at":"2026-04-29T06:36:45.802Z","repository":{"id":78879265,"uuid":"455592724","full_name":"mendixlabs/mendix-native-content-renderer","owner":"mendixlabs","description":"Render HTML/Markdown/JSON in your Mendix Native app","archived":false,"fork":false,"pushed_at":"2023-02-23T14:45:53.000Z","size":1432,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-29T06:36:41.946Z","etag":null,"topics":["mendix","mendix-widget","native","react-native","typescript","widget"],"latest_commit_sha":null,"homepage":"https://marketplace.mendix.com/link/component/119620","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mendixlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-04T15:12:26.000Z","updated_at":"2022-02-14T14:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6139ad8-141c-4ea5-93ee-8a1bf7a046db","html_url":"https://github.com/mendixlabs/mendix-native-content-renderer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mendixlabs/mendix-native-content-renderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-content-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-content-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-content-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-content-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendixlabs","download_url":"https://codeload.github.com/mendixlabs/mendix-native-content-renderer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendixlabs%2Fmendix-native-content-renderer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32414422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mendix","mendix-widget","native","react-native","typescript","widget"],"created_at":"2025-07-01T12:39:32.832Z","updated_at":"2026-04-29T06:36:45.774Z","avatar_url":"https://github.com/mendixlabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Apache License](https://img.shields.io/badge/license-Apache%202.0-orange.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Support](https://img.shields.io/badge/Support-Community%20(no%20active%20support)-orange.svg)](https://docs.mendix.com/developerportal/app-store/app-store-content-support)\n[![Studio](https://img.shields.io/badge/Studio%20version-9.6%2B-blue.svg)](https://appstore.home.mendix.com/link/modeler/)\n[![GitHub release](https://img.shields.io/github/release/JelteMX/mendix-native-content-renderer)](https://github.com/JelteMX/mendix-native-content-renderer/releases/latest)\n[![GitHub issues](https://img.shields.io/github/issues/JelteMX/mendix-native-content-renderer)](https://github.com/JelteMX/mendix-native-content-renderer/issues)\n# Mendix Native Content Renderer\n\n![AppStoreIcon](/assets/AppStoreIcon.png)\n\nDo you want to render HTML or Markdown in your Mendix Native app? Want to display a JSON?\n\n[![overview](/assets/overview-small.png)](/assets/overview-big.png)\n\nIt uses the following libraries to do so:\n\n- [react-native-render-html](https://www.npmjs.com/package/react-native-json-tree) (6.3.4) - [Official website](https://meliorence.github.io/react-native-render-html/)\n  - Renders HTML in your React Native app\n- [marked](https://www.npmjs.com/package/react-native-json-tree) (4.0.12) - [Official website](https://marked.js.org/)\n  - Converts Markdown to HTML, then renders the HTML using the previous package\n  - Supports almost all [GFM and Commonmark](https://github.com/markedjs/marked/discussions/1202#discussioncomment-1907552)\n- [react-native-json-tree](https://www.npmjs.com/package/react-native-json-tree) (1.3.0)\n  - Renders a JSON tree in your application\n\n## Features\n\n- Render HTML\n- Render Markdown\n- Custom link handler for HTML/Markdown\n- Render JSON\n## Usage\n\n### Data\n\n- Select your Source, this should be a String, containing HTML/Markdown/JSON\n- Select your Type, this is a number\n  - 0 = HTML\n  - 1 = Markdown\n  - 2 = JSON\n  - If it does not recognize the number, it will revert to `HTML`\n\n### Link handling\n\n\u003e Only applies to HTML/Markdown\n\n- Upon clicking a link, you can let the widget decide what to do:\n  - If you select an Action, that will be used by the widget when you click any hyperlink\n  - If you do not select an Action, it will let the system handle it (e.g. open a link in a browser)\n- Link Attribute can be used (preferably in a non-persistent Entity) to pass the link to your nanoflow. That way you have total control over what you do with any link.\n  - Note: Make sure the attribute and entity is editable. The widget will **not** give you an error when it is not editable.\n\n## Styling\n\nStyling is done in normal [Mendix Native Styling](https://docs.mendix.com/refguide/native-styling-refguide) procedures.\n\nClass: `com_mendixlabs_widget_native_contentrenderer_ContentRenderer`\n\nDefault styling:\n\n```js\nexport const com_mendixlabs_widget_native_contentrenderer_ContentRenderer = {\n    html: {\n        container: {\n\n        },\n        base: {\n            color: \"#444\"\n        },\n        tags: {\n            p: {\n                marginTop: 0,\n                marginBottom: 3\n            }\n        },\n        ids: {},\n        classes: {}\n    },\n    json: {\n        container: {\n            flex: 1\n        },\n        theme: {\n            base00: \"#000000\",\n            base01: \"#303030\",\n            base02: \"#505050\",\n            base03: \"#b0b0b0\",\n            base04: \"#d0d0d0\",\n            base05: \"#e0e0e0\",\n            base06: \"#f5f5f5\",\n            base07: \"#ffffff\",\n            base08: \"#fb0120\",\n            base09: \"#fc6d24\",\n            base0A: \"#fda331\",\n            base0B: \"#a1c659\",\n            base0C: \"#76c7b7\",\n            base0D: \"#6fb3d2\",\n            base0E: \"#d381c3\",\n            base0F: \"#be643c\"\n        }\n    }\n};\n```\n\nThe widget's style properties are as follows:\n\n```xml\n\u003croot\u003e\n    \u003chtml\u003e\n        \u003ccontainer /\u003e\n        \u003cbase /\u003e\n        \u003ctags /\u003e\n        \u003cids /\u003e\n        \u003cclasses /\u003e\n    \u003c/html\u003e\n    \u003cjson\u003e\n        \u003ccontainer /\u003e\n        \u003ctheme /\u003e\n    \u003c/json\u003e\n\u003c/root\u003e\n```\n\n\u003e Note: Markdown renderer uses the same styling as HTML\n\n| Element | Style Properties | Description |\n| - | - | - |\n| `html/container` | This has all ViewStyle properties | |\n| `html/base` | Styles root component | See [here](https://meliorence.github.io/react-native-render-html/docs/guides/styling#props) |\n| `html/tags` | Target elements by tag name | See [here](https://meliorence.github.io/react-native-render-html/docs/guides/styling#props) |\n| `html/ids` | Target elements with `id` attribute | See [here](https://meliorence.github.io/react-native-render-html/docs/guides/styling#props) |\n| `html/classes` | Target elements with `class` attribute | See [here](https://meliorence.github.io/react-native-render-html/docs/guides/styling#props) |\n| `json/container` | This has all ViewStyle properties |  |\n| `json/theme` | [base16 color scheme](https://github.com/chriskempson/base16) | [See this documentation](https://github.com/Dean177/react-native-json-tree#theming) |\n\n## Example (with onClick Event)\n\nConsider the following scenario:\n\n1. We have a **non-persistent View** entity, which has two attributes: **Content** \u0026 **UrlClicked**\n\n![](assets/example-01.png)\n\n2. We configure the widget as follows:\n\n![](assets/example-02a.png)\n\nOn click we execute a Nanoflow (IVK_ClickLink), which has the same View object as an input parameter. We also configure our Link Attribute to UrlClicked.\n\n![](assets/example-02b.png)\n\n3. Nanoflow\n\n![](assets/example-03.png)\n\n4. What happens?\n\n- Let's say we have a text with `\u003cp\u003eThis is a text with a \u003ca href=\"link1\"\u003elink\u003c/a\u003e\u003c/p\u003e`. Notice the `href`\n- The user clicks this link\n- The widget will set the Link Attribute (in our example **UrlClicked**) to `link1`\n- It will execute the **IVK_ClickLink** nanoflow, where we can retrieve the `href` contents (in this example `link1`) from the **UrlClicked** attribute\n\n## Issues, suggestions and feature requests\n\n\u003e This widget is **NOT** officially supported by Mendix\n\nReport your issues on Github, see [here](https://github.com/JelteMX/mendix-native-content-renderer/issues)\n\n## Development and contribution\n\n1. Install NPM package dependencies by using: `npm install`. If you use NPM v7.x.x, which can be checked by executing `npm -v`, execute: `npm install --legacy-peer-deps`.\n1. Run `npm start` to watch for code changes. On every change:\n    - the widget will be bundled;\n    - the bundle will be included in a `dist` folder in the root directory of the project;\n    - the bundle will be included in the `deployment` and `widgets` folder of the Mendix test project.\n\n## License\n\nApache-2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendixlabs%2Fmendix-native-content-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendixlabs%2Fmendix-native-content-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendixlabs%2Fmendix-native-content-renderer/lists"}