|
@@ -1,349 +0,0 @@
|
1
|
|
-package com.reactnativenavigation;
|
2
|
|
-
|
3
|
|
-import android.app.Activity;
|
4
|
|
-import android.support.v7.app.AppCompatActivity;
|
5
|
|
-import android.view.View;
|
6
|
|
-import android.view.ViewGroup;
|
7
|
|
-
|
8
|
|
-import com.reactnativenavigation.layout.Container;
|
9
|
|
-import com.reactnativenavigation.layout.ContainerStackLayout;
|
10
|
|
-import com.reactnativenavigation.layout.LayoutFactory;
|
11
|
|
-import com.reactnativenavigation.layout.LayoutNode;
|
12
|
|
-import com.reactnativenavigation.layout.SideMenuLayout;
|
13
|
|
-import com.reactnativenavigation.layout.bottomtabs.BottomTabs;
|
14
|
|
-import com.reactnativenavigation.layout.bottomtabs.BottomTabsCreator;
|
15
|
|
-import com.reactnativenavigation.layout.bottomtabs.BottomTabsLayout;
|
16
|
|
-
|
17
|
|
-import org.junit.Before;
|
18
|
|
-import org.junit.Test;
|
19
|
|
-import org.junit.runner.RunWith;
|
20
|
|
-import org.robolectric.Robolectric;
|
21
|
|
-import org.robolectric.RobolectricTestRunner;
|
22
|
|
-
|
23
|
|
-import java.util.Arrays;
|
24
|
|
-import java.util.Collections;
|
25
|
|
-import java.util.HashMap;
|
26
|
|
-import java.util.List;
|
27
|
|
-
|
28
|
|
-import static org.assertj.core.api.Java6Assertions.assertThat;
|
29
|
|
-import static org.mockito.ArgumentMatchers.eq;
|
30
|
|
-import static org.mockito.Mockito.mock;
|
31
|
|
-import static org.mockito.Mockito.verify;
|
32
|
|
-import static org.mockito.Mockito.when;
|
33
|
|
-
|
34
|
|
-@RunWith(RobolectricTestRunner.class)
|
35
|
|
-public class LayoutFactoryTest {
|
36
|
|
-
|
37
|
|
- private final static String NODE_ID = "myUniqueId";
|
38
|
|
- private final static String REACT_ROOT_VIEW_KEY = "myName";
|
39
|
|
-
|
40
|
|
- private final static String OTHER_NODE_ID = "anotherUniqueId";
|
41
|
|
- private final static String OTHER_REACT_ROOT_VIEW_KEY = "anotherName";
|
42
|
|
-
|
43
|
|
- private Activity activity;
|
44
|
|
- private View mockView;
|
45
|
|
- private View otherMockView;
|
46
|
|
- private LayoutFactory.ReactRootViewCreator reactRootViewCreator;
|
47
|
|
-
|
48
|
|
- @Before
|
49
|
|
- public void setUp() {
|
50
|
|
- activity = Robolectric.buildActivity(AppCompatActivity.class).get();
|
51
|
|
- mockView = new View(activity);
|
52
|
|
- otherMockView = new View(activity);
|
53
|
|
- reactRootViewCreator = mock(LayoutFactory.ReactRootViewCreator.class);
|
54
|
|
- }
|
55
|
|
-
|
56
|
|
- @Test
|
57
|
|
- public void returnsContainerThatHoldsTheRootView() throws Exception {
|
58
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
59
|
|
- final LayoutNode node = createContainerNode();
|
60
|
|
-
|
61
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(node);
|
62
|
|
-
|
63
|
|
- assertThat(result).isInstanceOf(Container.class);
|
64
|
|
- TestUtils.assertViewChildren(result, mockView);
|
65
|
|
- }
|
66
|
|
-
|
67
|
|
- @Test
|
68
|
|
- public void returnsContainerStack() throws Exception {
|
69
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
70
|
|
- final LayoutNode containerNode = createContainerNode();
|
71
|
|
- final LayoutNode stackNode = createContainerStackNode(containerNode);
|
72
|
|
-
|
73
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(stackNode);
|
74
|
|
-
|
75
|
|
- assertThat(result).isInstanceOf(ContainerStackLayout.class);
|
76
|
|
- ViewGroup container = (ViewGroup) TestUtils.assertViewChildrenCount(result, 1).get(0);
|
77
|
|
- TestUtils.assertViewChildren(container, mockView);
|
78
|
|
- }
|
79
|
|
-
|
80
|
|
- @Test
|
81
|
|
- public void returnsContainerStackWithMultipleViews() throws Exception {
|
82
|
|
- final View mockView1 = mock(View.class);
|
83
|
|
- final View mockView2 = mock(View.class);
|
84
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView1);
|
85
|
|
- when(reactRootViewCreator.create(eq(OTHER_NODE_ID), eq(OTHER_REACT_ROOT_VIEW_KEY))).thenReturn(mockView2);
|
86
|
|
-
|
87
|
|
- final LayoutNode containerNode1 = createContainerNode(NODE_ID, REACT_ROOT_VIEW_KEY);
|
88
|
|
- final LayoutNode containerNode2 = createContainerNode(OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY);
|
89
|
|
- final LayoutNode stackNode = createContainerStackNode(containerNode1, containerNode2);
|
90
|
|
-
|
91
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(stackNode);
|
92
|
|
-
|
93
|
|
- assertThat(result).isInstanceOf(ContainerStackLayout.class);
|
94
|
|
- List<View> containers = TestUtils.assertViewChildrenCount(result, 2);
|
95
|
|
- ViewGroup container1 = (ViewGroup) containers.get(0);
|
96
|
|
- ViewGroup container2 = (ViewGroup) containers.get(1);
|
97
|
|
- TestUtils.assertViewChildren(container1, mockView1);
|
98
|
|
- TestUtils.assertViewChildren(container2, mockView2);
|
99
|
|
- }
|
100
|
|
-
|
101
|
|
- @Test
|
102
|
|
- public void returnsSideMenuRoot() throws Exception {
|
103
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
104
|
|
- final LayoutNode containerNode = createSideMenuContainerNode(Arrays.asList(createContainerNode()));
|
105
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(containerNode);
|
106
|
|
- assertThat(result).isInstanceOf(SideMenuLayout.class);
|
107
|
|
- }
|
108
|
|
-
|
109
|
|
- @Test
|
110
|
|
- public void hasContentContainer() throws Exception {
|
111
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
112
|
|
- LayoutNode contentContainer = createContainerNode();
|
113
|
|
- final LayoutNode sideMenu = createSideMenuContainerNode(Arrays.asList(contentContainer));
|
114
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(sideMenu);
|
115
|
|
- assertThat(result.getChildAt(0)).isInstanceOf(Container.class);
|
116
|
|
- }
|
117
|
|
-
|
118
|
|
- @Test
|
119
|
|
- public void hasLeftMenu() throws Exception {
|
120
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
121
|
|
- LayoutNode sideMenuLeft = createSideMenuLeftNode();
|
122
|
|
- final LayoutNode sideMenu = createSideMenuContainerNode(Arrays.asList(sideMenuLeft));
|
123
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(sideMenu);
|
124
|
|
- assertThat(result.getChildAt(0)).isInstanceOf(Container.class);
|
125
|
|
- }
|
126
|
|
-
|
127
|
|
- @Test
|
128
|
|
- public void hasRightMenu() throws Exception {
|
129
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
130
|
|
- LayoutNode sideMenuRight = createSideMenuRightNode();
|
131
|
|
- final LayoutNode sideMenu = createSideMenuContainerNode(Arrays.asList(sideMenuRight));
|
132
|
|
- final ViewGroup result = (ViewGroup) createLayoutFactory().create(sideMenu);
|
133
|
|
- assertThat(result.getChildAt(0)).isInstanceOf(Container.class);
|
134
|
|
- }
|
135
|
|
-
|
136
|
|
- @Test
|
137
|
|
- public void returnsSingleTabContent() throws Exception {
|
138
|
|
- BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
139
|
|
- when(bottomTabsMock.size()).thenReturn(0);
|
140
|
|
-
|
141
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
142
|
|
- final LayoutNode containerNode = createContainerStackNode(createContainerNode());
|
143
|
|
- final LayoutNode tabNode = createBottomTabNode(containerNode);
|
144
|
|
-
|
145
|
|
- final View result = createLayoutFactory(bottomTabsMock).create(tabNode);
|
146
|
|
-
|
147
|
|
- verify(bottomTabsMock).add("#0");
|
148
|
|
-
|
149
|
|
- assertThat(result).isInstanceOf(BottomTabsLayout.class);
|
150
|
|
- ViewGroup containerStack = (ViewGroup) TestUtils.assertViewChildrenCount((BottomTabsLayout) result, 1).get(0);
|
151
|
|
- Container container = (Container) TestUtils.assertViewChildrenCount(containerStack, 1).get(0);
|
152
|
|
- View view = TestUtils.assertViewChildrenCount(container, 1).get(0);
|
153
|
|
- assertThat(view).isEqualTo(mockView);
|
154
|
|
- }
|
155
|
|
-
|
156
|
|
- @Test
|
157
|
|
- public void returnsTwoTabContent() throws Exception {
|
158
|
|
- BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
159
|
|
- when(bottomTabsMock.size()).thenReturn(0, 1);
|
160
|
|
-
|
161
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
162
|
|
- final LayoutNode firstTabRootNode = createContainerStackNode(createContainerNode(NODE_ID, REACT_ROOT_VIEW_KEY));
|
163
|
|
-
|
164
|
|
- when(reactRootViewCreator.create(eq(OTHER_NODE_ID), eq(OTHER_REACT_ROOT_VIEW_KEY))).thenReturn(otherMockView);
|
165
|
|
- final LayoutNode secondTabRootNode = createContainerStackNode(createContainerNode(OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY));
|
166
|
|
-
|
167
|
|
- final LayoutNode tabNode = createBottomTabNode(firstTabRootNode, secondTabRootNode);
|
168
|
|
-
|
169
|
|
- final View result = createLayoutFactory(bottomTabsMock).create(tabNode);
|
170
|
|
-
|
171
|
|
- assertThat(result).isInstanceOf(BottomTabsLayout.class);
|
172
|
|
- verify(bottomTabsMock).add(eq("#0"));
|
173
|
|
- verify(bottomTabsMock).add(eq("#1"));
|
174
|
|
- }
|
175
|
|
-
|
176
|
|
- @Test
|
177
|
|
- public void pushScreenToFirstBottomTab() {
|
178
|
|
- BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
179
|
|
- when(bottomTabsMock.size()).thenReturn(0, 1);
|
180
|
|
-
|
181
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
182
|
|
- final LayoutNode firstTabContainerStack = createContainerStackNode(createContainerNode(NODE_ID, REACT_ROOT_VIEW_KEY));
|
183
|
|
-
|
184
|
|
- final LayoutNode tabNode = createBottomTabNode(firstTabContainerStack);
|
185
|
|
- final BottomTabsLayout bottomTabsContainer = (BottomTabsLayout) createLayoutFactory(bottomTabsMock).create(tabNode);
|
186
|
|
- verify(bottomTabsMock).add(eq("#0"));
|
187
|
|
-
|
188
|
|
- View pushedReactView = new View(activity);
|
189
|
|
- when(reactRootViewCreator.create(eq("pushedReactViewId"), eq("pushedReactViewKey"))).thenReturn(pushedReactView);
|
190
|
|
- View view = createLayoutFactory().create(createContainerNode("pushedReactViewId", "pushedReactViewKey"));
|
191
|
|
- bottomTabsContainer.push(view);
|
192
|
|
-
|
193
|
|
- ViewGroup containerStack = (ViewGroup) TestUtils.assertViewChildrenCount(bottomTabsContainer, 1).get(0);
|
194
|
|
- ViewGroup container = (ViewGroup) TestUtils.assertViewChildrenCount(containerStack, 1).get(0);
|
195
|
|
- View result = TestUtils.assertViewChildrenCount(container, 1).get(0);
|
196
|
|
- assertThat(result).isEqualTo(pushedReactView);
|
197
|
|
- }
|
198
|
|
-
|
199
|
|
- @Test
|
200
|
|
- public void popScreenFromFirstBottomTab() {
|
201
|
|
- BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
202
|
|
- when(bottomTabsMock.size()).thenReturn(0, 1);
|
203
|
|
-
|
204
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
205
|
|
- final LayoutNode firstTabContainerStack = createContainerStackNode(createContainerNode(NODE_ID, REACT_ROOT_VIEW_KEY));
|
206
|
|
-
|
207
|
|
- final LayoutNode tabNode = createBottomTabNode(firstTabContainerStack);
|
208
|
|
- final BottomTabsLayout bottomTabsContainer = (BottomTabsLayout) createLayoutFactory(bottomTabsMock).create(tabNode);
|
209
|
|
- verify(bottomTabsMock).add(eq("#0"));
|
210
|
|
-
|
211
|
|
- pushContainer(bottomTabsContainer, "pushedReactViewId", "pushedReactViewKey", new View(activity));
|
212
|
|
-
|
213
|
|
- bottomTabsContainer.pop();
|
214
|
|
-
|
215
|
|
- ViewGroup containerStack = (ViewGroup) TestUtils.assertViewChildrenCount(bottomTabsContainer, 1).get(0);
|
216
|
|
- ViewGroup container = (ViewGroup) TestUtils.assertViewChildrenCount(containerStack, 1).get(0);
|
217
|
|
- View result = TestUtils.assertViewChildrenCount(container, 1).get(0);
|
218
|
|
- assertThat(result).isEqualTo(mockView);
|
219
|
|
- }
|
220
|
|
-
|
221
|
|
- @Test
|
222
|
|
- public void pushScreenToScreenStackLayout() throws Exception {
|
223
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
224
|
|
- final LayoutNode container = createContainerNode();
|
225
|
|
- final LayoutNode stackNode = createContainerStackNode(container);
|
226
|
|
- final ContainerStackLayout containerStackLayout = (ContainerStackLayout) createLayoutFactory().create(stackNode);
|
227
|
|
-
|
228
|
|
- when(reactRootViewCreator.create(eq(OTHER_NODE_ID), eq(OTHER_REACT_ROOT_VIEW_KEY))).thenReturn(otherMockView);
|
229
|
|
- final LayoutNode pushedContainer = createContainerNode(OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY);
|
230
|
|
- containerStackLayout.push(createLayoutFactory().create(pushedContainer));
|
231
|
|
-
|
232
|
|
- ViewGroup result = (ViewGroup) TestUtils.assertViewChildrenCount(containerStackLayout, 1).get(0);
|
233
|
|
- assertThat(result.getChildAt(0)).isEqualTo(otherMockView);
|
234
|
|
- }
|
235
|
|
-
|
236
|
|
- @Test
|
237
|
|
- public void pushTwoScreensToStackLayout() throws Exception {
|
238
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
239
|
|
- final LayoutNode container = createContainerNode();
|
240
|
|
- final LayoutNode stackNode = createContainerStackNode(container);
|
241
|
|
- final ContainerStackLayout containerStackLayout = (ContainerStackLayout) createLayoutFactory().create(stackNode);
|
242
|
|
-
|
243
|
|
- View first = new View(activity);
|
244
|
|
- pushContainer(containerStackLayout, OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY, first);
|
245
|
|
-
|
246
|
|
- View second = new View(activity);
|
247
|
|
- pushContainer(containerStackLayout, "secondPushedScreenId", "secondPushedScreenKey", second);
|
248
|
|
-
|
249
|
|
- ViewGroup result = (ViewGroup) TestUtils.assertViewChildrenCount(containerStackLayout, 1).get(0);
|
250
|
|
- assertThat(result.getChildAt(0)).isEqualTo(second);
|
251
|
|
- }
|
252
|
|
-
|
253
|
|
- @Test
|
254
|
|
- public void popTwoScreensFromStackLayout() throws Exception {
|
255
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
256
|
|
- final LayoutNode container = createContainerNode();
|
257
|
|
- final LayoutNode stackNode = createContainerStackNode(container);
|
258
|
|
- final ContainerStackLayout containerStackLayout = (ContainerStackLayout) createLayoutFactory().create(stackNode);
|
259
|
|
-
|
260
|
|
- pushContainer(containerStackLayout, OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY, new View(activity));
|
261
|
|
- pushContainer(containerStackLayout, "secondPushedScreenId", "secondPushedScreenKey", new View(activity));
|
262
|
|
-
|
263
|
|
- containerStackLayout.pop();
|
264
|
|
- containerStackLayout.pop();
|
265
|
|
-
|
266
|
|
- ViewGroup result = (ViewGroup) TestUtils.assertViewChildrenCount(containerStackLayout, 1).get(0);
|
267
|
|
- assertThat(result.getChildAt(0)).isEqualTo(mockView);
|
268
|
|
- }
|
269
|
|
-
|
270
|
|
- private void pushContainer(ContainerStackLayout containerStackLayout, String screenId, String reactRootViewKey, View rootView) {
|
271
|
|
- when(reactRootViewCreator.create(eq(screenId), eq(reactRootViewKey))).thenReturn(rootView);
|
272
|
|
- View pushedContainer = createLayoutFactory().create(createContainerNode(screenId, reactRootViewKey));
|
273
|
|
- containerStackLayout.push(pushedContainer);
|
274
|
|
- }
|
275
|
|
-
|
276
|
|
- private void pushContainer(BottomTabsLayout containerStackLayout, String screenId, String reactRootViewKey, View rootView) {
|
277
|
|
- when(reactRootViewCreator.create(eq(screenId), eq(reactRootViewKey))).thenReturn(rootView);
|
278
|
|
- View pushedContainer = createLayoutFactory().create(createContainerNode(screenId, reactRootViewKey));
|
279
|
|
- containerStackLayout.push(pushedContainer);
|
280
|
|
- }
|
281
|
|
-
|
282
|
|
- @Test
|
283
|
|
- public void popScreenFromScreenStackLayout() {
|
284
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
285
|
|
- final LayoutNode container = createContainerNode();
|
286
|
|
- final LayoutNode stackNode = createContainerStackNode(container);
|
287
|
|
- final ContainerStackLayout containerStackLayout = (ContainerStackLayout) createLayoutFactory().create(stackNode);
|
288
|
|
-
|
289
|
|
- when(reactRootViewCreator.create(eq(OTHER_NODE_ID), eq(OTHER_REACT_ROOT_VIEW_KEY))).thenReturn(otherMockView);
|
290
|
|
- final LayoutNode pushedContainer = createContainerNode(OTHER_NODE_ID, OTHER_REACT_ROOT_VIEW_KEY);
|
291
|
|
- containerStackLayout.push(createLayoutFactory().create(pushedContainer));
|
292
|
|
-
|
293
|
|
- containerStackLayout.pop();
|
294
|
|
- ViewGroup result = (ViewGroup) TestUtils.assertViewChildrenCount(containerStackLayout, 1).get(0);
|
295
|
|
- assertThat(result.getChildAt(0)).isEqualTo(mockView);
|
296
|
|
- }
|
297
|
|
-
|
298
|
|
- @Test(expected = IllegalArgumentException.class)
|
299
|
|
- public void throwsExceptionForUnknownType() throws Exception {
|
300
|
|
- when(reactRootViewCreator.create(eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
|
301
|
|
- final LayoutNode node = new LayoutNode(NODE_ID, "***unknownType***", Collections.<String, Object>emptyMap());
|
302
|
|
-
|
303
|
|
- createLayoutFactory().create(node);
|
304
|
|
- }
|
305
|
|
-
|
306
|
|
- private LayoutFactory createLayoutFactory() {
|
307
|
|
- return createLayoutFactory(null);
|
308
|
|
- }
|
309
|
|
-
|
310
|
|
- private LayoutFactory createLayoutFactory(BottomTabs bottomTabs) {
|
311
|
|
- BottomTabsCreator bottomTabsCreator = null;
|
312
|
|
- if (bottomTabs != null) {
|
313
|
|
- bottomTabsCreator = mock(BottomTabsCreator.class);
|
314
|
|
- when(bottomTabsCreator.create()).thenReturn(bottomTabs);
|
315
|
|
- }
|
316
|
|
-
|
317
|
|
- return new LayoutFactory(activity, reactRootViewCreator, bottomTabsCreator);
|
318
|
|
- }
|
319
|
|
-
|
320
|
|
- private LayoutNode createContainerNode() {
|
321
|
|
- return createContainerNode(NODE_ID, REACT_ROOT_VIEW_KEY);
|
322
|
|
- }
|
323
|
|
-
|
324
|
|
- private LayoutNode createSideMenuLeftNode() {
|
325
|
|
- List<LayoutNode> children = Arrays.asList(createContainerNode());
|
326
|
|
- return new LayoutNode("SideMenuLeft", children);
|
327
|
|
- }
|
328
|
|
-
|
329
|
|
- private LayoutNode createSideMenuRightNode() {
|
330
|
|
- List<LayoutNode> children = Arrays.asList(createContainerNode());
|
331
|
|
- return new LayoutNode("SideMenuRight", children);
|
332
|
|
- }
|
333
|
|
-
|
334
|
|
- private LayoutNode createContainerNode(final String id, final String name) {
|
335
|
|
- return new LayoutNode(id, "Container", new HashMap<String, Object>() {{ put("name", name); }});
|
336
|
|
- }
|
337
|
|
-
|
338
|
|
- private LayoutNode createSideMenuContainerNode(List<LayoutNode> children) {
|
339
|
|
- return new LayoutNode("SideMenuRoot", children);
|
340
|
|
- }
|
341
|
|
-
|
342
|
|
- private LayoutNode createContainerStackNode(LayoutNode... children) {
|
343
|
|
- return new LayoutNode("ContainerStack", Arrays.asList(children));
|
344
|
|
- }
|
345
|
|
-
|
346
|
|
- private LayoutNode createBottomTabNode(LayoutNode... children) {
|
347
|
|
- return new LayoutNode("BottomTabs", Arrays.asList(children));
|
348
|
|
- }
|
349
|
|
-}
|