You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/intro.md
-75Lines changed: 0 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,81 +112,6 @@ We recommend Hermes with React Native >= 0.66 you won't need these polyfills at
112
112
113
113
:::
114
114
115
-
### Below React Native 0.66
116
-
117
-
You will need to add a polyfill for the Intl API on Android if:
118
-
119
-
- You have [Hermes](https://github.com/facebook/hermes/issues/23) enabled and are below React Native 0.66.
120
-
- You have [Hermes](https://github.com/facebook/hermes/issues/23) disabled and you want to support locales outside of en-US and you don't have the org.webkit:android-jsc-intl:+ variant enabled in your `app/build.gradle`.
If using [Expo](https://docs.expo.dev/), omit `react-native-localize` and use `expo install expo-localization` instead. Read more [here](https://docs.expo.dev/versions/latest/sdk/localization/#installation).
135
-
136
-
In your app starting entrypoint e.g. `./index.js` or even better use a `index.android.js` to prevent importing on iOS/web add the following code.
137
-
138
-
:::info Note
139
-
140
-
Don't forget to import the languages you want to support, in the example only english language is supported.
141
-
142
-
:::
143
-
144
-
```javascript
145
-
// on top of your index.android.js file
146
-
constisAndroid=require('react-native').Platform.OS==='android'// this line is only needed if you don't use an .android.js file
147
-
constisHermesEnabled=!!global.HermesInternal// this line is only needed if you don't use an .android.js file
148
-
149
-
// in your index.js file
150
-
if (isHermesEnabled || isAndroid) {
151
-
// this line is only needed if you don't use an .android.js file
0 commit comments