Hi,
I create a Native Module that I use in JavaScript and I want to access to a public string that is in the MainView class from the Native Module.
Something like this:
public partial class MainView
{
public string MyString; // This is the string
public MainView() {
InitializeUX();
}
}
public class MyLogModule : NativeModule
{
public MyLogModule()
{
AddMember(new NativeFunction("Log", (NativeCallback)Log));
}
static object Log(Context c, object[] args)
{
// How can I access to MyString from here???
return null;
}
}