Skip to content

Commit 34a5133

Browse files
committed
Fix to support older version of RN
1 parent c689e83 commit 34a5133

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

android/src/main/java/com/masteratul/RNAppstoreVersionCheckerPackage.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
1616
return Arrays.<NativeModule>asList(new RNAppstoreVersionCheckerModule(reactContext));
1717
}
1818

19+
//leaving it to support react-native v0.47 and less
20+
public List<Class<? extends JavaScriptModule>> createJSModules() {
21+
return Collections.emptyList();
22+
}
23+
1924
@Override
2025
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
2126
return Collections.emptyList();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-appstore-version-checker",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "A react native module to find the app version on play store and ios app store",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)