import MaterialCommunityIcons from '@expo/vector-icons/build/MaterialCommunityIcons';
import { createStackNavigator } from '@react-navigation/stack';
import * as React from 'react';
import Colors from './constants/Colors';
import SelectScreen from './screens/SelectScreen';
import RunTests from './screens/TestScreen';
// @tsapeta: This navigator is also being used by `bare-expo` app,
// so make sure it still works there once you change something here.
const Stack = createStackNavigator();
const spec = {
animation: 'timing',
config: {
duration: 0,
},
};
const shouldDisableTransition = !!global.DETOX;
// Disable transition animations in E2E tests
const transitionSpec = shouldDisableTransition ? { open: spec, close: spec } : undefined;
export default function AppNavigator(props) {
React.useLayoutEffect(() => {
if (props.navigation) {
props.navigation.setOptions({
title: 'Tests',
tabBarLabel: 'Tests',
tabBarIcon: ({ focused }) => {
const color = focused ? Colors.activeTintColor : Colors.inactiveTintColor;
return ;
},
})
}
}, [props.navigation]);
return (
);
}