diff --git a/examples/basic/jest-setup.js b/examples/basic/jest-setup.ts similarity index 100% rename from examples/basic/jest-setup.js rename to examples/basic/jest-setup.ts diff --git a/examples/basic/jest.config.js b/examples/basic/jest.config.js index 101722eb7..3a8ac87b1 100644 --- a/examples/basic/jest.config.js +++ b/examples/basic/jest.config.js @@ -1,5 +1,5 @@ module.exports = { preset: '@testing-library/react-native', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], - setupFilesAfterEnv: ['./jest-setup.js'], + setupFilesAfterEnv: ['./jest-setup.ts'], }; diff --git a/examples/basic/package.json b/examples/basic/package.json index d56499f7e..4190a1a75 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -10,22 +10,21 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "expo": "^47.0.0", - "expo-status-bar": "~1.4.2", - "react": "18.1.0", - "react-dom": "18.1.0", - "react-native": "0.70.5", - "react-native-web": "~0.18.7" + "expo": "^48.0.0", + "expo-status-bar": "~1.4.4", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-native": "0.71.3", + "react-native-web": "~0.18.11" }, "devDependencies": { - "@babel/core": "^7.19.3", - "@testing-library/jest-native": "^5.4.0", - "@testing-library/react-native": "^11.4.0", - "@types/react": "~18.0.24", - "@types/react-native": "~0.70.6", + "@babel/core": "^7.20.0", + "@testing-library/jest-native": "^5.4.2", + "@testing-library/react-native": "^12.1.2", + "@types/react": "~18.2.6", "jest": "^29.3.0", - "react-test-renderer": "18.1.0", - "typescript": "^4.8.4" + "react-test-renderer": "18.2.0", + "typescript": "^5.0.4" }, "private": true } diff --git a/examples/basic/tsconfig.json b/examples/basic/tsconfig.json index b9567f605..c5f1e173b 100644 --- a/examples/basic/tsconfig.json +++ b/examples/basic/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "expo/tsconfig.base", "compilerOptions": { - "strict": true + "strict": true, + "allowJs": false } }