@@ -2,8 +2,6 @@ import React, { useEffect } from 'react';
22import { StyleSheet } from 'react-native' ;
33import { Navigation , NavigationFunctionComponent } from 'react-native-navigation' ;
44import { WebView } from 'react-native-webview' ;
5- import testIDs from '../testIDs' ;
6- import Screens from './Screens' ;
75
86const loadOrder : number [ ] = [ ] ;
97const listeners : Set < ( ) => void > = new Set ( ) ;
@@ -64,37 +62,14 @@ const WebViewTab: NavigationFunctionComponent<Props> = ({ componentId, tabIndex,
6462WebViewTab . options = {
6563 topBar : {
6664 title : { text : 'WebView Tab' } ,
67- leftButtons : [ { id : 'back' , text : 'Back' } ] ,
65+ leftButtons : [ { id : 'back' , icon : require ( '../../img/clear.png' ) } ] ,
6866 } ,
6967} ;
7068
7169Navigation . registerComponent ( 'TabsTogetherTest.WebViewTab' , ( ) => WebViewTab ) ;
7270
7371const goBackToPlayground = ( ) => {
74- Navigation . setRoot ( {
75- root : {
76- bottomTabs : {
77- options : { bottomTabs : { testID : testIDs . MAIN_BOTTOM_TABS } } ,
78- children : [
79- { stack : { children : [ { component : { name : 'Layouts' } } ] , options : { bottomTab : { text : 'Layouts' , icon : require ( '../../img/layouts.png' ) } } } } ,
80- { stack : { children : [ { component : { name : 'Options' } } ] , options : { bottomTab : { text : 'Options' , icon : require ( '../../img/options.png' ) } } } } ,
81- { stack : { id : 'NavigationTabStack' , children : [ { component : { name : 'Navigation' } } ] } } ,
82- ] ,
83- } ,
84- } ,
85- } ) ;
86- // Show the BottomTabs modal after restoring root
87- Navigation . showModal ( {
88- bottomTabs : {
89- children : [
90- { stack : { children : [ { component : { name : Screens . FirstBottomTabsScreen } } ] } } ,
91- { stack : { id : 'SecondTab' , children : [ { component : { name : Screens . SecondBottomTabsScreen } } ] } } ,
92- ] ,
93- options : {
94- bottomTabs : { testID : testIDs . BOTTOM_TABS } ,
95- } ,
96- } ,
97- } ) ;
72+ Navigation . dismissModal ( 'TabsTest' ) ;
9873} ;
9974
10075export const resetLoadOrder = ( ) => { loadOrder . length = 0 ; } ;
0 commit comments