diff --git a/templates/app/react-native/Environment.js b/templates/app/react-native/Environment.js index 9ef129a35f..412ea7b2d2 100644 --- a/templates/app/react-native/Environment.js +++ b/templates/app/react-native/Environment.js @@ -1,10 +1,13 @@ + +const yourIP = 'Your Local IP Address etc 192.168.1.64'; // See the docs https://docs.abp.io/en/abp/latest/Getting-Started-React-Native?Tiered=No +const port = 44305; +const apiUrl = `http://${yourIP}:${port}`; const ENV = { dev: { - apiUrl: 'http://localhost:44305', + apiUrl: apiUrl, oAuthConfig: { - issuer: 'http://localhost:44305', + issuer: apiUrl, clientId: 'MyProjectName_App', - clientSecret: '1q2w3e*', scope: 'offline_access MyProjectName', }, localization: { @@ -16,7 +19,6 @@ const ENV = { oAuthConfig: { issuer: 'http://localhost:44305', clientId: 'MyProjectName_App', - clientSecret: '1q2w3e*', scope: 'offline_access MyProjectName', }, localization: { diff --git a/templates/app/react-native/package.json b/templates/app/react-native/package.json index e08783807c..92ac4a714e 100644 --- a/templates/app/react-native/package.json +++ b/templates/app/react-native/package.json @@ -10,34 +10,35 @@ "eject": "expo eject" }, "dependencies": { - "@react-native-async-storage/async-storage": "~1.15.0", - "@react-navigation/drawer": "^6.1.8", - "@react-navigation/native": "^6.0.6", - "@react-navigation/native-stack": "^6.2.5", + "@react-native-async-storage/async-storage": "~1.17.11", + "@react-navigation/drawer": "^6.5.4", + "@react-navigation/native": "^6.1.0", + "@react-navigation/native-stack": "^6.9.5", "@reduxjs/toolkit": "^1.7.1", - "axios": "^0.24.0", - "expo": "~44.0.0", - "expo-status-bar": "~1.2.0", + "axios": "~1.2.1", + "expo": "^47.0.0", + "expo-status-bar": "~1.4.2", "formik": "^2.2.9", "i18n-js": "^3.8.0", - "native-base": "^3.3.1", + "native-base": "^3.4.25", "prop-types": "^15.8.1", - "react": "17.0.1", - "react-dom": "17.0.1", - "react-native": "0.64.3", - "react-native-gesture-handler": "~2.1.0", - "react-native-reanimated": "~2.3.1", - "react-native-safe-area-context": "3.3.2", - "react-native-screens": "~3.10.1", - "react-native-svg": "12.1.1", - "react-native-web": "0.17.1", - "react-redux": "^7.2.6", + "react": "18.1.0", + "react-dom": "18.1.0", + "react-native": "0.70.5", + "react-native-chart-kit": "^6.11.0", + "react-native-gesture-handler": "~2.8.0", + "react-native-reanimated": "~2.12.0", + "react-native-safe-area-context": "4.4.1", + "react-native-screens": "~3.18.0", + "react-native-svg": "13.4.0", + "react-native-web": "~0.18.7", + "react-redux": "^8.0.5", "redux-persist": "^6.0.0", - "redux-saga": "^1.1.3", + "redux-saga": "^1.2.1", "yup": "^0.32.11" }, "devDependencies": { - "@babel/core": "^7.12.9" + "@babel/core": "^7.19.3" }, "private": true }