mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 14:25:08 +08:00
Expose setGlobalVariable in CatalystInstance interface
Summary: this helps with cleaning up some tests public Reviewed By: astreet Differential Revision: D2816285 fb-gh-sync-id: 37c4da7bdb3c8b5439184316bb5a8939160b40a3
This commit is contained in:
committed by
facebook-github-bot-5
parent
48117ce6c4
commit
a9a7c78899
@@ -12,6 +12,7 @@ package com.facebook.react.bridge;
|
||||
import java.util.Collection;
|
||||
|
||||
import com.facebook.react.bridge.queue.CatalystQueueConfiguration;
|
||||
import com.facebook.react.common.annotations.VisibleForTesting;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.react.common.annotations.VisibleForTesting;
|
||||
|
||||
@@ -66,4 +67,7 @@ public interface CatalystInstance {
|
||||
boolean supportsProfiling();
|
||||
void startProfiler(String title);
|
||||
void stopProfiler(String title, String filename);
|
||||
|
||||
@VisibleForTesting
|
||||
void setGlobalVariable(String propName, String jsonValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user