Skip to content

Commit 4fc90ab

Browse files
committed
Fix react-native-store-review
Package is not being maintained as of 2023. A forked branch and PR addresses iOS 18+ support: oblador/react-native-store-review@575f492 - The dependency now points to the above fork/SHA - Patched to add the missing Swifth module configuration to the podspec, and to import using angle brackets in the swift code.
1 parent a1a3f07 commit 4fc90ab

File tree

5 files changed

+32
-5
lines changed

5 files changed

+32
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- fixed: ramps: Various Infinite UI/UX issues
1717
- fixed: Search keyboard not dismissing when submitting search
1818
- fixed: Auto-correct not disabled for search input
19+
- fixed: In-app review for iOS 18+
1920

2021
## 4.41.1 (2025-12-29)
2122

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,7 @@ SPEC CHECKSUMS:
34753475
RNSentry: 19b4ee2a31886bcc5a64698a27cf8495cb8f5d17
34763476
RNShare: 6300b941668273d502ecee9122cade0d5ea966bd
34773477
RNSound: cfeaf6c6a734303c887e04b946cbb7e294bff123
3478-
RNStoreReview: 8b47d208282c23296d2466a488a8d9ca1979d79b
3478+
RNStoreReview: b3cb7df1405d56afd51301ada4660f6c9b970055
34793479
RNSVG: ca807495c5219c05c747254200b89a4e3078db31
34803480
RNVectorIcons: f1bc9e04b6f67ec09ea54e6f092e75a9e205c1d7
34813481
RNWorklets: b1faafefb82d9f29c4018404a0fb33974b494a7b

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
"react-native-securerandom": "^1.0.1",
165165
"react-native-share": "^12.0.11",
166166
"react-native-sound": "^0.12.0",
167-
"react-native-store-review": "^0.4.3",
167+
"react-native-store-review": "https://github.com/dylancom/react-native-store-review#575f49229de2439095205b3cd17babea31972c95",
168168
"react-native-svg": "^15.12.1",
169169
"react-native-vector-icons": "^10.1.0",
170170
"react-native-vision-camera": "^4.7.2",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/node_modules/react-native-store-review/RNStoreReview.podspec b/node_modules/react-native-store-review/RNStoreReview.podspec
2+
index 1234567..abcdefg 100644
3+
--- a/node_modules/react-native-store-review/RNStoreReview.podspec
4+
+++ b/node_modules/react-native-store-review/RNStoreReview.podspec
5+
@@ -14,6 +14,10 @@ Pod::Spec.new do |s|
6+
s.preserve_paths = "**/*.js"
7+
s.ios.framework = 'StoreKit'
8+
s.requires_arc = true
9+
+ s.pod_target_xcconfig = {
10+
+ 'DEFINES_MODULE' => 'YES',
11+
+ 'SWIFT_VERSION' => '5.0'
12+
+ }
13+
14+
s.dependency "React-Core"
15+
16+
diff --git a/node_modules/react-native-store-review/ios/RNStoreReview.mm b/node_modules/react-native-store-review/ios/RNStoreReview.mm
17+
index 2345678..bcdefgh 100644
18+
--- a/node_modules/react-native-store-review/ios/RNStoreReview.mm
19+
+++ b/node_modules/react-native-store-review/ios/RNStoreReview.mm
20+
@@ -1,6 +1,6 @@
21+
#import "RNStoreReview.h"
22+
23+
-#import "RNStoreReview-Swift.h"
24+
+#import <RNStoreReview/RNStoreReview-Swift.h>
25+
26+
@implementation RNStoreReview
27+

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16237,10 +16237,9 @@ react-native-sound@^0.12.0:
1623716237
resolved "https://registry.yarnpkg.com/react-native-sound/-/react-native-sound-0.12.0.tgz#c1502e7760efa7ca06c38b8ae0435518eae33ef8"
1623816238
integrity sha512-uOtM/PJ8+xmuXwgS2WMYEcokE/oFE8MV6glZHmB5RYHZ+yzD/0Z7cDL+QJpetTYBbEFOirfcE42o6YfPMJfJfg==
1623916239

16240-
react-native-store-review@^0.4.3:
16240+
"react-native-store-review@https://github.com/dylancom/react-native-store-review#575f49229de2439095205b3cd17babea31972c95":
1624116241
version "0.4.3"
16242-
resolved "https://registry.yarnpkg.com/react-native-store-review/-/react-native-store-review-0.4.3.tgz#a524374b1a897b1de1b05d6257640296f1693e3c"
16243-
integrity sha512-RSQ6vx2j4p41GwTqNv2VV7yold62j5qDbGEBAjFi6gkXMrMpxFMg+82FPjbh6012tqv6Ebzwfqw6S4m4d7sddw==
16242+
resolved "https://github.com/dylancom/react-native-store-review#575f49229de2439095205b3cd17babea31972c95"
1624416243

1624516244
react-native-svg-transformer@^1.5.1:
1624616245
version "1.5.1"

0 commit comments

Comments
 (0)