From 5136de5b637c7ad68587cfffa0ac1acf241e8df3 Mon Sep 17 00:00:00 2001 From: Matt <33236545+callmejed@users.noreply.github.com> Date: Mon, 6 Jun 2022 01:19:59 -0400 Subject: [PATCH] update: expo instructions were incomplete Expo instruction incomplete if expo-localization is not installed. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 312f688f..81d3b081 100644 --- a/README.md +++ b/README.md @@ -381,6 +381,8 @@ or npm npm install react-native-localize @formatjs/intl-pluralrules @formatjs/intl-getcanonicallocales @formatjs/intl-listformat @formatjs/intl-displaynames @formatjs/intl-locale @formatjs/intl-datetimeformat @formatjs/intl-numberformat @formatjs/intl-relativetimeformat --save ``` +If using Expo, omit `react-native-localize` and use `expo install expo-localization` instead. Read more [here](https://docs.expo.dev/versions/latest/sdk/localization/#installation). + In your app starting entrypoint e.g. `./index.js` or even better use a `index.android.js` to prevent importing on iOS/web put the following code. (don't forget to import the languages you want to support, in the example only english language is supported) ```javascript