Browse Source

Adding back btn in header for register screen

master
GabrielTrettel 3 years ago
parent
commit
c92f6d82d9
  1. 3
      src/app/navigation/AuthNavigator.js

3
src/app/navigation/AuthNavigator.js

@ -2,6 +2,7 @@ import React from "react";
import { createStackNavigator } from "@react-navigation/stack"; import { createStackNavigator } from "@react-navigation/stack";
import LoginScreen from "../screens/LoginScreen"; import LoginScreen from "../screens/LoginScreen";
import RegisterScreen from "../screens/RegisterScreen"; import RegisterScreen from "../screens/RegisterScreen";
import colors from "../config/colors";
const Stack = createStackNavigator(); const Stack = createStackNavigator();
@ -15,7 +16,7 @@ const AuthNavigator = () => (
<Stack.Screen <Stack.Screen
name="Register" name="Register"
component={RegisterScreen} component={RegisterScreen}
options={{ headerShown: false }}
options={{ headerTitle: "" }} //headerStyle: {backgroundColor: colors.primary} }}
/> />
</Stack.Navigator> </Stack.Navigator>
); );

Loading…
Cancel
Save