Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import 'setimmediate'
import 'react-native-reanimated'

import 'fast-text-encoding'
import 'react-native-url-polyfill/auto'

// Rest imports
import '@baca/i18n'
import { enableAndroidBackgroundNotificationListener, startMockedServer } from '@baca/services'
Expand Down
7 changes: 3 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"softwareKeyboardLayoutMode": "pan",
"googleServicesFile": "./google-services.json"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"jsEngine": "hermes",
"buildNumber": "10",
Expand Down Expand Up @@ -38,7 +36,8 @@
"./plugin/withDebugKeystore.js"
],
"web": {
"output": "single",
"bundler": "metro"
}
}
}
}
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@binarapps/baca-react-native-template",
"version": "2.1.0",
"description": "Expo template ready to develop mobile apps",
"type": "commonjs",
"keywords": [
"expo",
"template",
Expand All @@ -12,7 +13,7 @@
"eslint",
"prettier"
],
"main": "./App",
"main": "expo-router/entry",
"repository": {
"type": "git",
"url": "https://github.com/binarapps/baca-react-native-template.git"
Expand Down Expand Up @@ -103,30 +104,30 @@
"@react-navigation/stack": "^6.3.20",
"@tanstack/react-query": "^4.29.19",
"axios": "^1.6.7",
"expo": "^50.0.3",
"expo": "~50.0.11",
"expo-app-loading": "^2.1.1",
"expo-application": "~5.8.3",
"expo-asset": "~9.0.2",
"expo-clipboard": "~5.0.1",
"expo-constants": "~15.4.5",
"expo-crypto": "~12.8.0",
"expo-dev-client": "~3.3.7",
"expo-crypto": "~12.8.1",
"expo-dev-client": "~3.3.9",
"expo-device": "~5.9.3",
"expo-font": "~11.10.2",
"expo-font": "~11.10.3",
"expo-haptics": "~12.8.1",
"expo-linear-gradient": "~12.7.1",
"expo-linear-gradient": "~12.7.2",
"expo-linking": "~6.2.2",
"expo-local-authentication": "~13.8.0",
"expo-localization": "~14.8.3",
"expo-network": "~5.8.0",
"expo-notifications": "~0.27.5",
"expo-router": "~3.4.6",
"expo-notifications": "~0.27.6",
"expo-router": "~3.4.8",
"expo-screen-orientation": "~6.4.1",
"expo-secure-store": "~12.8.1",
"expo-splash-screen": "~0.26.4",
"expo-status-bar": "~1.11.1",
"expo-system-ui": "~2.9.3",
"expo-updates": "~0.24.8",
"expo-updates": "~0.24.11",
"expo-web-browser": "~12.8.2",
"i18next": "^23.7.20",
"jotai": "^2.4.3",
Expand All @@ -135,7 +136,7 @@
"react-dom": "18.2.0",
"react-hook-form": "^7.49.3",
"react-i18next": "^14.0.1",
"react-native": "0.73.2",
"react-native": "0.73.4",
"react-native-gesture-handler": "~2.14.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-notificated": "^0.0.1-beta.2",
Expand Down Expand Up @@ -185,7 +186,7 @@
"fast-text-encoding": "^1.0.6",
"husky": "^8.0.3",
"jest": "^29.6.1",
"jest-expo": "~50.0.1",
"jest-expo": "~50.0.3",
"lint-staged": "^13.2.3",
"msw": "^2.2.2",
"orval": "^6.25.0",
Expand All @@ -197,6 +198,7 @@
"react-test-renderer": "^18.2.0",
"readline": "^1.3.0",
"select-prompt": "^0.3.2",
"text-encoding-polyfill": "^0.6.7",
"typescript": "^5.3.0",
"xmlhttprequest": "^1.8.0"
},
Expand Down
4 changes: 4 additions & 0 deletions src/services/MockedServerService.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import 'text-encoding-polyfill'
import 'fast-text-encoding'
import 'react-native-url-polyfill/auto'

import { getArticlesMock } from '@baca/api/query/articles/articles.msw'
import { getAuthMock } from '@baca/api/query/auth/auth.msw'
import { getAuthSocialMock } from '@baca/api/query/auth-social/auth-social.msw'
Expand Down
13 changes: 13 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"buildCommand": "expo export -p web",
"outputDirectory": "dist",
"devCommand": "expo",
"cleanUrls": true,
"framework": null,
"rewrites": [
{
"source": "/:path*",
"destination": "/"
}
]
}
Loading