Skip to content

Commit 4617716

Browse files
committed
corrigindo o bug das imagens de tamanho grandes utilizando a compressão do arquivo
1 parent 1e4c031 commit 4617716

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/(app)/FormAdScreen.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ export default function FormAdScreen(){
389389
try{
390390
let result = await ImagePicker.launchImageLibraryAsync({
391391
mediaTypes: ImagePicker.MediaTypeOptions.Images,
392-
quality: 1,
392+
//Compressão da imagem abaixo
393+
quality: 0.1,
393394
allowsMultipleSelection: false,
394395
});
395396
if (!result.canceled) {

eas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"build": {
33
"preview": {
44
"env": {
5-
"EXPO_PUBLIC_BACKEND_URL": "http://4.228.42.88:8080"
5+
"EXPO_PUBLIC_BACKEND_URL": "http://20.201.76.30:8080"
66
},
77
"android": {
88
"buildType": "apk"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"axios": "^1.6.7",
1818
"date-fns": "^3.6.0",
1919
"expo": "~50.0.19",
20+
"expo-build-properties": "~0.11.1",
2021
"expo-constants": "~15.4.6",
2122
"expo-file-system": "~16.0.9",
2223
"expo-image-picker": "~14.7.1",
@@ -30,8 +31,7 @@
3031
"react-native-paper": "^5.12.3",
3132
"react-native-safe-area-context": "4.8.2",
3233
"react-native-screens": "~3.29.0",
33-
"typescript": "^5.3.0",
34-
"expo-build-properties": "~0.11.1"
34+
"typescript": "^5.3.0"
3535
},
3636
"devDependencies": {
3737
"@babel/core": "^7.20.0",

0 commit comments

Comments
 (0)