diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java index 767900d3d00..c2c54b93df4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java @@ -8,6 +8,7 @@ package com.facebook.react.modules.i18nmanager; import android.content.Context; +import android.os.Build; import com.facebook.fbreact.specs.NativeI18nManagerSpec; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; @@ -36,7 +37,12 @@ public class I18nManagerModule extends NativeI18nManagerSpec { @Override public Map getTypedExportedConstants() { final Context context = getReactApplicationContext(); - final Locale locale = context.getResources().getConfiguration().locale; + final Locale locale; + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { + locale = context.getResources().getConfiguration().getLocales().get(0); + } else { + locale = context.getResources().getConfiguration().locale; + } final Map constants = MapBuilder.newHashMap(); constants.put("isRTL", sharedI18nUtilInstance.isRTL(context));