This repository was archived by the owner on Nov 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathReactView.cs
69 lines (58 loc) · 2.34 KB
/
ReactView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System.Collections.Generic;
using Xamarin.Forms;
namespace ReactNative.Forms.Views
{
public class ReactView : View
{
public static readonly BindableProperty PackagerUrlProperty = BindableProperty.Create(
propertyName: nameof(PackagerUrl),
returnType: typeof(string),
declaringType: typeof(ReactView),
defaultValue: null);
public string PackagerUrl
{
get { return (string)GetValue(PackagerUrlProperty); }
set { SetValue(PackagerUrlProperty, value); }
}
public static readonly BindableProperty BundleNameProperty = BindableProperty.Create(
propertyName: nameof(BundleName),
returnType: typeof(string),
declaringType: typeof(ReactView),
defaultValue: null);
public string BundleName
{
get { return (string)GetValue(BundleNameProperty); }
set { SetValue(BundleNameProperty, value); }
}
public static readonly BindableProperty ModulePathProperty = BindableProperty.Create(
propertyName: nameof(ModulePath),
returnType: typeof(string),
declaringType: typeof(ReactView),
defaultValue: null);
public string ModulePath
{
get { return (string)GetValue(ModulePathProperty); }
set { SetValue(ModulePathProperty, value); }
}
public static readonly BindableProperty ModuleNameProperty = BindableProperty.Create(
propertyName: nameof(ModuleName),
returnType: typeof(string),
declaringType: typeof(ReactView),
defaultValue: null);
public string ModuleName
{
get { return (string)GetValue(ModuleNameProperty); }
set { SetValue(ModuleNameProperty, value); }
}
public static readonly BindableProperty PropertiesProperty = BindableProperty.Create(
propertyName: nameof(Properties),
returnType: typeof(Dictionary<string, object>),
declaringType: typeof(ReactView),
defaultValue: new Dictionary<string, object>());
public Dictionary<string, object> Properties
{
get { return (Dictionary<string, object>)GetValue(PropertiesProperty); }
set { SetValue(PropertiesProperty, value); }
}
}
}