Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
if: inputs.new-version
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc
- name: Validate new version
if: inputs.new-version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
v22.14.0
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ When reviewing code, read and apply the rules in ./REVIEW.md
- **Forms**: Always use `react-hook-form` + `zod` + `@hookform/resolvers`. Never use `useState` for form state or uncontrolled inputs.
- **Animations**: Never use `Animated` from React Native directly. Use `moti` for declarative animations or `react-native-reanimated` for gesture-driven ones.
- **Token refresh**: Token refresh is **not implemented** — there is a `TODO` in `src/components/providers/auth.tsx`. Do not add refresh logic without a deliberate design decision; adding partial refresh code will conflict with the existing 401 handling.
- **New dependencies**: Before installing any library, verify the latest version compatible with this stack — React Native 0.81, Expo SDK 54, and React 19. Check compatibility via `npx expo install <package>` (which resolves the Expo-blessed version) or the package's peer dependencies. Do not install the latest npm version blindly — it may not support this SDK version.
- **New dependencies**: Before installing any library, verify the latest version compatible with this stack — React Native 0.88, Expo SDK 58, and React 19.3. Check compatibility via `npx expo install <package>` (which resolves the Expo-blessed version) or the package's peer dependencies. Do not install the latest npm version blindly — it may not support this SDK version.

---

Expand Down
3 changes: 1 addition & 2 deletions __tests__/components/settings/item.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ describe('Item component', () => {
const mockOnPress = jest.fn();
render(<Item text="settings.language" onPress={mockOnPress} />);

const pressable = screen.getByText('Language').parent;
fireEvent.press(pressable);
fireEvent.press(screen.getByText('Language'));

expect(mockOnPress).toHaveBeenCalled();
});
Expand Down
7 changes: 6 additions & 1 deletion __tests__/components/ui/progress-bar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { render, screen } from '@testing-library/react-native';
import { createRef } from 'react';
import { getAnimatedStyle } from 'react-native-reanimated';
import { getAnimatedStyle as getAnimatedStyleUntyped } from 'react-native-reanimated';
import type { ReactTestInstance } from 'react-test-renderer';

import type { ProgressBarRef } from '../../../src/components/ui/progress-bar';
import { ProgressBar } from '../../../src/components/ui/progress-bar';

const getAnimatedStyle = getAnimatedStyleUntyped as unknown as (
component: ReactTestInstance,
) => Record<string, unknown>;

