import { createStackNavigator } from '@react-navigation/stack'; import * as React from 'react'; import { MaterialCommunityIcons } from '@expo/vector-icons'; 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) { return ( { const color = focused ? Colors.activeTintColor : Colors.inactiveTintColor; return ; }, transitionSpec, headerBackTitle: 'Select', headerTitleStyle: { color: 'black', }, headerTintColor: Colors.tintColor, headerStyle: { borderBottomWidth: 0.5, borderBottomColor: 'rgba(0,0,0,0.1)', boxShadow: '', }, }}> ); }