Browse Source

fixing the error that closed the app in production due to NativeStack and react-native-gesture-handler

master
Joselito Lima 1 year ago
parent
commit
8313878e09
  1. 4
      src/app/navigation/AccountNavigator.js
  2. 4
      src/app/navigation/AppNavigator.js
  3. 4
      src/app/navigation/AuthNavigator.js
  4. 4
      src/app/navigation/DataNavigator.js
  5. 4
      src/app/navigation/FeedNavigator.js
  6. 4
      src/app/navigation/ForecastNavigator.js
  7. 4
      src/app/navigation/MessagesNavigator.js
  8. 4
      src/app/navigation/SharingDataNavigator.js
  9. 4
      src/app/navigation/SharingDataOptionsNavigator.js
  10. 2
      src/app/screens/MapFormScreen.js
  11. 4
      src/package.json

4
src/app/navigation/AccountNavigator.js

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import AccountScreen from "../screens/AccountScreen"; import AccountScreen from "../screens/AccountScreen";
import PluviometerRegisterScreen from "../screens/PluviometerRegisterScreen"; import PluviometerRegisterScreen from "../screens/PluviometerRegisterScreen";
import MapFormScreen from "../screens/MapFormScreen"; import MapFormScreen from "../screens/MapFormScreen";
@ -12,7 +12,7 @@ import ActivateInstitutionShowCode from "../screens/ActivateInstitutionShowCode"
import PasswordRecovery from "../screens/PasswordRecoveryScreen"; import PasswordRecovery from "../screens/PasswordRecoveryScreen";
import PasswordRecoveryChangePswd from "../screens/PasswordRecoveryChangePswdScreen"; import PasswordRecoveryChangePswd from "../screens/PasswordRecoveryChangePswdScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const AccountNavigator = () => ( const AccountNavigator = () => (
<Stack.Navigator initialRouteName="Profile"> <Stack.Navigator initialRouteName="Profile">

4
src/app/navigation/AppNavigator.js

@ -9,12 +9,12 @@ import ForecastNavigator from "./ForecastNavigator";
import NewListingButton from "./NewListingButton"; import NewListingButton from "./NewListingButton";
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator";
import { NavigationContainer } from "@react-navigation/native"; import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Abbout from "../screens/Abbout"; import Abbout from "../screens/Abbout";
import colors from "../config/colors"; import colors from "../config/colors";
const Tab = createBottomTabNavigator(); const Tab = createBottomTabNavigator();
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
function TabScreens() { function TabScreens() {
return ( return (

4
src/app/navigation/AuthNavigator.js

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import LoginScreen from "../screens/LoginScreen"; import LoginScreen from "../screens/LoginScreen";
import RegisterScreen from "../screens/RegisterScreen"; import RegisterScreen from "../screens/RegisterScreen";
import PasswordRecovery from "../screens/PasswordRecoveryScreen" import PasswordRecovery from "../screens/PasswordRecoveryScreen"
@ -7,7 +7,7 @@ import colors from "../config/colors";
import UserAgreement from "../screens/UserAgreement"; import UserAgreement from "../screens/UserAgreement";
import PasswordRecoveryChangePswd from "../screens/PasswordRecoveryChangePswdScreen"; import PasswordRecoveryChangePswd from "../screens/PasswordRecoveryChangePswdScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const AuthNavigator = () => ( const AuthNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/DataNavigator.js

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import DataScreen from "../screens/DataScreen"; import DataScreen from "../screens/DataScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const DataNavigator = () => ( const DataNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/FeedNavigator.js

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import MapFeedScreen from "../screens/MapFeedScreen"; import MapFeedScreen from "../screens/MapFeedScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const FeedNavigator = () => ( const FeedNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/ForecastNavigator.js

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import ForecastScreen from "../screens/ForecastScreen"; import ForecastScreen from "../screens/ForecastScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const ForecastNavigator = () => ( const ForecastNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/MessagesNavigator.js

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import MessagesScreen from "../screens/MessagesScreen"; import MessagesScreen from "../screens/MessagesScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const MessagesNavigator = () => ( const MessagesNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/SharingDataNavigator.js

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import SharingDataScreen from "../screens/SharingDataScreen"; import SharingDataScreen from "../screens/SharingDataScreen";
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
const SharingDataNavigator = () => ( const SharingDataNavigator = () => (
<Stack.Navigator> <Stack.Navigator>

4
src/app/navigation/SharingDataOptionsNavigator.js

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { createStackNavigator } from "@react-navigation/stack";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import RainSharingDataScreen from '../screens/RainSharingDataScreen'; import RainSharingDataScreen from '../screens/RainSharingDataScreen';
import RiverFloodSharingDataScreen from '../screens/RiverFloodSharingDataScreen'; import RiverFloodSharingDataScreen from '../screens/RiverFloodSharingDataScreen';
import SharingFloodZonesScreen from '../screens/SharingFloodZonesScreen'; import SharingFloodZonesScreen from '../screens/SharingFloodZonesScreen';
@ -7,7 +7,7 @@ import PluviometerSharingDataScreen from '../screens/PluviometerSharingDataScree
import SharingDataNavigator from './SharingDataNavigator'; import SharingDataNavigator from './SharingDataNavigator';
import MapFormScreen from '../screens/MapFormScreen'; import MapFormScreen from '../screens/MapFormScreen';
const Stack = createStackNavigator();
const Stack = createNativeStackNavigator();
function SharingDataOptionsNavigator() { function SharingDataOptionsNavigator() {
return ( return (

2
src/app/screens/MapFormScreen.js

@ -1,4 +1,4 @@
import React, { useContext, useState, useEffect, memo } from "react";
import React, { useContext, useState } from "react";
import { StyleSheet, View, Text, Image } from "react-native"; import { StyleSheet, View, Text, Image } from "react-native";
import * as Location from "expo-location"; import * as Location from "expo-location";

4
src/package.json

@ -23,7 +23,7 @@
"@react-native-community/netinfo": "9.3.10", "@react-native-community/netinfo": "9.3.10",
"@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/bottom-tabs": "^6.0.9",
"@react-navigation/native": "^6.0.6", "@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"@react-navigation/native-stack": "^6.9.16",
"apisauce": "^2.1.2", "apisauce": "^2.1.2",
"babel-core": "^6.26.3", "babel-core": "^6.26.3",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
@ -52,7 +52,7 @@
"react-native-chart-kit": "^6.11.0", "react-native-chart-kit": "^6.11.0",
"react-native-dropdown-picker": "^5.2.3", "react-native-dropdown-picker": "^5.2.3",
"react-native-flash-message": "^0.2.0", "react-native-flash-message": "^0.2.0",
"react-native-gesture-handler": "~2.12.0",
"react-native-gesture-handler": "~1.10.2",
"react-native-google-places-autocomplete": "^2.4.1", "react-native-google-places-autocomplete": "^2.4.1",
"react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-maps": "1.7.1", "react-native-maps": "1.7.1",

Loading…
Cancel
Save