Browse Source

hiding headers

master
analuizaff 3 years ago
parent
commit
f107b48898
  1. 13
      src/app/navigation/AppNavigator.js
  2. 6683
      src/package-lock.json
  3. 3
      src/package.json

13
src/app/navigation/AppNavigator.js

@ -20,14 +20,15 @@ function tabScreens() {
return ( return (
<Tab.Navigator <Tab.Navigator
style={{ backgroundColor: "black" }} style={{ backgroundColor: "black" }}
tabBarOptions={{
activeTintColor: colors.primary,
screenOptions={{
tabBarActiveTintColor: colors.primary,
}} }}
> >
<Tab.Screen <Tab.Screen
name="Home"
component={FeedNavigator}
name="Map"
component={FeedNavigator}
options={{ options={{
headerShown: false,
tabBarIcon: ({ color, size }) => ( tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="home" color={color} size={size} /> <MaterialCommunityIcons name="home" color={color} size={size} />
), ),
@ -37,6 +38,7 @@ function tabScreens() {
name="SharingData" name="SharingData"
component={SharingDataOptionsNavigator} component={SharingDataOptionsNavigator}
options={({ navigation }) => ({ options={({ navigation }) => ({
headerShown: false,
tabBarButton: () => ( tabBarButton: () => (
<NewListingButton <NewListingButton
onPress={() => onPress={() =>
@ -58,9 +60,10 @@ function tabScreens() {
/> />
<Tab.Screen <Tab.Screen
name="Perfil"
name="Profile"
component={AccountNavigator} component={AccountNavigator}
options={{ options={{
headerShown: false,
tabBarIcon: ({ color, size }) => ( tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="account" color={color} size={size} /> <MaterialCommunityIcons name="account" color={color} size={size} />
), ),

6683
src/package-lock.json
File diff suppressed because it is too large
View File

3
src/package.json

@ -16,6 +16,7 @@
}, },
"dependencies": { "dependencies": {
"@expo/metro-config": "^0.2.8", "@expo/metro-config": "^0.2.8",
"@react-native-community/checkbox": "^0.5.9",
"@react-native-community/datetimepicker": "3.5.2", "@react-native-community/datetimepicker": "3.5.2",
"@react-native-community/masked-view": "^0.1.11", "@react-native-community/masked-view": "^0.1.11",
"@react-native-community/netinfo": "6.0.2", "@react-native-community/netinfo": "6.0.2",
@ -27,7 +28,7 @@
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
"eslint": "^8.1.0", "eslint": "^8.1.0",
"eslint-plugin-react": "^7.26.1", "eslint-plugin-react": "^7.26.1",
"expo": "^43.0.1",
"expo": "^43.0.2",
"expo-app-loading": "~1.2.1", "expo-app-loading": "~1.2.1",
"expo-asset": "~8.4.3", "expo-asset": "~8.4.3",
"expo-file-system": "~13.0.3", "expo-file-system": "~13.0.3",

Loading…
Cancel
Save