Przeglądaj źródła

Fix syntax error: "screen" is read-only (#3237)

Juan Carlos Rojas 6 lat temu
rodzic
commit
04e52170fa

+ 1
- 1
src/deprecated/platformSpecificDeprecated.android.js Wyświetl plik

@@ -317,7 +317,7 @@ async function startTabBasedApp(params) {
317 317
   params.tabs.forEach(function(tab, idx) {
318 318
     if (tab.components) {
319 319
       const components = tab.components;
320
-      const screen = createBottomTabScreen(tab, idx, params)
320
+      let screen = createBottomTabScreen(tab, idx, params)
321 321
       const {label, icon} = screen;
322 322
       screen.screens = components.map(c => createBottomTabScreen({...c, icon, label}, idx, params));
323 323
       screen.screens.map((s, i) => addTitleBarBackButtonIfNeeded(s));