Skip to content

Commit e0e2355

Browse files
Merge branch 'master' of github.com:web-ridge/react-native-paper-dates
2 parents dc78924 + e7098d7 commit e0e2355

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<img src="https://badgen.net/npm/dy/react-native-paper-dates" />
99
<img src="https://badgen.net/npm/types/react-native-paper-dates" />
1010
<img src="https://badgen.net/npm/license/react-native-paper-dates" />
11+
<img src="https://img.shields.io/badge/Runs%20with%20Expo-4630EB.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000" />
1112
</p>
1213

1314
- Smooth and fast cross platform Material Design **date** picker and **time** picker for ([react-native-paper](https://callstack.github.io/react-native-paper/))
@@ -222,7 +223,7 @@ or npm
222223
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
223224
```
224225

225-
In your app starting entrypoint e.g. `./index.js`
226+
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)
226227

227228
```javascript
228229
// on top of your index.js file
@@ -234,22 +235,22 @@ if (isHermesEnabled || isAndroid) {
234235
require('@formatjs/intl-getcanonicallocales/polyfill');
235236

236237
require('@formatjs/intl-pluralrules/polyfill');
237-
require('@formatjs/intl-pluralrules/locale-data/nl.js'); // use your language files
238+
require('@formatjs/intl-pluralrules/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
238239

239240
require('@formatjs/intl-relativetimeformat/polyfill');
240-
require('@formatjs/intl-relativetimeformat/locale-data/nl.js'); // use your language files
241+
require('@formatjs/intl-relativetimeformat/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
241242

242243
require('@formatjs/intl-listformat/polyfill');
243-
require('@formatjs/intl-listformat/locale-data/nl.js'); // use your language files
244+
require('@formatjs/intl-listformat/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
244245

245246
require('@formatjs/intl-displaynames/polyfill');
246-
require('@formatjs/intl-displaynames/locale-data/nl.js'); // use your language files
247+
require('@formatjs/intl-displaynames/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
247248

248249
require('@formatjs/intl-numberformat/polyfill');
249-
require('@formatjs/intl-numberformat/locale-data/nl.js'); // use your language files
250+
require('@formatjs/intl-numberformat/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
250251

251252
require('@formatjs/intl-datetimeformat/polyfill');
252-
require('@formatjs/intl-datetimeformat/locale-data/nl.js'); // use your language files
253+
require('@formatjs/intl-datetimeformat/locale-data/en.js'); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
253254

254255
require('@formatjs/intl-datetimeformat/add-golden-tz.js');
255256

0 commit comments

Comments
 (0)