From 70fb45393eb032fb76dff009510c4c60e70293c4 Mon Sep 17 00:00:00 2001 From: Mengjue Wang Date: Wed, 20 Jul 2016 15:25:57 -0700 Subject: [PATCH] Provide I18n Module in OSS 3/3 Summary: @public expose context for I18nManagerModule and I18nUtil Reviewed By: dmmiller Differential Revision: D3575706 --- .../com/facebook/react/flat/FlatUIImplementation.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java index 741246fc7..161419319 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java @@ -65,7 +65,12 @@ public class FlatUIImplementation extends UIImplementation { FlatUIViewOperationQueue operationsQueue = new FlatUIViewOperationQueue( reactContext, nativeViewHierarchyManager); - return new FlatUIImplementation(reactImageManager, viewManagerRegistry, operationsQueue); + return new FlatUIImplementation( + reactContext, + reactImageManager, + viewManagerRegistry, + operationsQueue + ); } /** @@ -77,10 +82,11 @@ public class FlatUIImplementation extends UIImplementation { private @Nullable ReactImageManager mReactImageManager; private FlatUIImplementation( + ReactApplicationContext reactContext, @Nullable ReactImageManager reactImageManager, ViewManagerRegistry viewManagers, FlatUIViewOperationQueue operationsQueue) { - super(viewManagers, operationsQueue); + super(reactContext, viewManagers, operationsQueue); mStateBuilder = new StateBuilder(operationsQueue); mReactImageManager = reactImageManager; }