Skip to content

Commit e89f360

Browse files
committed
Move section
1 parent 52c5b7d commit e89f360

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,7 @@ $ yarn add react-native-localize
2828

2929
_Don't forget to run `pod install` after that !_
3030

31-
### Web support
32-
33-
This package supports `react-native-web`. Follow their [official guide](https://necolas.github.io/react-native-web/docs/multi-platform/#compiling-and-bundling) to configure `webpack`.
34-
35-
## Basic usage example
36-
37-
```ts
38-
import { getCurrencies, getLocales } from "react-native-localize";
39-
40-
console.log(getLocales());
41-
console.log(getCurrencies());
42-
```
43-
44-
## Expo plugin
31+
### Expo plugin
4532

4633
If you're using Expo, you can specify the supported locales in your `app.json` or `app.config.js` using the config plugin.
4734
This enables Android 13+ and iOS to display the available locales in the system settings, allowing users to select their preferred language for your app.
@@ -74,6 +61,19 @@ Alternatively, if you want to define different locales for iOS and Android, you
7461
}
7562
```
7663

64+
### Web support
65+
66+
This package supports `react-native-web`. Follow their [official guide](https://necolas.github.io/react-native-web/docs/multi-platform/#compiling-and-bundling) to configure `webpack`.
67+
68+
## Basic usage example
69+
70+
```ts
71+
import { getCurrencies, getLocales } from "react-native-localize";
72+
73+
console.log(getLocales());
74+
console.log(getCurrencies());
75+
```
76+
7777
## Add smart, AI-powered translations to your app
7878

7979
<a href="https://www.prismy.io/?r=rnl">

0 commit comments

Comments
 (0)