- 
  Notifications
 You must be signed in to change notification settings 
- Fork 0
Commit 58e7a46
authored
Main layout of the application (#3)
* Make the App a main layout
The main layout of the application is divided into sections, each
containing crucial options and features.
The main App class component should be responsible only for calling
widgets provided by separate components' classes.
* Divide application into Components
The initial thought is to divide the application into three main panels,
each providing separate functinalities:
* UserAccountPanel - responsbile for handling user's login/logout
 actions, user's info displaying, user's account options
* LeftOptionsPanel - panel containing options related to the notes:
 adding, removing, etc.
* NotesMainPanel - responsible for displaying the main content of the
 app - Notes. Each note will be represented as a Touchable widget with
 UI elements.
This commit adds the components only with the Placeholder text in them.
* Create initial layout of panels
Each panel has been provided with styles (width, height, most basic
behavior) and it has been marked with the border to mark it's position
in the application window.
The Placeholder text has been replaced with the panel's name.
* Rename LeftOptionsPanel to ApplicationSettingsPanel
* Convert JS Components registration into function calls
* Create pages for each of the Application component
The architecture of the whole application system is based on the
navigation between separate components implemented in the React Native.
These components are to be rendered as the UWP's Page content, just like
in the original RNW application.
The difference is, that in this approach each RN Component will be
rendered inside separate Page as it's own ReactNative Root View.
This approach requires all Components to have the separate Page
implemented, each containing XAML scheme, IDL implementation and it's
code-behind implemented in native C++.
* Wrap application in NavigationView
The NavigationView is a native UWP control which is able to easily
create navigation panel and provides developer with embedded event
handlers.
More can be found here:
https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/navigationview
Using this control each page given as a tag is converted into TypeName
and directly invoked as a type to navigate to.
* Move all components imports to the index
* Add Slide animation when switching between pages1 parent 3a49f7a commit 58e7a46
File tree
23 files changed
+439
-53
lines changed- src
- windows/ReactNativeNotes
23 files changed
+439
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 1 | 1 |  | |
| 2 | - | ||
| 3 | - | ||
| 4 | - | ||
| 5 | 2 |  | |
| 6 | 3 |  | |
| 7 | 4 |  | |
| 8 | 5 |  | |
| 9 | 6 |  | |
| 10 | 7 |  | |
| 11 | 8 |  | |
| 12 | - | ||
| 13 | 9 |  | |
| 14 | - | ||
| 15 | 10 |  | |
| 16 | 11 |  | |
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | 12 |  | |
| 24 | 13 |  | |
| 25 | 14 |  | |
| 26 | 15 |  | |
| 27 | 16 |  | |
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 17 | + | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + | ||
| 38 | 21 |  | |
| 39 | - | ||
| 22 | + | ||
| 40 | 23 |  | |
| 41 | 24 |  | |
| 42 | 25 |  | |
| 43 | 26 |  | |
| 44 | 27 |  | |
| 45 | - | ||
| 46 | - | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - | ||
| 28 | + | ||
| 29 | + | ||
| 30 | + | ||
| 50 | 31 |  | |
| 51 | - | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 60 | - | ||
| 61 | - | ||
| 62 | - | ||
| 63 | - | ||
| 64 | 32 |  | |
| 65 | 33 |  | |
| 66 | 34 |  | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 6 | 6 |  | |
| 7 | 7 |  | |
| 8 | 8 |  | |
| 9 | + | ||
| 10 | + | ||
| 11 | + | ||
| 12 | + | ||
| 9 | 13 |  | |
| 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 | + | ||
| 54 | + | ||
| 55 | + | ||
| 56 | + | ||
| 57 | + | ||
| 58 | + | ||
| 59 | + | ||
| 60 | + | ||
| 61 | + | ||
| 62 | + | ||
| 63 | + | ||
| 64 | + | ||
| 65 | + | ||
| 66 | + | ||
| 67 | + | ||
| 68 | + | ||
| 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 | + | ||
| 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 | + | ||
| 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 | + | ||
| 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 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 1 | + | ||
| 2 | + | ||
| 3 | + | ||
| 4 | + | ||
| 5 | + | ||
| 6 | + | ||
| 7 | + | ||
| 8 | + | ||
| 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 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 15 | 15 |  | |
| 16 | 16 |  | |
| 17 | 17 |  | |
| 18 | - | ||
| 19 | 18 |  | |
| 20 | - | ||
| 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 | + | ||
0 commit comments