Update Expo

This commit is contained in:
Adolfo Reyna
2023-08-24 23:11:34 -04:00
parent bdbf2f63c1
commit 30ba1af902
5 changed files with 3956 additions and 2690 deletions

View File

@@ -30,6 +30,7 @@ const getFeed = async () => {
let prevLink = ''; let prevLink = '';
const handleURL = (url, navigation) => { const handleURL = (url, navigation) => {
const { hostname, path, queryParams } = Linking.parse(url); const { hostname, path, queryParams } = Linking.parse(url);
if(!path) return;
if(path.includes("feed/post/")){ if(path.includes("feed/post/")){
const postid = path.substring(10); const postid = path.substring(10);
return navigation.navigate('SinglePost', { postid }); return navigation.navigate('SinglePost', { postid });

View File

@@ -20,8 +20,10 @@
"ios": { "ios": {
"supportsTablet": false, "supportsTablet": false,
"bundleIdentifier": "com.emi.social", "bundleIdentifier": "com.emi.social",
"associatedDomains": ["applinks:social.emmint.com"], "associatedDomains": [
"buildNumber": "1.1" "applinks:social.emmint.com"
],
"buildNumber": "1.2"
}, },
"android": { "android": {
"adaptiveIcon": { "adaptiveIcon": {
@@ -30,7 +32,7 @@
}, },
"package": "com.emi.social", "package": "com.emi.social",
"googleServicesFile": "./google-services.json", "googleServicesFile": "./google-services.json",
"versionCode": 5 "versionCode": 6
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"
@@ -43,7 +45,8 @@
"plugins": [ "plugins": [
[ [
"expo-notifications" "expo-notifications"
] ],
"expo-localization"
] ]
} }
} }

20
metro.config.js Normal file
View File

@@ -0,0 +1,20 @@
/* eslint-disable no-undef */
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
module.exports = (async () => {
const {
resolver: { sourceExts },
} = config;
return {
...config,
resolver: {
...config.resolver,
sourceExts: [...sourceExts, 'mjs'],
},
};
})();

6571
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,36 +10,37 @@
"eject": "expo eject" "eject": "expo eject"
}, },
"dependencies": { "dependencies": {
"@react-native-async-storage/async-storage": "~1.17.3", "@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/netinfo": "9.3.5", "@react-native-community/netinfo": "9.3.10",
"@react-navigation/bottom-tabs": "^6.2.0", "@react-navigation/bottom-tabs": "^6.2.0",
"@react-navigation/native": "^6.0.8", "@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.0", "@react-navigation/native-stack": "^6.5.0",
"assert": "^2.0.0", "assert": "^2.0.0",
"expo": "^47.0.8", "expo": "^49.0.8",
"expo-av": "~13.0.2", "expo-av": "~13.4.1",
"expo-dev-client": "~2.0.1", "expo-dev-client": "~2.4.8",
"expo-device": "~5.0.0", "expo-device": "~5.4.0",
"expo-image-picker": "~14.0.2", "expo-image-picker": "~14.3.2",
"expo-linking": "~3.3.1", "expo-linking": "~5.0.2",
"expo-localization": "~14.0.0", "expo-localization": "~14.3.0",
"expo-notifications": "~0.17.0", "expo-notifications": "~0.20.1",
"expo-status-bar": "~1.4.2", "expo-status-bar": "~1.6.0",
"expo-updates": "~0.15.6", "expo-updates": "~0.18.12",
"i18n-js": "^4.2.2", "i18n-js": "^4.2.0",
"moment": "^2.29.1", "moment": "^2.29.1",
"react": "18.1.0", "react": "18.2.0",
"react-dom": "18.1.0", "react-dom": "18.2.0",
"react-native": "0.70.8", "react-native": "0.72.4",
"react-native-autoheight-webview": "^1.6.1", "react-native-autoheight-webview": "^1.6.1",
"react-native-hyperlink": "0.0.19", "react-native-hyperlink": "0.0.19",
"react-native-paper": "^4.11.2", "react-native-paper": "^4.11.2",
"react-native-safe-area-context": "4.4.1", "react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.18.0", "react-native-screens": "~3.22.0",
"react-native-vector-icons": "^9.1.0", "react-native-vector-icons": "^9.1.0",
"react-native-web": "~0.18.7", "react-native-web": "~0.19.6",
"react-native-webview": "11.23.1", "react-native-webview": "13.2.2",
"valtio": "^1.4.0" "valtio": "^1.4.0",
"@expo/metro-config": "~0.10.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.19.3" "@babel/core": "^7.19.3"