Skip to content

Commit 8ce85da

Browse files
Update README.md
1 parent 83028e4 commit 8ce85da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ In your app starting entrypoint e.g. `./index.js` or even better use a `index.an
311311

312312
```javascript
313313
// on top of your index.android.js file
314-
const isAndroid = require('react-native').Platform.OS === 'android';
315-
const isHermesEnabled = !!global.HermesInternal;
314+
const isAndroid = require('react-native').Platform.OS === 'android'; // this line is only needed if you don't use an .android.js file
315+
const isHermesEnabled = !!global.HermesInternal; // this line is only needed if you don't use an .android.js file
316316

317317
// in your index.js file
318-
if (isHermesEnabled || isAndroid) {
318+
if (isHermesEnabled || isAndroid) { // this line is only needed if you don't use an .android.js file
319319

320320
require('@formatjs/intl-getcanonicallocales/polyfill');
321321
require('@formatjs/intl-locale/polyfill');
@@ -356,7 +356,7 @@ if (isHermesEnabled || isAndroid) {
356356
// require("expo-localization").timezone
357357
// );
358358
}
359-
}
359+
} // this line is only needed if you don't use an .android.js file
360360
```
361361

362362
## Contributing

0 commit comments

Comments
 (0)