describe('ProgressBar component', () => {
const PROGRESS_BAR = 'progress-bar';
it('renders correctly', () => {
Expand Down
15 changes: 15 additions & 0 deletions __tests__/lib/auth/get-fallback-route.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { getFallbackRoute } from '../../../src/lib/auth/get-fallback-route';

describe('getFallbackRoute', () => {
it.each([
{ isFirstTime: true, isAuthenticated: false, expected: '/onboarding' },
{ isFirstTime: true, isAuthenticated: true, expected: '/onboarding' },
{ isFirstTime: false, isAuthenticated: false, expected: '/sign-in' },
{ isFirstTime: false, isAuthenticated: true, expected: '/' },
])(
'returns $expected when isFirstTime=$isFirstTime and isAuthenticated=$isAuthenticated',
({ isFirstTime, isAuthenticated, expected }) => {
expect(getFallbackRoute({ isFirstTime, isAuthenticated })).toBe(expected);
},
);
});
5 changes: 1 addition & 4 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-lines-per-function */
import type { ConfigContext, ExpoConfig } from '@expo/config';
import type { AppIconBadgeConfig } from 'app-icon-badge/types';

Expand Down Expand Up @@ -31,7 +30,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'automatic',
newArchEnabled: true,
updates: {
fallbackToCacheTimeout: 0,
url: `https://u.expo.dev/${Env.EAS_PROJECT_ID}`,
Expand Down Expand Up @@ -66,7 +64,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
'expo-build-properties',
{
ios: {
deploymentTarget: '16.0',
deploymentTarget: '16.4',
},
},
],
Expand All @@ -88,7 +86,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
'expo-localization',
['expo-router', { sitemap: Env.APP_ENV !== 'production' }],
['app-icon-badge', appIconBadgeConfig],
['react-native-edge-to-edge'],
],
extra: {
...ClientEnv,
Expand Down
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module.exports = function babel(api) {
],
},
],
'react-native-reanimated/plugin',
],
};
};
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default antfu(
ignores: [
'dist/*',
'node_modules',
'.claude/worktrees/',
'__tests__/',
'coverage',
'.expo',
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module.exports = {
preset: 'jest-expo',
resolver: 'react-native-reanimated/jest/resolver',
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/.claude/worktrees/'],
modulePathIgnorePatterns: ['<rootDir>/.claude/worktrees/'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/coverage/**',
Expand All @@ -13,7 +16,7 @@ module.exports = {
],
moduleFileExtensions: ['js', 'ts', 'tsx'],
transformIgnorePatterns: [
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg))`,
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg|standard-navigation|@shopify/flash-list))`,
],
coverageReporters: [
'json-summary',
Expand Down
1 change: 1 addition & 0 deletions nativewind-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="expo/types" />
/// <reference types="nativewind/types" />
82 changes: 41 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,75 +66,76 @@
"e2e-test": "maestro test .maestro/ -e APP_ID=com.obytes.development"
},
"dependencies": {
"@expo/metro-runtime": "^6.1.2",
"@expo/metro-runtime": "^58.0.17",
"@gorhom/bottom-sheet": "^5.0.5",
"@hookform/resolvers": "^3.9.0",
"@lukemorales/query-key-factory": "^1.3.4",
"@shopify/flash-list": "2.0.2",
"@shopify/flash-list": "2.3.2",
"@tanstack/react-query": "^5.52.1",
"@testing-library/react-hooks": "^8.0.1",
"app-icon-badge": "^0.1.2",
"axios": "^1.7.5",
"dayjs": "^1.11.13",
"expo": "~54.0.38",
"expo-build-properties": "^1.0.10",
"expo-constants": "~18.0.14",
"expo-crypto": "^15.0.9",
"expo-dev-client": "~6.0.21",
"expo-font": "~14.0.12",
"expo-image": "~3.0.11",
"expo-linking": "~8.0.12",
"expo-localization": "~17.0.9",
"expo-router": "~6.0.24",
"expo-splash-screen": "~31.0.13",
"expo-status-bar": "~3.0.9",
"expo-system-ui": "~6.0.9",
"expo": "~58.0.26",
Comment thread
fernandatoledo marked this conversation as resolved.
Resolved
"expo-build-properties": "^58.0.12",
"expo-constants": "~58.0.16",
"expo-crypto": "^58.0.8",
"expo-dev-client": "~58.0.21",
"expo-font": "~58.0.12",
"expo-image": "~58.0.18",
"expo-linking": "~58.0.17",
"expo-localization": "~58.0.5",
"expo-navigation-bar": "~58.0.4",
"expo-router": "~58.0.32",
"expo-splash-screen": "~58.0.14",
"expo-status-bar": "~58.0.5",
"expo-system-ui": "~58.0.7",
"i18next": "^23.14.0",
"lodash.memoize": "^4.1.2",
"moti": "^0.29.0",
"nativewind": "^4.1.21",
"react": "19.1.0",
"react-dom": "19.1.0",
"react": "19.3.0",
"react-dom": "19.3.0",
"react-error-boundary": "^4.0.13",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.1",
"react-native": "0.81.5",
"react-native-edge-to-edge": "^1.6.0",
"react-native": "0.88.1",
"react-native-flash-message": "^0.4.2",
"react-native-gesture-handler": "~2.28.0",
"react-native-keyboard-controller": "^1.18.5",
"react-native-mmkv": "~4.0.1",
"react-native-nitro-modules": "^0.31.10",
"react-native-reanimated": "~4.1.5",
"react-native-gesture-handler": "~3.3.0",
"react-native-keyboard-controller": "^1.22.7",
"react-native-mmkv": "~4.3.2",
"react-native-nitro-modules": "^0.37.2",
"react-native-reanimated": "~4.7.1",
"react-native-restart": "0.0.27",
"react-native-safe-area-context": "5.6.2",
"react-native-screens": "^4.16.0",
"react-native-svg": "~15.12.1",
"react-native-safe-area-context": "5.11.1",
"react-native-screens": "^4.30.1",
"react-native-svg": "~15.16.0",
"react-native-url-polyfill": "^2.0.0",
"react-native-web": "~0.21.2",
"react-native-webview": "13.15.0",
"react-native-worklets": "0.5.1",
"react-native-web": "~0.21.4",
"react-native-webview": "14.0.1",
"react-native-worklets": "0.13.0",
"react-query-kit": "^3.3.0",
"tailwind-variants": "^0.2.1",
"zod": "^3.23.8",
"zustand": "^5.0.5"
},
"devDependencies": {
"@antfu/eslint-config": "^7.2.0",
"@babel/core": "^7.26.0",
"@babel/core": "^7.29.13",
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@dev-plugins/react-query": "^0.0.7",
"@eslint-react/eslint-plugin": "^2.7.2",
"@expo/config": "~12.0.13",
"@expo/config": "~58.0.12",
"@tanstack/eslint-plugin-query": "^5.62.1",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react-native": "^12.7.2",
"@types/i18n-js": "^3.8.9",
"@types/invariant": "^2.2.37",
"@types/jest": "^29.5.14",
"@types/jest": "^30.0.0",
"@types/lodash.memoize": "^4.1.9",
"@types/react": "~19.1.17",
"@types/node": "^22.9.1",
"@types/react": "~19.3.0",
"babel-plugin-module-resolver": "^5.0.2",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
Expand All @@ -148,15 +149,15 @@
"eslint-plugin-tailwindcss": "^3.18.0",
"eslint-plugin-testing-library": "^7.5.2",
"husky": "^9.1.5",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-expo": "~54.0.18",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"jest-expo": "~58.0.15",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.9",
"np": "^10.0.7",
"tailwindcss": "3.4.4",
"ts-jest": "^29.1.2",
"typescript": "^5.9.3"
"ts-jest": "^29.4.15",
"typescript": "^6.0.3"
},
"repository": {
"type": "git",
Expand All @@ -168,8 +169,7 @@
"reactNativeDirectoryCheck": {
"listUnknownPackages": false,
"exclude": [
"react-native-restart",
"react-native-edge-to-edge"
"react-native-restart"
]
}
},
Expand Down
Loading
Loading