Skip to content

Commit 86e1f0f

Browse files
committed
feat: update API URL
1 parent 06f9b75 commit 86e1f0f

File tree

4 files changed

+3
-25
lines changed

4 files changed

+3
-25
lines changed

babel.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ module.exports = function(api) {
22
api.cache(true);
33
return {
44
presets: ["babel-preset-expo"],
5-
plugins: ["expo-router/babel",
6-
["module:react-native-dotenv", {
7-
"moduleName": "@env",
8-
"path": ".env",
9-
"blacklist": null,
10-
"whitelist": null,
11-
"safe": false,
12-
"allowUndefined": true
13-
}]],
5+
plugins: ["expo-router/babel"],
146
};
157
};

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
"zustand": "^4.4.6"
4646
},
4747
"devDependencies": {
48-
"@babel/core": "^7.20.0",
49-
"react-native-dotenv": "^3.4.9"
48+
"@babel/core": "^7.20.0"
5049
},
5150
"private": true
5251
}

src/screens/SelectedImageScreen.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { TouchableOpacity, View } from "react-native";
33
import { Image, Box, Text, Icon, Select, useToast } from "native-base";
44
import MaterialIcons from "react-native-vector-icons/MaterialIcons";
55
import PropTypes from "prop-types";
6-
import { API_URL } from "@env";
76

87
import useStore from "../store/store";
98
import styles from "../styles/style";
@@ -20,7 +19,7 @@ export default function SelectedImageScreen({ navigation }) {
2019
showErrorToast("Plant's name is required!");
2120
return;
2221
}
23-
fetch(`${API_URL}/classify`, {
22+
fetch("https://jayantita.pythonanywhere.com/classify", {
2423
method: "POST",
2524
headers: {
2625
"Content-Type": "application/json",

yarn.lock

-12
Original file line numberDiff line numberDiff line change
@@ -5041,11 +5041,6 @@ dotenv-expand@~10.0.0:
50415041
resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-10.0.0.tgz#12605d00fb0af6d0a592e6558585784032e4ef37"
50425042
integrity sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==
50435043

5044-
dotenv@^16.3.1:
5045-
version "16.3.1"
5046-
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
5047-
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==
5048-
50495044
dotenv@~16.0.3:
50505045
version "16.0.3"
50515046
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07"
@@ -9122,13 +9117,6 @@ react-native-document-picker@^9.0.1:
91229117
dependencies:
91239118
invariant "^2.2.4"
91249119

9125-
react-native-dotenv@^3.4.9:
9126-
version "3.4.9"
9127-
resolved "https://registry.yarnpkg.com/react-native-dotenv/-/react-native-dotenv-3.4.9.tgz#621c5b0c1d0c5c7f569bfe5a1d804bec7885c010"
9128-
integrity sha512-dbyd+mcy7SUzxEgmt33TRf1FGcNe6swJhXmB0unKkI49F7+pidog9kPtjxMLTAfmKA8gcN2XHQSKltGfGbGCLQ==
9129-
dependencies:
9130-
dotenv "^16.3.1"
9131-
91329120
react-native-fetch-blob@^0.10.8:
91339121
version "0.10.8"
91349122
resolved "https://registry.yarnpkg.com/react-native-fetch-blob/-/react-native-fetch-blob-0.10.8.tgz#4fc256abae0cb5f10e7c41f28c11b3ff330d72a9"

0 commit comments

Comments
 (0)