Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/navigation/Navigator/AppNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const AppStack = createStackNavigator();
const App = (): React.ReactElement => {
return (
<NavigationContainer>
<AppStack.Navigator screenOptions={{ presentation: "modal" }}>
<AppStack.Navigator id="AppStack" screenOptions={{ presentation: "modal" }}>
<AppStack.Screen
name="AppStack"
options={{ headerShown: false }}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/BottomTab/ActNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ActDetailScreen from "../../../screens/ActDetail";
const Stack = createStackNavigator();

const ActNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="ActStack">
<Stack.Screen
name="ActTabNavigator"
options={ActTabNavigator.navigationOptions}
Expand Down
7 changes: 4 additions & 3 deletions app/navigation/Navigator/BottomTab/ActTabNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { StyleSheet, TouchableOpacity, View } from "react-native";
import { createMaterialTopTabNavigator } from "@react-navigation/material-top-tabs";
import { StackNavigationOptions } from "@react-navigation/stack";

import { Text } from "components";
import { t } from "utils";
Expand Down Expand Up @@ -75,19 +76,19 @@ const TopTabBar = ({ state, navigation }) => {
};

const ActTabNavigator: NavStatelessComponent = () => (
<Tab.Navigator tabBar={(props) => <TopTabBar {...props} />}>
<Tab.Navigator id="ActTab" tabBar={(props) => <TopTabBar {...props} />}>
{tabs.map((tab) => (
<Tab.Screen key={tab} name={tab} component={ActScreen} options={{ tabBarLabel: tab }} />
))}
</Tab.Navigator>
);

const navigationOptions = () => ({
const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.transitionBetweenScreenPresets,
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => <Text.H1>{t("ACT_SCREEN_TITLE")}</Text.H1>,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import BarCodeScanScreen from "../../../screens/BarCodeScan";
const Stack = createStackNavigator();

const AddEmissionNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="AddEmissionStack">
<Stack.Screen
name="CategorySelection"
options={CategorySelectionScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/BottomTab/BudgetNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AddEmissionScreen from "../../../screens/AddEmission";
const Stack = createStackNavigator();

const BudgetNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="BudgetStack">
<Stack.Screen name="Budget" options={BudgetScreen.navigationOptions} component={BudgetScreen} />
<Stack.Screen
name="MonthlyBudget"
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/BottomTab/EmissionsNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import RecurringEmissionsScreen from "../../../screens/RecurringEmissions";
const Stack = createStackNavigator();

const EmissionsNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="EmissionsStack">
<Stack.Screen
name="Emissions"
options={EmissionsScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/BottomTab/SettingsNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import LanguagesScreen from "../../../screens/Languages/LanguagesScreen";
const Stack = createStackNavigator();

const SettingsNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="SettingsStack">
<Stack.Screen
name="Settings"
options={SettingsScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/BottomTabNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const SettingsOptions = {
};

const AddEmissionOptions = {
showLabel: false,
tabBarLabel: t("ADD_EMISSION_SCREEN_TAB_NAME"),
tabBarIcon: ({ focused }) => <TabBarIcon focused={focused} name={"add-circle"} />,
};
Expand All @@ -44,6 +43,7 @@ const BottomTabNavigator = (): React.ReactElement => {
const { bottom } = useSafeAreaInsets();
return (
<BottomTab.Navigator
id="BottomTab"
initialRouteName={"EmissionsNavigator"}
screenOptions={{
headerShown: false,
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/InfoModalNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InfoModalScreen from "../../screens/InfoModal";
const Stack = createStackNavigator();

const InfoModalNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="InfoModalStack">
<Stack.Screen
name="InfoModal"
options={InfoModalScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/ModalNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import InfoModalScreen from "../../screens/InfoModal";
const Stack = createStackNavigator();

const ModalNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="ModalStack">
<Stack.Screen
name="ComingSoonModal"
options={ComingSoonScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/PeriodicityModalNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PeriodicityModalScreen from "../../screens/Periodicity";
const Stack = createStackNavigator();

const PeriodicityModalNavigator = (): React.ReactElement => (
<Stack.Navigator>
<Stack.Navigator id="PeriodicityModalStack">
<Stack.Screen
name="PeriodicityModal"
options={PeriodicityModalScreen.navigationOptions}
Expand Down
2 changes: 1 addition & 1 deletion app/navigation/Navigator/RootNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const RootNavigator = (): React.ReactElement => {
useSelector(userPreferences.selectors.getAcceptedTermsOfUseVersion);

return (
<Stack.Navigator>
<Stack.Navigator id="RootStack">
{hasAcceptedTermsOfUseVersion ? (
<Stack.Screen name="BottomTab" component={BottomTabNavigator} options={screenOptions} />
) : (
Expand Down
5 changes: 4 additions & 1 deletion app/navigation/navigate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const openAddEmissionNavigator = (navigation) => (props = {}) => {
};

const openEmissions = (navigation) => (props = {}) => {
navigation.navigate("Emissions", props);
navigation.navigate("EmissionsNavigator", {
screen: "Emissions",
params: props,
});
};

/* navigate - modal */
Expand Down
2 changes: 1 addition & 1 deletion app/screens/About/AboutScreen.navigationOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => (
<Text.Header style={Layout.androidNavTitle}>{t("ABOUT_SCREEN_TITLE")}</Text.Header>
),
Expand Down
2 changes: 1 addition & 1 deletion app/screens/Act/ActScreen.navigationOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => <Text.H1>{t("ACT_SCREEN_TITLE")}</Text.H1>,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => <Text.Header>{t("ACT_DETAIL_SCREEN_TITLE")}</Text.Header>,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerRight: () => <InfoButton />,
headerTitle: () => <Text.Header>{t("ADD_EMISSION_SCREEN_TITLE")}</Text.Header>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("BAR_CODE_SCAN_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.H1>{t("CATEGORY_SELECTION_SCREEN_TITLE")}</Text.H1>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const navigationOptions = (prop): StackNavigationOptions => {
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerRight: () => (showInfoButton ? <InfoButton /> : null),
headerTitle: () => (
<Text.Header>
Expand Down
2 changes: 1 addition & 1 deletion app/screens/Faq/FaqScreen.navigationOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => (
<Text.Header style={Layout.androidNavTitle}>{t("FAQ_SCREEN_TITLE")}</Text.Header>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("LANGUAGES_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("MONTHLY_BUDGET_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const navigationOptions = ({ route }) => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => (
<Text.Header style={[Layout.androidNavTitle, { textTransform: "capitalize" }]}>
Expand Down
2 changes: 1 addition & 1 deletion app/screens/MyData/MyDataScreen.navigationOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("MY_DATA_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("MY_LOCATION_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("NOTIFICATIONS_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => (
<Text.Header style={Layout.androidNavTitle}>
{t("RECURRING_EMISSIONS_SCREEN_TITLE")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const navigationOptions = (): StackNavigationOptions => ({
headerStyle: {
...ComponentsStyle.header,
},
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTintColor: Colors.grey100,
headerTitle: () => <Text.Header>{t("SUB_CATEGORY_SELECTION_SCREEN_TITLE")}</Text.Header>,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const navigationOptions = (): StackNavigationOptions => ({
...ComponentsStyle.header,
},
headerTintColor: Colors.grey100,
headerBackTitleVisible: false,
headerBackButtonDisplayMode: "minimal",
headerTitle: () => (
<Text.Header style={Layout.androidNavTitle}>{t("SUPPORT_US_SCREEN_TITLE")}</Text.Header>
),
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,30 @@
"@react-native-community/datetimepicker": "8.4.4",
"@react-native-community/slider": "5.0.1",
"@react-native-masked-view/masked-view": "0.3.2",
"@react-navigation/bottom-tabs": "6.4.0",
"@react-navigation/material-top-tabs": "6.3.0",
"@react-navigation/native": "6.0.13",
"@react-navigation/stack": "6.3.3",
"@react-navigation/bottom-tabs": "^7.8.12",
"@react-navigation/material-top-tabs": "^7.4.10",
"@react-navigation/native": "^7.1.25",
"@react-navigation/stack": "^7.6.12",
"@reduxjs/toolkit": "1.8.6",
"@sentry/react-native": "~7.2.0",
"babel-plugin-module-resolver": "^5.0.2",
"carbon-footprint": "1.6.0",
"expo": "^54.0.0",
"expo": "~54.0.29",
"expo-application": "~7.0.8",
"expo-asset": "~12.0.11",
"expo-camera": "~17.0.10",
"expo-constants": "~18.0.11",
"expo-constants": "~18.0.12",
"expo-device": "~8.0.10",
"expo-document-picker": "~14.0.8",
"expo-file-system": "~19.0.20",
"expo-file-system": "~19.0.21",
"expo-font": "~14.0.10",
"expo-linking": "~8.0.10",
"expo-localization": "~17.0.8",
"expo-notifications": "~0.32.14",
"expo-notifications": "~0.32.15",
"expo-sharing": "~14.0.8",
"expo-status-bar": "~3.0.9",
"expo-store-review": "~9.0.9",
"expo-updates": "~29.0.14",
"expo-updates": "~29.0.15",
"expo-web-browser": "~15.0.10",
"i18n-js": "3.5.1",
"lodash.throttle": "4.1.1",
Expand All @@ -75,7 +75,6 @@
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-svg": "15.12.1",
"react-native-tab-view": "3.3.0",
"react-native-worklets": "0.5.1",
"react-redux": "8.0.4",
"redux": "4.2.0",
Expand Down Expand Up @@ -111,7 +110,7 @@
"glob": "7.1.6",
"husky": "4.2.5",
"jest": "~29.7.0",
"jest-expo": "~54.0.14",
"jest-expo": "~54.0.16",
"markdown-it": "10.0.0",
"mockdate": "3.0.5",
"prettier": "2.1.2",
Expand Down
Loading