Browse Source

Update roadmap (#3043)

* Rename to onChildWillAppear

* update roadmap
Guy Carmeli 6 years ago
parent
commit
1d7da536a6
No account linked to committer's email address

+ 54
- 54
docs/README.md View File

@@ -75,67 +75,67 @@ v2 is written in Test Driven Development. We have a test for every feature inclu
75 75
 | dismissModal           |     ✅       |	✅|
76 76
 | showOverlay             |  ✅         |	✅ |
77 77
 | dismissOverlay             |  ✅   |	✅ |
78
-| customTransition            |   ✅        |	[Contribute](/docs/WorkingLocally.md) |
78
+| customTransition            |✅|✅|
79 79
 | Screen Visibility        | ✅     |✅|
80 80
 | async commands (await push)     |  ✅        |✅   |
81 81
 
82 82
 ### Navigation Options
83 83
 
84
-|       topBar         | iOS  | Android | Contributor(s) |
85
-|--------------------|:----:|:-----:|-----|
86
-| title         |        	✅    | 	✅| Wix|
87
-| textColor    | ✅     |     ✅        | Wix|
88
-| textFontSize       |    ✅      |     ✅        | Wix|
89
-| textFontFamily     |      ✅     |     ✅        | Wix |
90
-| backgroundColor    |  ✅       |     ✅         | Wix|
91
-| buttonColor         |    ✅      |✅| Wix|
92
-| hidden             |   ✅      |     ✅        | Wix|
93
-| hideOnScroll         |  ✅    |✅| Wix|
94
-| translucent         |   ✅     |     [Contribute](/docs/WorkingLocally.md)        | Wix|
95
-| transparent         |  ✅        |     [Contribute](/docs/WorkingLocally.md)        | |
96
-| noBorder             |    ✅     |     [Contribute](/docs/WorkingLocally.md)        |  @gtchance|
84
+|       topBar         | iOS  | Android |
85
+|--------------------|:----:|:-----:|
86
+| title         |        	✅    | 	✅|
87
+| textColor    | ✅     |     ✅        |
88
+| textFontSize       |    ✅      |     ✅|
89
+| textFontFamily     |      ✅     |     ✅|
90
+| backgroundColor    |  ✅       |     ✅|
91
+| buttonColor         |    ✅      |✅|
92
+| hidden             |   ✅      |     ✅|
93
+| hideOnScroll         |  ✅    |✅||
94
+| translucent         |   ✅     |     [Contribute](/docs/WorkingLocally.md)        |
95
+| transparent         |  ✅        |     [Contribute](/docs/WorkingLocally.md)        |
96
+| noBorder             |    ✅     |     [Contribute](/docs/WorkingLocally.md)        |
97 97
 | drawUnder         |    ✅     |✅||
98
-| blur               |    ✅     |      [Contribute](/docs/WorkingLocally.md)       | @gtchance|
98
+| blur               |    ✅     |      [Contribute](/docs/WorkingLocally.md)       |
99 99
 | custom component          |✅     |✅|
100
-| background component          |✅     |[Contribute](/docs/WorkingLocally.md)| |
101
-| subtitleColor            |   ✅      |[Contribute](/docs/WorkingLocally.md)| |
102
-| subtitleFontFamily      |    [Contribute](/docs/WorkingLocally.md)    |     [Contribute](/docs/WorkingLocally.md)| |
103
-| largeTitle (iOS 11)      |    ✅     |     /iOS Specific       | |
104
-
105
-|       tabBar         | iOS  | Android | Contributor(s) |
106
-|--------------------|:----:|:-----:|-----|
107
-| drawUnder          |    ✅     |✅| |
108
-| hidden   |   ✅     |    ✅        | @gtchance |
109
-| tabBadge          |       ✅    |✅| Wix|
110
-| currentTab by Index          |       ✅    | ✅ | Wix |
111
-| currentTab by componentId         |✅| ✅ | Wix |
112
-
113
-|       buttons        | iOS  | Android | Contributor(s) |
114
-|--------------------|:----:|:-----:|-----|
115
-| id    |   ✅      |✅|@Johan-dutoit|
116
-| testID   |     ✅   |✅| @Johan-dutoit|
117
-| color             |    ✅     |✅| @Johan-dutoit|
118
-| icon          |   ✅     |✅| @Johan-dutoit|
119
-| disableTint        |    ✅       |✅| @Johan-dutoit|
120
-| fontSize        |    ✅       |✅| @Johan-dutoit |
121
-| fontWeight        |    ✅       |    [Contribute](/docs/WorkingLocally.md)   | |
122
-
123
-|       statusBar        | iOS  | Android | Contributor(s) |
124
-|--------------------|:----:|:-----:|-----|
125
-| textColorScheme    |✅|[Contribute](/docs/WorkingLocally.md) | |
126
-| textColorSchemeSingleScreen   |✅|     / iOS specific      | |
127
-| blur             |    ✅     |      [Contribute](/docs/WorkingLocally.md)       | @gtchance |
128
-| hideWithTopBar          |   ✅     |     [Contribute](/docs/WorkingLocally.md)       | @gtchance |
129
-| hidden         |    ✅       |     [Contribute](/docs/WorkingLocally.md)      | Wix |
130
-
131
-|       other        | iOS  | Android | Contributor(s) |
132
-|--------------------|:----:|:-----:|-----|
133
-| screenBackgroundColor        |   ✅     | ✅ | |
134
-| orientation       |    ✅     |✅| Wix |
135
-| disabledBackGesture        |    ✅     |    / iOS specific     | |
136
-| screenBackgroundImageName        |   ✅      |    [Contribute](/docs/WorkingLocally.md)        | |
137
-| rootBackgroundImageName              |    ✅     |    [Contribute](/docs/WorkingLocally.md)       | |
138
-| sideMenuVisible          |      ✅   |✅| |
100
+| background component          |✅     ||
101
+| subtitleColor            |   ✅      ||
102
+| subtitleFontFamily      |✅|✅|
103
+| largeTitle (iOS 11)      |    ✅     |     /iOS Specific       |
104
+
105
+|       tabBar         | iOS  | Android |
106
+|--------------------|:----:|:-----:|
107
+| drawUnder          |    ✅     |✅|
108
+| hidden   |   ✅     |    ✅        |
109
+| tabBadge          |       ✅    |✅|
110
+| currentTab by Index          |       ✅    | ✅ |
111
+| currentTab by componentId         |✅| ✅ |
112
+
113
+|       buttons        | iOS  | Android |
114
+|--------------------|:----:|:-----:|
115
+| id    |   ✅      |✅|
116
+| testID   |     ✅   |✅|
117
+| color             |    ✅     |✅|
118
+| icon          |   ✅     |✅|
119
+| disableTint        |    ✅       |✅|
120
+| fontSize        |    ✅       |✅|
121
+| fontWeight        |    ✅       |    [Contribute](/docs/WorkingLocally.md)   |
122
+
123
+|       statusBar        | iOS  | Android |
124
+|--------------------|:----:|:-----:|
125
+| textColorScheme    |✅|[Contribute](/docs/WorkingLocally.md) |
126
+| textColorSchemeSingleScreen   |✅|     / iOS specific      |
127
+| blur             |    ✅     |      [Contribute](/docs/WorkingLocally.md)       |
128
+| hideWithTopBar          |   ✅     |     [Contribute](/docs/WorkingLocally.md)       |
129
+| hidden         |    ✅       |     [Contribute](/docs/WorkingLocally.md)      |
130
+
131
+|       other        | iOS  | Android |
132
+|--------------------|:----:|:-----:|
133
+| screenBackgroundColor        |   ✅     | ✅ |
134
+| orientation       |    ✅     |✅|
135
+| disabledBackGesture        |    ✅     |    / iOS specific     |
136
+| screenBackgroundImageName        |   ✅      |    [Contribute](/docs/WorkingLocally.md)        |
137
+| rootBackgroundImageName              |    ✅     |    [Contribute](/docs/WorkingLocally.md)       |
138
+| sideMenuVisible          |      ✅   |✅|
139 139
 
140 140
 
141 141
 ## v1 vs v2 Feature Comparison

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/presentation/OptionsPresenter.java View File

@@ -104,7 +104,7 @@ public class OptionsPresenter {
104 104
         if (topTabOptions.fontFamily != null) topBar.setTopTabFontFamily(topTabOptions.tabIndex, topTabOptions.fontFamily);
105 105
     }
106 106
 
107
-    public void onChildWillPop(Options disappearing, Options appearing) {
107
+    public void onChildWillAppear(Options appearing, Options disappearing) {
108 108
         if (disappearing.topBar.visible.isTrueOrUndefined() && appearing.topBar.visible.isFalse()) {
109 109
             if (disappearing.topBar.animate.isTrueOrUndefined() && disappearing.animations.pop.enable.isTrueOrUndefined()) {
110 110
                 topBar.hideAnimate(disappearing.animations.pop.topBar);

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/StackController.java View File

@@ -141,7 +141,7 @@ public class StackController extends ParentController<StackLayout> {
141 141
         disappearing.onViewWillDisappear();
142 142
         appearing.onViewWillAppear();
143 143
         getView().addView(appearing.getView(), 0);
144
-        getView().onChildWillPop(disappearing.options, appearing.options);
144
+        getView().onChildWillAppear(appearing, disappearing);
145 145
 
146 146
         if (disappearing.options.animations.pop.enable.isTrueOrUndefined()) {
147 147
             animator.pop(disappearing.getView(), () -> finishPopping(disappearing, listener));

+ 3
- 2
lib/android/app/src/main/java/com/reactnativenavigation/views/StackLayout.java View File

@@ -8,6 +8,7 @@ import com.reactnativenavigation.parse.Options;
8 8
 import com.reactnativenavigation.presentation.OptionsPresenter;
9 9
 import com.reactnativenavigation.viewcontrollers.ReactViewCreator;
10 10
 import com.reactnativenavigation.viewcontrollers.TopBarButtonController;
11
+import com.reactnativenavigation.viewcontrollers.ViewController;
11 12
 import com.reactnativenavigation.viewcontrollers.topbar.TopBarBackgroundViewController;
12 13
 import com.reactnativenavigation.viewcontrollers.topbar.TopBarController;
13 14
 import com.reactnativenavigation.views.titlebar.TitleBarReactViewCreator;
@@ -40,8 +41,8 @@ public class StackLayout extends RelativeLayout {
40 41
         optionsPresenter.applyChildOptions(options, child);
41 42
     }
42 43
 
43
-    public void onChildWillPop(Options disappearing, Options appearing) {
44
-        optionsPresenter.onChildWillPop(disappearing, appearing);
44
+    public void onChildWillAppear(ViewController appearing, ViewController disappearing) {
45
+        optionsPresenter.onChildWillAppear(appearing.options, disappearing.options);
45 46
     }
46 47
 
47 48
     public void mergeChildOptions(Options options, Component child) {

+ 1
- 1
lib/android/app/src/test/java/com/reactnativenavigation/viewcontrollers/StackControllerTest.java View File

@@ -155,7 +155,7 @@ public class StackControllerTest extends BaseTest {
155 155
                 uut.pop(new CommandListenerAdapter() {
156 156
                     @Override
157 157
                     public void onSuccess(String childId) {
158
-                        verify(stackLayout[0], times(1)).onChildWillPop(child2.options, child1.options);
158
+                        verify(stackLayout[0], times(1)).onChildWillAppear(child1, child2);
159 159
                     }
160 160
                 });
161 161
             }