For AI agents: the complete documentation index is available at /react-native-plain-text/llms.txt, the full documentation bundle is available at /react-native-plain-text/llms-full.txt, and this page is available as Markdown at /react-native-plain-text/guide/installation.md.

Installation

npm
yarn
pnpm
bun
deno
npm install react-native-plain-text

This is a native module, so you need to rebuild the app.

Requires React Native's New Architecture (Fabric).

Usage

import { PlainText } from 'react-native-plain-text';

<PlainText style={{ fontSize: 16 }}>Hello there 👋</PlainText>;

Unified Text component

For an easy adoption path that doesn't require touching existing <Text> call sites, import Text instead of PlainText:

import { Text } from 'react-native-plain-text';

<Text style={{ fontSize: 16 }}>Hello there 👋</Text>;

It's a selector component: PlainText for simple strings, falling back to RN <Text> for anything PlainText doesn't support (nested text, element children). See the Text component guide for how it decides and how to build the same pattern into your own centralized Text component.

Using PlainText directly still gives you the best performance.