From 566e0553ca01f6a147b703badb480cc753f9493c Mon Sep 17 00:00:00 2001 From: Mengjue Wang Date: Wed, 20 Jul 2016 11:13:38 -0700 Subject: [PATCH] Provide I18n Module in OSS 2/3 Summary: Add module dependence into RN Reviewed By: dmmiller Differential Revision: D3575689 fbshipit-source-id: bc8cd221ffa4fcdbdab97051c0f8dedd387d6ee1 --- ReactAndroid/src/main/java/com/facebook/react/shell/BUCK | 1 + .../main/java/com/facebook/react/shell/MainReactPackage.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK b/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK index f2d025dbc..ea7e3322b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK @@ -20,6 +20,7 @@ android_library( react_native_target('java/com/facebook/react/modules/debug:debug'), react_native_target('java/com/facebook/react/modules/dialog:dialog'), react_native_target('java/com/facebook/react/modules/fresco:fresco'), + react_native_target('java/com/facebook/react/modules/i18nmanager:i18nmanager'), react_native_target('java/com/facebook/react/modules/image:image'), react_native_target('java/com/facebook/react/modules/intent:intent'), react_native_target('java/com/facebook/react/modules/location:location'), diff --git a/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java index e6f74c05a..ab46c7231 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java @@ -26,6 +26,7 @@ import com.facebook.react.modules.clipboard.ClipboardModule; import com.facebook.react.modules.datepicker.DatePickerDialogModule; import com.facebook.react.modules.dialog.DialogModule; import com.facebook.react.modules.fresco.FrescoModule; +import com.facebook.react.modules.i18nmanager.I18nManagerModule; import com.facebook.react.modules.image.ImageLoaderModule; import com.facebook.react.modules.intent.IntentModule; import com.facebook.react.modules.location.LocationModule; @@ -78,6 +79,7 @@ public class MainReactPackage implements ReactPackage { new DatePickerDialogModule(reactContext), new DialogModule(reactContext), new FrescoModule(reactContext), + new I18nManagerModule(reactContext), new ImageEditingManager(reactContext), new ImageLoaderModule(reactContext), new ImageStoreManager(reactContext),