Skip to content

Commit

Permalink
Metro fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shyambhongle committed Jul 17, 2024
1 parent d6f3aac commit 8c279e9
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 507 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ yarn-error.*
#development
notes.txt

.vscode
.vscode

android
31 changes: 29 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "treemapper",
"slug": "treemapper",
"version": "1.0.0",
"version": "2.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -15,17 +15,44 @@
],
"plugins": [
"@maplibre/maplibre-react-native",
[
"expo-location",
{
"locationAlwaysAndWhenInUsePermission": "Allow Tracer to use your location."
}
],
[
"react-native-auth0",
{
"domain": "accounts.plant-for-the-planet.org"
}
],
[
"expo-camera",
{
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera"
}
],
"expo-font",
"expo-localization"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "org.pftp.treemapper"
"bundleIdentifier": "org.pftp.treemapper",
"infoPlist": {
"NSLocationAlwaysAndWhenInUseUsageDescription": "Allows App to use location services in the foreground and background.",
"NSFaceIDUsageDescription": "Allows App to use Face ID for a simpler sign in.",
"NSLocationWhenInUseUsageDescription": "Allows App to use Face ID for a simpler sign in."
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"permissions": [
"android.permission.WRITE_EXTERNAL_STORAGE"
],
"package": "org.pftp.treemapper"
},
"web": {
Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';

import App from './App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
106 changes: 56 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "treemapper",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"main": "index.js",
"scripts": {
"start": "expo start",
"android": "expo run:android",
Expand All @@ -11,13 +11,21 @@
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/datetimepicker": "7.2.0",
"@react-native-community/netinfo": "^11.3.1",
"@react-native-masked-view/masked-view": "0.2.9",
"@expo/metro-runtime": "~3.2.1",
"@expo/vector-icons": "^14.0.0",
"@gorhom/bottom-sheet": "^4.6.3",
"@maplibre/maplibre-react-native": "^10.0.0-alpha.5",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/datetimepicker": "8.0.1",
"@react-native-community/netinfo": "11.3.1",
"@react-native-masked-view/masked-view": "0.3.1",
"@react-navigation/bottom-tabs": "^6.5.17",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.9.26",
"@react-navigation/stack": "^6.4.0",
"@realm/react": "^0.8.0",
"@reduxjs/toolkit": "^2.2.1",
"@shopify/flash-list": "1.4.3",
"@shopify/flash-list": "1.6.4",
"@turf/area": "^6.5.0",
"@turf/bbox": "^6.5.0",
"@turf/boolean-point-in-polygon": "^6.5.0",
Expand All @@ -26,77 +34,71 @@
"@turf/distance": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/turf": "^7.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"d3-shape": "^3.2.0",
"expo-camera": "~13.4.4",
"expo-clipboard": "~4.3.1",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.5",
"expo-haptics": "~12.4.0",
"expo-image": "~1.3.5",
"expo-image-manipulator": "~11.3.0",
"expo-linear-gradient": "~12.3.0",
"expo-localization": "~14.3.0",
"expo": "~51.0.21",
"expo-camera": "~15.0.14",
"expo-clipboard": "~6.0.3",
"expo-constants": "~16.0.2",
"expo-device": "~6.0.2",
"expo-document-picker": "~12.0.2",
"expo-file-system": "~17.0.1",
"expo-font": "~12.0.9",
"expo-haptics": "~13.0.1",
"expo-image": "~1.12.13",
"expo-image-manipulator": "~12.0.5",
"expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
"expo-location": "^17.0.1",
"expo-router": "~3.5.16",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.6",
"expo-web-browser": "~13.0.3",
"i18next": "^23.10.1",
"moment": "^2.30.1",
"moti": "^0.28.1",
"react-native-auth0": "^3.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.3",
"react-native-auth0": "^3.2.1",
"react-native-avoid-softinput": "^5.0.0",
"react-native-bouncy-checkbox": "^4.0.0",
"react-native-dropdown-picker": "^5.4.6",
"react-native-element-dropdown": "^2.10.4",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "~2.16.1",
"react-native-get-random-values": "^1.11.0",
"react-native-input-outline": "^1.5.2",
"react-native-material-menu": "^2.0.0",
"react-native-modal": "^13.0.1",
"react-native-pager-view": "6.2.0",
"react-native-pager-view": "6.3.0",
"react-native-popover-view": "^5.1.8",
"react-native-reanimated": "~3.10.1",
"react-native-reanimated-carousel": "^3.5.1",
"react-native-redash": "^18.1.3",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-share": "^10.2.1",
"react-native-snackbar": "^2.6.2",
"react-native-svg": "15.2.0",
"react-native-switch": "^1.5.1",
"react-native-tab-view": "^3.5.2",
"react-native-toast-notifications": "^3.4.0",
"react-native-webview": "^13.10.3",
"react-native-web": "~0.19.10",
"react-native-webview": "13.8.6",
"react-native-youtube-iframe": "^2.3.0",
"react-native-zip-archive": "^6.1.0",
"react-redux": "^9.1.0",
"realm": "^12.11.1",
"redux-persist": "^6.0.0",
"seedrandom": "^3.0.5",
"@expo/metro-runtime": "~3.1.3",
"@expo/vector-icons": "^14.0.0",
"@gorhom/bottom-sheet": "^4.6.3",
"@maplibre/maplibre-react-native": "^10.0.0-alpha.5",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.9.26",
"@react-navigation/stack": "^6.4.0",
"@realm/react": "^0.8.0",
"expo": "^51.0.14",
"expo-constants": "~16.0.2",
"expo-document-picker": "~12.0.2",
"expo-font": "~12.0.7",
"expo-linking": "~6.3.1",
"expo-location": "^17.0.1",
"expo-router": "~3.5.16",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.6",
"expo-web-browser": "~13.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.2",
"react-native-gesture-handler": "~2.16.1",
"react-native-get-random-values": "^1.11.0",
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-share": "^10.2.1",
"react-native-svg": "^15.3.0",
"react-native-web": "~0.19.10",
"realm": "^12.11.1",
"uuid": "^10.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@react-native-community/eslint-config": "^3.2.0",
"@types/react": "~18.2.14",
"@typescript-eslint/eslint-plugin": "^7.1.1",
Expand All @@ -110,10 +112,14 @@
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"react-native-svg-transformer": "^1.3.0",
"typescript": "^5.1.3"
"typescript": "~5.3.3"
},
"lint-staged": {
"*{.js,.jsx,.ts,.tsx}": "yarn eslint --fix"
},
"resolutions": {
"@babel/core": "^7.20.2",
"babel-loader": "8.3.0"
},
"private": true
}
Loading

0 comments on commit 8c279e9

Please sign in to comment.