# @applicaster/zapp-react-native-ui-components

> Applicaster Zapp React Native ui components for the Quick Brick App

Latest version **15.1.26** (published 2026-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @applicaster/zapp-react-native-ui-components
pnpm add @applicaster/zapp-react-native-ui-components
yarn add @applicaster/zapp-react-native-ui-components
bun add @applicaster/zapp-react-native-ui-components
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 15.1.26 |
| Published | 2026-11-24 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Applicaster |
| Maintainers | applicaster-devs, meirmanr, zapp-ci, applicaster-external-devs |
| Keywords | Applicaster, Zapp, Quick-Brick, UI, Components |

## Links

- npm: https://www.npmjs.com/package/@applicaster/zapp-react-native-ui-components
- Repository: https://github.com/applicaster/quickbrick
- Homepage: https://github.com/applicaster/quickbrick#readme
- Issues: https://github.com/applicaster/quickbrick/issues
- npm.io page: https://npm.io/package/@applicaster/zapp-react-native-ui-components

## Dependencies (9)

- [url](https://npm.io/package/url.md) ^0.11.0
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [promise](https://npm.io/package/promise.md) ^8.3.0
- [react-native-sortables](https://npm.io/package/react-native-sortables.md) 1.7.1
- [fast-json-stable-stringify](https://npm.io/package/fast-json-stable-stringify.md) ^2.1.0
- [@applicaster/applicaster-types](https://npm.io/package/@applicaster/applicaster-types.md) 15.1.26
- [@applicaster/zapp-react-native-redux](https://npm.io/package/@applicaster/zapp-react-native-redux.md) 15.1.26
- [@applicaster/zapp-react-native-utils](https://npm.io/package/@applicaster/zapp-react-native-utils.md) 15.1.26
- [@applicaster/zapp-react-native-bridge](https://npm.io/package/@applicaster/zapp-react-native-bridge.md) 15.1.26

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 15.1.26 (latest) — 2026-11-24
- 17.0.0-alpha.9147048829 (next) — 2026-11-24
- 17.0.0-alpha.3015569163 — 2026-11-24
- 17.0.0-rc.7 — 2026-11-24
- 17.0.0-alpha.3111286799 — 2026-11-23
- 17.0.0-alpha.9322493301 — 2026-11-23
- 16.0.0-rc.139 — 2026-11-22
- 17.0.0-rc.6 — 2026-11-21
- 16.0.0-rc.138 — 2026-11-20
- 16.0.0-rc.137 — 2026-11-20
- 15.1.26-rc.1 — 2026-11-20
- 15.1.26-alpha.9876200044 — 2026-11-20
- 15.1.26-alpha.7123723025 — 2026-11-20
- 17.0.0-rc.5 — 2026-11-19
- 15.1.26-rc.0 — 2026-11-19
- … 6090 more at https://npm.io/package/@applicaster/zapp-react-native-ui-components/versions

## README

# Zapp React Native UI Components

![](https://img.shields.io/badge/React%20Native-0.62.2-blue.svg)
![](https://img.shields.io/badge/React-16.11.0-blue.svg)
[![CircleCI](https://github.com/applicaster/QuickBrick/tree/main.svg?style=shield&circle-token=07da67c776e760b087a4cc707712cd9a9c04d1af)](https://github.com/applicaster/QuickBrick/tree/main)
![npm version](https://badge.fury.io/js/%40applicaster%2Fzapp-react-native-ui-components.svg)

![logo](../../logo.png)

This package contains the React Native UI components for the quick brick app

## Contributing

- Follow the steps in the [main README](../../README.md) to set up the Zapp-React-Native repo, and run the app.
- add your component as explained below
- in order to see the component in the App, you may need to manually edit the rivers_configuration.json file so that one screen includes your new component

## Available Components

### AppContainer

The AppContainer components wraps the content of the app in a canvas, and passes the screen's dimensions to its children. It also applies the background color of the app if any

**props**:

- `styles`: style data - expects at least a `{ app: { backgroundColor: "" } }` property
- `children`: function which takes the react-native `Dimensions` object and renders the children to load inside the AppContainer

### River

The River component renders an entry in `layout.json` by assembling a screen made of the `ui_components` inside the corresponding `general_content` screen in the UI builder. It will pass the component data to each `ui_component`, which allows components to access the datasource, and other configuration from the UI Builder. When rendering the `ui_components`, the River component automatically applies decorators which provide the component with the zapp-pipes data loader and a navigator object which can be used to call a new route for the app to show.

**props**:

- `rivers`: map of entries in `layout.json`, where the key is the river id, and the value is the river data
- `screenId`: id of the river to display. This component is wrapped by a decorator which will resolve the river based on the `screenId` and the provided `rivers` map

### Grid, List, Hero

These components render UI Builder `grid`, `list` and `hero` components inside a `River`.

**props**:

- `styles`: styles data from Zapp
- `component`: the `ui_component` data from `layout.json` for this component
- `zappPipesData`: object representing the data for that component, from the data source defined in the `component` prop.
  - `loading`: boolean which indicates if the zapp pipes data is being loading or not
  - `url`: datasource url resolved for this component
  - `data`: result of the fetched datasource. this property will be populated when the zapp pipes data has been successfuly loaded.
- `navigator`: navigator object, useful for navigating in the app
  - `push: (item: any) => void`: will push a new nested route to navigate to the item. the entire `item` data will be stored in the route's state
  - `replace: (item: any) => void`: will replace the current root route with the provided one. used mainly for main level navigation. the entire `item` data will be stored in the route's state
  - `canGoBack: () => boolean`: tells wether the navigation is at the main root level or not
  - `goBack: () => void`: returns to the previous route
  - `screenData: any`: returns the current route's state (the `item` provided when calling `push` or `replace`)

## Adding a component

- create a folder in `./Components`
- make sure your component uses the standard export, and not the default syntax

```javascript
// Good
export class MyAwesomeComponent extends React.Component {
  /* ... */
}

// Not good
class MyAwesomeComponent extends React.Component {
  /* ... */
}
export default MyAwesomeComponent;
```

- in `Components/index.js` add the export for your component

```javascript
export { MyAwesomeComponent } from "./MyAwesomeComponent";
```

## Connecting my component to Zapp Pipes

Zapp App components rely on [Zapp-Pipes](https://github.com/applicaster/zapp-pipes) to load data.

Components are automatically loaded from the rivers configuration json. This configuration includes the props required for zapp pipes to fetch & return the data.
In order to connect your component to ZappPipes, you simply need to use the `ZappPipesDataConnector` decorator. This requires to use a specific babel plugin `babel-preset-react-native-stage-0`.

```javascript
import * as React from "react";
import { View, Text } from "react-native";
import { zappPipesDataConnector } from "../ZappPipesDataConnector";

@zappPipesDataConnector
export class MyComponent extends React.Component {
  renderComponent = (data) => {
    return (
      <View>
        <Text>{data.title}</Text>
        <Text>{data.summary}</Text>
      </View>
    );
  };

  renderPlaceholder = () => {
    return;
    <View>
      <Text>loading data...</Text>
    </View>;
  };

  render() {
    const { zappPipesData } = this.props; // this is injected by the decorator

    if (zappPipesData && !zappPipesData.loading) {
      // data has finished loaded and is available
      return this.renderComponent(zappPipesData.data);
    }

    // data is not loaded - we should return a placeholder until data lands
    return this.renderPlaceholder();
  }
}
```

---
_Source: https://npm.io/package/@applicaster/zapp-react-native-ui-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
