# @planningcenter/olio-react-native

> Components and utilities for the react-native space

Latest version **0.3.4** (published 2026-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @planningcenter/olio-react-native
pnpm add @planningcenter/olio-react-native
yarn add @planningcenter/olio-react-native
bun add @planningcenter/olio-react-native
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2026-07-13 |
| First published | 2023-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 5 |
| Unpacked size | 950.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mobile Systems Engineering |
| Maintainers | timmorgan, danott, kylemellander, jonsuh, keola |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/@planningcenter/olio-react-native
- Repository: https://github.com/planningcenter/olio-react-native
- Homepage: https://github.com/planningcenter/olio-react-native.git#readme
- Issues: https://github.com/planningcenter/olio-react-native.git/issues
- npm.io page: https://npm.io/package/@planningcenter/olio-react-native

## Dependencies (5)

- [trix](https://npm.io/package/trix.md) ^2.0.8
- [liquidjs](https://npm.io/package/liquidjs.md) ^10.9.4
- [@planningcenter/icons](https://npm.io/package/@planningcenter/icons.md) ^15.4.1
- [@react-native-clipboard/clipboard](https://npm.io/package/@react-native-clipboard/clipboard.md) ^1.11.2
- [@react-native-async-storage/async-storage](https://npm.io/package/@react-native-async-storage/async-storage.md) ^1.21.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.3.4 (latest) — 2026-07-13
- 0.3.3 (next) — 2026-06-30
- 0.3.2 — 2026-03-03
- 0.3.1 — 2025-12-17
- 0.3.0 — 2025-12-17
- 0.2.0 — 2025-12-12
- 0.1.4 — 2025-12-10
- 0.1.3 — 2025-10-13
- 0.1.2 — 2025-09-09
- 0.1.1 — 2024-12-12
- 0.1.0-rc.2 — 2024-03-04
- 0.1.0-rc.1 — 2023-12-19

## README

<p align="center">
  <img src="https://github.com/planningcenter/olio-react-native/assets/8450027/8361d4a7-c77c-4c6c-99b8-4bd25114abbc" />
</p>

<h1 align="center">@planningcenter/olio-react-native</h1>

Olio is a component library that is being developed for sharing mobile components across multiple React Native apps. It is meant to be hodgepodge of components and other shared concerns, which is why it’s named “olio”.

“Olio” definition:

- a highly spiced stew of various meats and vegetables originating from Spain and Portugal.
- a miscellaneous collection of things.

## Installation

```sh
yarn add @planningcenter/olio-react-native
```

## RichTextEditor

Our rich text editor is powered by [trix](https://trix-editor.org/) and [react-native-webview](https://github.com/react-native-webview/react-native-webview). It's a zero configuration text editor that works offline and is version controlled.

```
import { RichTextEditor } from '@planningcenter/olio-react-native'

const [value, setValue] = useState('')

<RichTextEditor value={value} onChange={setValue} />
```

## DevTools

In order to use the menu, you will need to do the following:

1.  Install `@planningcenter/olio-react-native`
2.  In a main file (e.g. app.js), add the following:

    ```jsx
    import { DevTools } from '@planningcenter/olio-react-native'

    function App() {
      ...
      return (
        ...
        <DevTools />
      )
    }

    ```

**IMPORTANT:** Make sure that this is only added once to an app as initializing it multiple times could lead to issues in development

### Tools

There are a few tools that you can use to help with the development process. To add a tool to the menu, you simply need to import that tool into your file and add it under the DevTools component.

#### LogSection

This tool allows you to filter out certain console logs. You can filter by log types (e.g. log, warn, error) or by message regexes. Filters can be combined to better control your console outputs. You will need to import and call `useLogManager` around app initialization to get the filters to work without having to open the dev tools menu.

##### Example

```
import { DevTools, useLogManager } from '@planningcenter/olio-react-native'

export default function MyDevTools() {
  useLogManager()
  return (
    <DevTools>
      <DevTools.LogSection />
    </DevTools>
  )
}
```

#### NavigationSection

This tool allows you to jump to a specific screen immediately instead of trying to find a link to that screen. This requires an `onNavigate` function that takes in a _routeName_ and _routeParams_ to determine how to handle navigation.

##### Example

```
import { DevTools } from '@planningcenter/olio-react-native'
import { useNavigation } from  '@react-navigation/native'

export default function MyDevTools() {
  const navigation = useNavigation()
  return (
    <DevTools>
      <DevTools.NavigationSection onNavigate={navigation.navigate}  />
    </DevTools>
  )
}
```

#### RequestSection

This tool allows you to override certain urls with custom responses. This can be useful for debugging when certain requests fail, testing different responses, and mocking endpoints that don't exist yet. You will need to import and call `useRequestManager` around app initialization to get the overrides to work without having to open the dev tools menu.

##### Example

```
import { DevTools, useRequestManager } from '@planningcenter/olio-react-native'

export default function MyDevTools() {
  useRequestManager()
  return (
    <DevTools>
      <DevTools.RequestSection />
    </DevTools>
  )
}
```

#### StorageSection

This tool allows you to copy values stored in AsyncStorage to help you debug what certain values are.

##### Example

```
import { DevTools } from '@planningcenter/olio-react-native'

export default function MyDevTools() {
  return (
    <DevTools>
      <DevTools.StorageSection />
    </DevTools>
  )
}
```

#### Custom tools

If you would like to create a custom tool, all you need to do is add children inside the DevTool component. You can use the following components to have a more consistent look

- Section (wrapper for new tools)
- Button
- Heading
- Icon
- Switch
- Text
- TextInput

For example, if you wanted to create a tool that tests alert, you could do something like this:

```jsx
import { Alert, Text, View } from 'react-native'
import { DevTools } from '@planningcenter/olio-react-native'

...
const [value, setValue] = useState('')
<DevTools settings={mySettings}>
  <DevTools.Section title="Alert Test">
    <Text>Enter text to send alert</Text>
    <View style={{ flexDirection: 'row', alignItems: 'center', columnGap: 8 }}>
      <DevTools.TextInput value={value} onChangeText={setValue} />
      <DevTools.Button text="Send" onPress={() => Alert.alert(value)} />
    </View>
  </DevTools.Section>
</DevTools>
...
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

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