From 248c642b1dc14b40bbe22c93e1b8e1f1e41fdb16 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Thu, 9 Sep 2021 11:08:07 -0300 Subject: [PATCH] Fixing key prop error in AccountScreen --- src/app/navigation/AccountNavigator.js | 8 +++--- src/app/screens/AccountScreen.js | 35 +++++++++++++++----------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/app/navigation/AccountNavigator.js b/src/app/navigation/AccountNavigator.js index 4e04229..9f379f8 100644 --- a/src/app/navigation/AccountNavigator.js +++ b/src/app/navigation/AccountNavigator.js @@ -1,7 +1,7 @@ import React from "react"; import { createStackNavigator } from "@react-navigation/stack"; import AccountScreen from "../screens/AccountScreen"; -import PluviometerRegisterScreen from '../screens/PluviometerRegisterScreen'; +import PluviometerRegisterScreen from "../screens/PluviometerRegisterScreen"; import MapFormScreen from "../screens/MapFormScreen"; import Abbout from "../screens/Abbout"; import ActivateInstitution from "../screens/ActivateInstitution"; @@ -42,7 +42,7 @@ const AccountNavigator = () => ( backgroundColor: "white", }, }} - /> + /> ( backgroundColor: "white", }, }} - /> + /> ( }, }} /> - - - {title} + + {title} + { console.log("7"); }, @@ -145,12 +148,14 @@ function AccountScreen(props) { {profileItems.map(({ icon, IconProvider, title, onPress }) => ( - + + + ))}