Browse Source

Fixing deprecated inports and functions

master
GabrielTrettel 3 years ago
parent
commit
137118a28c
  1. 7
      src/App.js
  2. 0
      src/app/assets/rain/.Rhistory
  3. 2
      src/app/context/CurrentLocationContext.js
  4. 57833
      src/package-lock.json

7
src/App.js

@ -1,10 +1,9 @@
import React, { useState, useEffect} from "react";
import { NavigationContainer } from "@react-navigation/native";
import { NavigationContainer } from '@react-navigation/native';
import navigationTheme from "./app/navigation/navigationTheme";
import "./app/config/globals.js";
import { AppLoading } from "expo";
import AppLoading from 'expo-app-loading';
import FlashMessage from "react-native-flash-message";
import AppNavigator from "./app/navigation/AppNavigator";
import EventLocationProvider from "./app/context/EventLocationContext";
@ -38,7 +37,7 @@ export default function App() {
if (!isReady && netInfo.isInternetReachable) {
return (
<AppLoading startAsync={restoreUser} onFinish={() => setIsReady(true)} />
<AppLoading startAsync={restoreUser} onFinish={() => setIsReady(true)} onError={(e) => console.log(e)} />
);
} else if (netInfo.isInternetReachable) {
global.formsSockets = useFiltering(global.location);

0
src/app/assets/rain/.Rhistory

2
src/app/context/CurrentLocationContext.js

@ -11,7 +11,7 @@ const CurrentLocationProvider = ({ children }) => {
//get user current location coordinates
const getCoordinates = async () => {
try {
const { granted } = await Location.requestPermissionsAsync();
const { granted } = await Location.requestForegroundPermissionsAsync();
if (!granted) return;

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

Loading…
Cancel
Save