# noReactNativeRawText

Rule `biome/noReactNativeRawText`. Disallow raw text outside `<Text>` components in React Native.

- Source: biome
- Technologies: React
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #537 by reach, #172 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noReactNativeRawText` | yes | no | group correctness, since 2.4.13 | [docs](https://biomejs.dev/linter/rules/no-react-native-raw-text/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<View>some text</View>
```

```jsx
<View>{'some text'}</View>
```

```jsx
const text = 'some text';
<View>{`${text}`}</View>
```

### Correct: the rule accepts this

```jsx
<View><Text>some text</Text></View>
```

```jsx
<View><Text>{'some text'}</Text></View>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noReactNativeRawText": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noReactNativeDeepImports](https://lintradar.dev/rules/biome/noReactNativeDeepImports.md): Disallow deep imports from the `react-native` package.
- [biome/noReactSpecificProps](https://lintradar.dev/rules/biome/noReactSpecificProps.md): Prevents React-specific JSX properties from being used.
- [biome/noQwikUseVisibleTask](https://lintradar.dev/rules/biome/noQwikUseVisibleTask.md): Disallow `useVisibleTask$()` functions in Qwik components.
- [biome/noRedundantUseStrict](https://lintradar.dev/rules/biome/noRedundantUseStrict.md): Prevents from having redundant `"use strict"`.
- [biome/noQuickfixBiome](https://lintradar.dev/rules/biome/noQuickfixBiome.md): Disallow `quickfix.biome` in supported editor settings.
- [biome/noScssNullComparison](https://lintradar.dev/rules/biome/noScssNullComparison.md): Disallow comparing values to `null` in Sass `@if` conditions.

---

Web page: https://lintradar.dev/rules/biome/noReactNativeRawText. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
