This commit is contained in:
Erik Schlegel 2015-12-15 15:52:06 -05:00 коммит произвёл Eric Rozell
Родитель cfab58aa90
Коммит fc72593eaf
3 изменённых файлов: 52 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,12 @@
namespace ReactNative.Bridge
{
public interface ICSharpJSExecutor
{
void close();
void executeApplicationScript(string script, string sourceURL);
string executeJSCall(string methodName, string jsonArgsArray);
}
}

Просмотреть файл

@ -0,0 +1,31 @@

namespace ReactNative.Bridge
{
/// <summary>
/// Abstract class responsible for brokering communication between native and React Naitve components
/// </summary>
public abstract class JavaScriptExecuter
{
private ICSharpJSExecutor mJSExecutor;
/// <summary>
/// Sets the JS executor
/// </summary>
/// <param name="executor"></param>
public JavaScriptExecuter(ICSharpJSExecutor executor)
{
mJSExecutor = executor;
}
/// <summary>
/// Closes the executor
/// </summary>
public abstract void close();
/// <summary>
/// Instantiates the executor
/// </summary>
/// <param name="executor"></param>
public abstract void initialize(ICSharpJSExecutor executor);
}
}

Просмотреть файл

@ -0,0 +1,9 @@

namespace ReactNative.Bridge.Executors
{
public class ProxyJavaScriptExecutor : ICSharpJSExecutor
{
}
}