skills/expo/SKILL.md
Expo and React Native integration guide using Better Translate React support.
npx skillsauth add jralvarenga/better-translate expoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this guide when the app is Expo or React Native.
@better-translate/core@better-translate/reactThere is no separate native adapter package.
@better-translate/coreBetterTranslateProvideruseTranslations() inside screens and componentsThe simplest no-extra-generic setup is to bind the translator once and export an app-local provider + hook pair.
createBetterTranslateReact(translator)import { createBetterTranslateReact } from "@better-translate/react";
import { translator } from "./i18n";
export const { BetterTranslateProvider, useTranslations } =
createBetterTranslateReact(translator);
Then screens can import your app-local hook:
import { useTranslations } from "./i18n";
export function HomeScreen() {
const { t } = useTranslations();
return <Text>{t("home.title")}</Text>;
}
These fallback patterns still work in Expo too.
import { useTranslations } from "@better-translate/react";
import { translator } from "./i18n";
export function HomeScreen() {
const { t } = useTranslations<typeof translator>();
return <Text>{t("home.title")}</Text>;
}
useTranslations()Create src/better-translate.d.ts:
import { translator } from "./i18n";
declare module "@better-translate/react" {
interface BetterTranslateReactTypes {
translator: typeof translator;
}
}
Then components can call useTranslations() directly and keep key autocomplete.
Do not look for @better-translate/react-native.
Expo support lives inside @better-translate/react.
Only add more packages if the app actually needs them:
@better-translate/md for localized content files@better-translate/cli for generated locale filesdocumentation
Repository map for finding Better Translate packages, docs, and examples.
tools
Snapshot of the current public Better Translate package and adapter surface.
documentation
Right-to-left locale configuration guide for Better Translate.
development
React and Expo integration guide for Better Translate providers, hooks, and typed translation access.