- 
  Notifications
 You must be signed in to change notification settings 
- Fork 0
Commit cbf7b1d
authored
Notes screen and note details page implementation (#4)
* Create main panel for notes
The application's main panel contains all the notes added by the user.
They are displayed in the grid, with number of columns adapted to the
width of the window.
Note, that the Window size needs to be considered instead of Screen's.
That is due to having the Page in RNW rendered as a root with certain
and fixed dimensions.
Currently only the testing data are given to the FlatList, so there's a
possibility to test it by displaying any content.
In further development that data should be taken from the database.
* Create basic widget for single note on the main screen
This commit introduces the initial widget containing single note
presented on the main panel.
This widget has the reponsibility to:
* contain the summary of the note: ID, Title and shortened post message
* act as the button to enter the full post screen
* Fix: Widget size reset on main panel's reentry
* Implement note full screen
* Define explicit application entry page
* Implement navigation native module
This native module is responsible for handling the navigation between
screens which are not connected through the NavigationView and it's
Frame.
This situation happens, when there's a need to navigate to separate
screen, but at the same time get rid of navigation panel.
This native module is called NoteWidgetClickHandler because it is
designed explicitly for the NotesPage <-> NoteWidgetDetailsPage
navigation both-ways.
* Implement going back function for NoteWidgetClickHandler
The native module should also provide the system with the ability to go
back.
This is now done by the GoToNotesScreen function, which navigates to the
MainPage.
NOTE: MainPage needs to be selected, as only this page contains the
NavigationFrame and is able to display the navigation top pane.
This is why there's a starting point implemented when MainPage is
navigated to.
* Add new page for Note details screen
* Navigate back on 'Go back...' button press
* Add the basic implementation to the NoteWidgetDetailsPanel
* Suppress the navigation animation when going back to NotesPage1 parent 58e7a46 commit cbf7b1d
File tree
15 files changed
+328
-9
lines changed- src- Widgets
 
- windows/ReactNativeNotes- NativeModules
 
15 files changed
+328
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 9 | 9 |  | |
| 10 | 10 |  | |
| 11 | 11 |  | |
| 12 | + | ||
| 12 | 13 |  | |
| 13 | 14 |  | |
| 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 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 6 | 6 |  | |
| 7 | 7 |  | |
| 8 | 8 |  | |
| 9 | + | ||
| 10 | + | ||
| 9 | 11 |  | |
| 10 | - | ||
| 11 | 12 |  | |
| 12 | 13 |  | |
| 14 | + | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + | ||
| 18 | + | ||
| 19 | + | ||
| 13 | 20 |  | |
| 14 | 21 |  | |
| 15 | 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 | + | ||
| 16 | 51 |  | |
| 17 | 52 |  | |
| 18 | 53 |  | |
| 19 | - | ||
| 20 | - | ||
| 54 | + | ||
| 55 | + | ||
| 21 | 56 |  | |
| 22 | 57 |  | |
| 23 | 58 |  | |
| 24 | 59 |  | |
| 25 | 60 |  | |
| 26 | 61 |  | |
| 27 | 62 |  | |
| 63 | + | ||
| 64 | + | ||
| 65 | + | ||
| 66 | + | ||
| 67 | + | ||
| 68 | + | ||
| 28 | 69 |  | |
| 29 | 70 |  | |
| 30 | 71 |  | |
|  | |||
| 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 | + | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + | ||
| 72 | + | ||
| 73 | + | ||
| 74 | + | ||
| 75 | + | ||
| 76 | + | ||
| 77 | + | ||
| 78 | + | ||
| 79 | + | ||
| 80 | + | ||
| 81 | + | ||
| 82 | + | ||
| 83 | + | ||
| 84 | + | ||
| 85 | + | ||
| 86 | + | ||
| 87 | + | ||
| 88 | + | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | + | ||
| 93 | + | ||
| 94 | + | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 53 | 53 |  | |
| 54 | 54 |  | |
| 55 | 55 |  | |
| 56 | - | ||
| 56 | + | ||
| 57 | 57 |  | |
| 58 | 58 |  | |
| 59 | 59 |  | |
|  | |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 15 | 15 |  | |
| 16 | 16 |  | |
| 17 | 17 |  | |
| 18 | + | ||
| 18 | 19 |  | |
| 19 | 20 |  | |
| 20 | 21 |  | |
|  | |||
| 34 | 35 |  | |
| 35 | 36 |  | |
| 36 | 37 |  | |
| 37 | - | ||
| 38 | + | ||
| 38 | 39 |  | |
| 39 | 40 |  | |
| 40 | 41 |  | |
| 41 | 42 |  | |
| 42 | 43 |  | |
| 43 | 44 |  | |
| 44 | - | ||
| 45 | - | ||
| 46 | - | ||
| 45 | + | ||
| 46 | + | ||
| 47 | + | ||
| 48 | + | ||
| 49 | + | ||
| 50 | + | ||
| 51 | + | ||
| 52 | + | ||
| 53 | + | ||
| 54 | + | ||
| 55 | + | ||
| 56 | + | ||
| 47 | 57 |  | |
| 48 | 58 |  | |
| 49 | 59 |  | |
|  | |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 14 | 14 |  | |
| 15 | 15 |  | |
| 16 | 16 |  | |
| 17 | - | ||
| 17 | + | ||
| 18 | 18 |  | |
| 19 | 19 |  | |
| 20 | 20 |  | |
|  | |||
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 | |
|---|---|---|---|
|  | |||
| 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 | + | ||
0 commit comments