Better TranslateHome
GitHub
Getting Started
  • Introduction
  • Mission
  • Installation
  • CLI
  • Skills
  • RTL
  • Changelog
Adapters
  • Core
  • React
  • Expo
  • Astro
  • MD & MDX
  • Next.js
  • TanStack Router

Expo

Expo uses the same React adapter as web React.

As of now, there is no separate @better-translate/react-native package. @better-translate/react fully supports the React Native environment and development experience.

Implementation

Follow the React adapter implementation guide for Expo apps too: React adapter.

The same install command, translator setup, provider, and useTranslations API apply. In Expo, use your app's Expo entry file and screen components where the React guide uses web-specific files.

Mental model

  • @better-translate/core owns the translation data
  • @better-translate/react gives Expo the provider and hook

That is the full setup for most Expo apps.

Generate locale files automatically

Instead of writing every translation by hand, use the CLI to extract strings and generate locale files: CLI guide

Examples

  • expo-example