-
Notifications
You must be signed in to change notification settings - Fork 0
Commit d770b71
authored
[DRAFT] User account page & login screen (#10)
* Create the full layout of User's account page
* Implement file picker dialog for acount page
* Add user's data to the local storage
The user's data are kept in the local User instance which is pulled each
time the User's account page is entered.
The information can be used from the any other component via the Native
module.
* Catch the exception in case of general window failure
When trying to open the window on the separate thread (after launching
the coroutine) it is possible that there'll be the exception thrown by
the base.h implementation.
The reason for specifying the winrt::hresult_error is that it does not
inherits from the std::exception so it would be impossible to catch by
the universal exception.
* Fix: Invalid window handle due when opening FilePicker
The FilePicker when opened was throwing the "Invalid window handle" error.
This was caused by the native module thread affinity and the fact that
the FilePicker should be launched in the UI thread explicitly.
The fix for that is to launch the couroutine on the UI context using the
UIDispatcher method of React Native Windows.
for more details and the reasoning please check:
https://github.com/microsoft/react-native-windows/issues/7641
* Navigate between frames using UIDispatcher
* Remove user's avatar from the account page1 parent 95fb97b commit d770b71
File tree
8 files changed
+253
-19
lines changed- src
- windows/ReactNativeNotes
- NativeModules
- UserAccount
8 files changed
+253
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | - | ||
11 | 10 | | |
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 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 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
16 | 77 | | |
17 | 78 | | |
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
24 | 105 | | |
106 | + | ||
25 | 107 | | |
26 | 108 | | |
27 | 109 | | |
28 | 110 | | |
29 | 111 | | |
30 | 112 | | |
31 | 113 | | |
32 | - | ||
33 | - | ||
34 | - | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
35 | 133 | | |
36 | 134 | | |
37 | - | ||
38 | - | ||
39 | - | ||
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
40 | 153 | | |
41 | 154 | | |
42 | 155 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | - | ||
21 | + | ||
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | - | ||
28 | + | ||
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
39 | + | ||
40 | + | ||
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | + | ||
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
| |||
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
125 | - | ||
126 | - | ||
127 | - | ||
128 | - | ||
133 | + | ||
134 | + | ||
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | + | ||
43 | + | ||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | + | ||
9 | + | ||
10 | + | ||
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments