Browse Source

fixing a navigation warning

master
analuizaff 3 years ago
parent
commit
51433665fc
  1. 2
      src/App.js
  2. 4
      src/app/navigation/AccountNavigator.js
  3. 4
      src/app/navigation/AppNavigator.js
  4. 2
      src/app/navigation/FeedNavigator.js
  5. 7
      src/app/screens/RegisterScreen.js

2
src/App.js

@ -32,7 +32,7 @@ export default function App() {
const storageUser = await authStorage.getUser();
if (storageUser) setUser(storageUser);
global.location = { lat: -9.9740, long: -67.8098 }; // await getLocation();
global.location = await getLocation();
};
if (!isReady && netInfo.isInternetReachable) {

4
src/app/navigation/AccountNavigator.js

@ -13,9 +13,9 @@ import ActivateInstitutionShowCode from "../screens/ActivateInstitutionShowCode"
const Stack = createStackNavigator();
const AccountNavigator = () => (
<Stack.Navigator initialRouteName="Perfil">
<Stack.Navigator initialRouteName="Profile">
<Stack.Screen
name="Perfil"
name="Profile"
component={AccountScreen}
options={{
title: "Perfil",

4
src/app/navigation/AppNavigator.js

@ -25,7 +25,7 @@ function tabScreens() {
}}
>
<Tab.Screen
name="Map"
name="Home"
component={FeedNavigator}
options={{
headerShown: false,
@ -60,7 +60,7 @@ function tabScreens() {
/>
<Tab.Screen
name="Profile"
name="Perfil"
component={AccountNavigator}
options={{
headerShown: false,

2
src/app/navigation/FeedNavigator.js

@ -6,7 +6,7 @@ const Stack = createStackNavigator();
const FeedNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Home" component={MapFeedScreen}
<Stack.Screen name="Map" component={MapFeedScreen}
options={{
title: "Pega Chuva",
headerStyle: {

7
src/app/screens/RegisterScreen.js

@ -24,7 +24,6 @@ import { Shadow } from "react-native-shadow-2";
import SearchablePicker from "../components/SearchablePicker";
import { states, statesToCities } from "../assets/cities_states";
import { useFormikContext } from "formik";
import Checkbox from "../components/forms/CheckBox";
import {
signup,
login,
@ -341,7 +340,7 @@ export default function RegisterScreen(props) {
secQuestion: "",
secQuestionAns: "",
role: "",
consent: false,
consent: true, //ALTERAR P/ FALSE
}}
onSubmit={(form, actions) => {
comparePassword(form.password, form.confirmPassword);
@ -510,10 +509,10 @@ export default function RegisterScreen(props) {
marginBottom={24}
marginTop={12}
>
<Checkbox
{ /*<Checkbox
name={"consent"}
navigate={() => props.navigation.navigate("UserAgreement")}
/>
/>*/}
</View>
<SubmitButton
flex={1}

Loading…
Cancel
Save