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
13 changes: 7 additions & 6 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
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'
import * as Device from 'expo-device'
import 'expo-router/entry'

import { enableAndroidBackgroundNotificationListener, startMockedServer } from '@baca/services'

// FIXME: there is some issue with miragejs that causes console.log to not work
const DISABLE_CONSOLE_ENABLE_MOCKED_SERVER = false
// FIXME: moking not working on mobile app - follow this discussion https://github.com/mswjs/msw/issues/2026
const ENABLE_MOCKED_SERVER = false

if (DISABLE_CONSOLE_ENABLE_MOCKED_SERVER) {
if (ENABLE_MOCKED_SERVER) {
startMockedServer()
}

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@react-navigation/native-stack": "^6.9.17",
"@react-navigation/stack": "^6.3.20",
"@tanstack/react-query": "^4.29.19",
"axios": "^0.27.2",
"axios": "^1.6.7",
"expo": "^50.0.3",
"expo-app-loading": "^2.1.1",
"expo-application": "~5.8.3",
Expand Down Expand Up @@ -182,17 +182,18 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-react-native-globals": "^0.1.2",
"fast-text-encoding": "^1.0.6",
"husky": "^8.0.3",
"jest": "^29.6.1",
"jest-expo": "~50.0.1",
"lint-staged": "^13.2.3",
"miragejs": "^0.1.48",
"msw": "^2.2.2",
"orval": "^6.25.0",
"patch-package": "^7.0.1",
"prettier": "^2.8.8",
"pretty-quick": "^4.0.0",
"prompt-sync": "^4.2.0",
"react-native-url-polyfill": "^2.0.0",
"react-test-renderer": "^18.2.0",
"readline": "^1.3.0",
"select-prompt": "^0.3.2",
Expand Down
Loading