mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Change ViewManager.measure() to use Context instead of ReactContext
Summary: It seems like ReactContext isn't actually needed in measure functions. Changing the signature of ViewManager.measure() to take a Context instead. Reviewed By: lunaleaps Differential Revision: D14940330 fbshipit-source-id: b29987fd1d7f9c191a5f26138151082ca61cb351
This commit is contained in:
1 parent
12d58d431a
commit
f81d77c102
5 files changed
+8
-6
No files matched your search
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import com.facebook.react.bridge.BaseJavaModule;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
@@ -234,7 +235,7 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
}
|
||||
|
||||
public long measure(
|
||||
ReactContext context,
|
||||
Context context,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
float width,
|
||||
|
||||
Reference in new issue
Block a user