parent
f147d62bf8
commit
5fb3fe21e3
@ -10,8 +10,8 @@
|
||||
"build:ios": "react-native build-ios --scheme RateAppExample --mode Debug --extra-params \"-sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO\""
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "19.1.0",
|
||||
"react-native": "0.78.2"
|
||||
"react": "19.0.0",
|
||||
"react-native": "0.79.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.27.4",
|
||||
|
||||
12
package.json
12
package.json
@ -67,25 +67,25 @@
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@commitlint/cli": "19.8.1",
|
||||
"@commitlint/config-conventional": "19.8.1",
|
||||
"@react-native-community/cli": "15.1.3",
|
||||
"@react-native-community/cli": "18.0.0",
|
||||
"@semantic-release/changelog": "6.0.3",
|
||||
"@semantic-release/git": "10.0.1",
|
||||
"@types/jest": "29.5.14",
|
||||
"@types/react": "19.1.6",
|
||||
"@types/react": "19.0.10",
|
||||
"commitlint": "19.8.1",
|
||||
"del-cli": "6.0.0",
|
||||
"expo": "53.0.10",
|
||||
"husky": "9.1.7",
|
||||
"jest": "29.7.0",
|
||||
"react": "19.1.0",
|
||||
"react-native": "0.78.2",
|
||||
"react": "19.0.0",
|
||||
"react-native": "0.79.3",
|
||||
"react-native-builder-bob": "0.40.11",
|
||||
"semantic-release": "24.2.5",
|
||||
"turbo": "2.5.4",
|
||||
"typescript": "5.8.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/react": "19.1.6"
|
||||
"@types/react": "19.0.10"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
@ -148,6 +148,6 @@
|
||||
"create-react-native-library": {
|
||||
"type": "turbo-module",
|
||||
"languages": "kotlin-objc",
|
||||
"version": "0.48.3"
|
||||
"version": "0.50.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,9 @@
|
||||
"ignoreDeps": [
|
||||
"@react-native-community/cli",
|
||||
"@react-native-community/cli-platform-android",
|
||||
"@react-native-community/cli-platform-ios"
|
||||
"@react-native-community/cli-platform-ios",
|
||||
"@types/react",
|
||||
"react"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
|
||||
18
setupJest.ts
18
setupJest.ts
@ -1,8 +1,12 @@
|
||||
jest.mock("react-native/Libraries/BatchedBridge/NativeModules", () => ({
|
||||
RateApp: {
|
||||
requestReview: jest.fn(),
|
||||
requestReviewGalaxyStore: jest.fn(),
|
||||
requestReviewAppGallery: jest.fn(),
|
||||
},
|
||||
PlatformConstants: {},
|
||||
jest.mock("react-native/Libraries/TurboModule/TurboModuleRegistry", () => ({
|
||||
getEnforcing: jest.fn((moduleName: string) => {
|
||||
if (moduleName === "RateApp") {
|
||||
return {
|
||||
requestReview: jest.fn(),
|
||||
requestReviewGalaxyStore: jest.fn(),
|
||||
requestReviewAppGallery: jest.fn(),
|
||||
};
|
||||
}
|
||||
return {};
|
||||
}),
|
||||
}));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user