react-native-rate-app 0.0.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/lib/commonjs/constants.js +1 -1
  2. package/lib/commonjs/index.js +3 -3
  3. package/lib/module/constants.js +1 -1
  4. package/lib/module/constants.js.map +1 -1
  5. package/lib/module/index.js +5 -5
  6. package/lib/module/index.js.map +1 -1
  7. package/lib/typescript/NativeRateApp.d.ts.map +1 -0
  8. package/lib/typescript/constants.d.ts.map +1 -0
  9. package/lib/typescript/index.d.ts.map +1 -0
  10. package/lib/typescript/types.d.ts.map +1 -0
  11. package/package.json +11 -34
  12. package/android/generated/java/com/rateapp/NativeRateAppSpec.java +0 -38
  13. package/android/generated/jni/CMakeLists.txt +0 -49
  14. package/android/generated/jni/RNRateAppSpec-generated.cpp +0 -32
  15. package/android/generated/jni/RNRateAppSpec.h +0 -31
  16. package/android/generated/jni/react/renderer/components/RNRateAppSpec/ComponentDescriptors.cpp +0 -22
  17. package/android/generated/jni/react/renderer/components/RNRateAppSpec/ComponentDescriptors.h +0 -24
  18. package/android/generated/jni/react/renderer/components/RNRateAppSpec/EventEmitters.cpp +0 -16
  19. package/android/generated/jni/react/renderer/components/RNRateAppSpec/EventEmitters.h +0 -17
  20. package/android/generated/jni/react/renderer/components/RNRateAppSpec/Props.cpp +0 -19
  21. package/android/generated/jni/react/renderer/components/RNRateAppSpec/Props.h +0 -18
  22. package/android/generated/jni/react/renderer/components/RNRateAppSpec/RNRateAppSpecJSI-generated.cpp +0 -26
  23. package/android/generated/jni/react/renderer/components/RNRateAppSpec/RNRateAppSpecJSI.h +0 -67
  24. package/android/generated/jni/react/renderer/components/RNRateAppSpec/ShadowNodes.cpp +0 -17
  25. package/android/generated/jni/react/renderer/components/RNRateAppSpec/ShadowNodes.h +0 -23
  26. package/android/generated/jni/react/renderer/components/RNRateAppSpec/States.cpp +0 -16
  27. package/android/generated/jni/react/renderer/components/RNRateAppSpec/States.h +0 -19
  28. package/android/src/main/AndroidManifestNew.xml +0 -2
  29. package/ios/generated/RNRateAppSpec/ComponentDescriptors.cpp +0 -22
  30. package/ios/generated/RNRateAppSpec/ComponentDescriptors.h +0 -24
  31. package/ios/generated/RNRateAppSpec/EventEmitters.cpp +0 -16
  32. package/ios/generated/RNRateAppSpec/EventEmitters.h +0 -17
  33. package/ios/generated/RNRateAppSpec/Props.cpp +0 -19
  34. package/ios/generated/RNRateAppSpec/Props.h +0 -18
  35. package/ios/generated/RNRateAppSpec/RCTComponentViewHelpers.h +0 -18
  36. package/ios/generated/RNRateAppSpec/RNRateAppSpec-generated.mm +0 -29
  37. package/ios/generated/RNRateAppSpec/RNRateAppSpec.h +0 -50
  38. package/ios/generated/RNRateAppSpec/ShadowNodes.cpp +0 -17
  39. package/ios/generated/RNRateAppSpec/ShadowNodes.h +0 -23
  40. package/ios/generated/RNRateAppSpec/States.cpp +0 -16
  41. package/ios/generated/RNRateAppSpec/States.h +0 -19
  42. package/ios/generated/RNRateAppSpecJSI-generated.cpp +0 -26
  43. package/ios/generated/RNRateAppSpecJSI.h +0 -67
  44. package/lib/typescript/commonjs/setupJest.d.ts +0 -1
  45. package/lib/typescript/commonjs/setupJest.d.ts.map +0 -1
  46. package/lib/typescript/commonjs/src/NativeRateApp.d.ts.map +0 -1
  47. package/lib/typescript/commonjs/src/constants.d.ts.map +0 -1
  48. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  49. package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
  50. package/lib/typescript/module/setupJest.d.ts +0 -1
  51. package/lib/typescript/module/setupJest.d.ts.map +0 -1
  52. package/lib/typescript/module/src/NativeRateApp.d.ts +0 -7
  53. package/lib/typescript/module/src/NativeRateApp.d.ts.map +0 -1
  54. package/lib/typescript/module/src/constants.d.ts +0 -4
  55. package/lib/typescript/module/src/constants.d.ts.map +0 -1
  56. package/lib/typescript/module/src/index.d.ts +0 -26
  57. package/lib/typescript/module/src/index.d.ts.map +0 -1
  58. package/lib/typescript/module/src/types.d.ts +0 -22
  59. package/lib/typescript/module/src/types.d.ts.map +0 -1
  60. /package/lib/{typescript/commonjs → commonjs}/package.json +0 -0
  61. /package/lib/{typescript/module → module}/package.json +0 -0
  62. /package/lib/typescript/{commonjs/src/NativeRateApp.d.ts → NativeRateApp.d.ts} +0 -0
  63. /package/lib/typescript/{commonjs/src/constants.d.ts → constants.d.ts} +0 -0
  64. /package/lib/typescript/{commonjs/src/index.d.ts → index.d.ts} +0 -0
  65. /package/lib/typescript/{commonjs/src/types.d.ts → types.d.ts} +0 -0
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.IOS_REVIEW_URL = exports.ANDROID_MARKET_URLS = void 0;
7
- var _types = require("./types.js");
7
+ var _types = require("./types");
8
8
  const IOS_REVIEW_URL = exports.IOS_REVIEW_URL = "itms-apps://apps.apple.com/app/id";
9
9
  const ANDROID_MARKET_URLS = exports.ANDROID_MARKET_URLS = {
10
10
  [_types.AndroidMarket.GOOGLE]: "market://details?id={packageName}",
@@ -10,8 +10,8 @@ var _exportNames = {
10
10
  };
11
11
  exports.requestReview = exports.openStoreForReview = exports.getAndroidMarketUrl = exports.default = void 0;
12
12
  var _reactNative = require("react-native");
13
- var _NativeRateApp = _interopRequireDefault(require("./NativeRateApp.js"));
14
- var _constants = require("./constants.js");
13
+ var _NativeRateApp = _interopRequireDefault(require("./NativeRateApp"));
14
+ var _constants = require("./constants");
15
15
  Object.keys(_constants).forEach(function (key) {
16
16
  if (key === "default" || key === "__esModule") return;
17
17
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -23,7 +23,7 @@ Object.keys(_constants).forEach(function (key) {
23
23
  }
24
24
  });
25
25
  });
26
- var _types = require("./types.js");
26
+ var _types = require("./types");
27
27
  Object.keys(_types).forEach(function (key) {
28
28
  if (key === "default" || key === "__esModule") return;
29
29
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { AndroidMarket } from "./types.js";
3
+ import { AndroidMarket } from "./types";
4
4
  export const IOS_REVIEW_URL = "itms-apps://apps.apple.com/app/id";
5
5
  export const ANDROID_MARKET_URLS = {
6
6
  [AndroidMarket.GOOGLE]: "market://details?id={packageName}",
@@ -1 +1 @@
1
- {"version":3,"names":["AndroidMarket","IOS_REVIEW_URL","ANDROID_MARKET_URLS","GOOGLE","AMAZON","SAMSUNG","HUAWEI"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,YAAS;AAEvC,OAAO,MAAMC,cAAc,GAAG,mCAAmC;AAEjE,OAAO,MAAMC,mBAAkD,GAAG;EAChE,CAACF,aAAa,CAACG,MAAM,GAAG,mCAAmC;EAC3D,CAACH,aAAa,CAACI,MAAM,GAAG,qCAAqC;EAC7D,CAACJ,aAAa,CAACK,OAAO,GAAG,2CAA2C;EACpE,CAACL,aAAa,CAACM,MAAM,GAAG;AAC1B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["AndroidMarket","IOS_REVIEW_URL","ANDROID_MARKET_URLS","GOOGLE","AMAZON","SAMSUNG","HUAWEI"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,SAAS;AAEvC,OAAO,MAAMC,cAAc,GAAG,mCAAmC;AAEjE,OAAO,MAAMC,mBAAkD,GAAG;EAChE,CAACF,aAAa,CAACG,MAAM,GAAG,mCAAmC;EAC3D,CAACH,aAAa,CAACI,MAAM,GAAG,qCAAqC;EAC7D,CAACJ,aAAa,CAACK,OAAO,GAAG,2CAA2C;EACpE,CAACL,aAAa,CAACM,MAAM,GAAG;AAC1B,CAAC","ignoreList":[]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  import { Linking, Platform } from "react-native";
4
- import NativeRateApp from "./NativeRateApp.js";
5
- import { ANDROID_MARKET_URLS, IOS_REVIEW_URL } from "./constants.js";
6
- import { AndroidMarket } from "./types.js";
4
+ import NativeRateApp from "./NativeRateApp";
5
+ import { ANDROID_MARKET_URLS, IOS_REVIEW_URL } from "./constants";
6
+ import { AndroidMarket } from "./types";
7
7
 
8
8
  /**
9
9
  * Custom error for rate app operations
@@ -77,8 +77,8 @@ const RateApp = {
77
77
  return urlTemplate.replace("{packageName}", androidPackageName);
78
78
  }
79
79
  };
80
- export * from "./types.js";
81
- export * from "./constants.js";
80
+ export * from "./types";
81
+ export * from "./constants";
82
82
  export const {
83
83
  requestReview,
84
84
  openStoreForReview,
@@ -1 +1 @@
1
- {"version":3,"names":["Linking","Platform","NativeRateApp","ANDROID_MARKET_URLS","IOS_REVIEW_URL","AndroidMarket","RateAppError","Error","constructor","message","name","RateApp","requestReview","error","openStoreForReview","iOSAppId","androidPackageName","androidMarket","GOOGLE","isIOS","OS","ismacOS","isAndroid","url","getAndroidMarketUrl","canOpenURL","openURL","urlTemplate","replace"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAChD,OAAOC,aAAa,MAAM,oBAAiB;AAC3C,SAASC,mBAAmB,EAAEC,cAAc,QAAQ,gBAAa;AACjE,SAASC,aAAa,QAAsC,YAAS;;AAErE;AACA;AACA;AACA,MAAMC,YAAY,SAASC,KAAK,CAAC;EAC/BC,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAACA,OAAO,CAAC;IACd,IAAI,CAACC,IAAI,GAAG,cAAc;EAC5B;AACF;AAEA,MAAMC,OAAO,GAAG;EACd;AACF;AACA;AACA;EACE,MAAMC,aAAaA,CAAA,EAAqB;IACtC,IAAI;MACF,OAAO,MAAMV,aAAa,CAACU,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,OAAOC,KAAK,EAAE;MACd,MAAM,IAAIP,YAAY,CAAC,6BAA6BO,KAAK,EAAE,CAAC;IAC9D;EACF,CAAC;EAED;AACF;AACA;AACA;AACA;EACE,MAAMC,kBAAkBA,CAAC;IACvBC,QAAQ;IACRC,kBAAkB;IAClBC,aAAa,GAAGZ,aAAa,CAACa;EACP,CAAC,EAAoB;IAC5C,MAAMC,KAAK,GAAGlB,QAAQ,CAACmB,EAAE,KAAK,KAAK;IACnC,MAAMC,OAAO,GAAGpB,QAAQ,CAACmB,EAAE,KAAK,OAAO;IACvC,MAAME,SAAS,GAAGrB,QAAQ,CAACmB,EAAE,KAAK,SAAS;IAC3C,IAAIG,GAAG,GAAG,EAAE;IAEZ,IAAIJ,KAAK,IAAIE,OAAO,EAAE;MACpB,IAAI,CAACN,QAAQ,EAAE;QACb,MAAM,IAAIT,YAAY,CAAC,wCAAwC,CAAC;MAClE;MACAiB,GAAG,GAAG,GAAGnB,cAAc,GAAGW,QAAQ,sBAAsB;IAC1D,CAAC,MAAM,IAAIO,SAAS,EAAE;MACpB,IAAI,CAACN,kBAAkB,EAAE;QACvB,MAAM,IAAIV,YAAY,CAAC,4CAA4C,CAAC;MACtE;MACAiB,GAAG,GAAG,IAAI,CAACC,mBAAmB,CAACP,aAAa,EAAED,kBAAkB,CAAC;IACnE,CAAC,MAAM;MACL,MAAM,IAAIV,YAAY,CAAC,yBAAyBL,QAAQ,CAACmB,EAAE,EAAE,CAAC;IAChE;IAEA,IAAI;MACF,MAAMK,UAAU,GAAG,MAAMzB,OAAO,CAACyB,UAAU,CAACF,GAAG,CAAC;MAChD,IAAIE,UAAU,EAAE;QACd,MAAMzB,OAAO,CAAC0B,OAAO,CAACH,GAAG,CAAC;MAC5B;MACA,OAAOE,UAAU;IACnB,CAAC,CAAC,OAAOZ,KAAK,EAAE;MACd,MAAM,IAAIP,YAAY,CAAC,oCAAoCO,KAAK,EAAE,CAAC;IACrE;EACF,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEW,mBAAmBA,CACjBP,aAA4B,EAC5BD,kBAA0B,EAClB;IACR,MAAMW,WAAW,GAAGxB,mBAAmB,CAACc,aAAa,CAAC;IACtD,IAAI,CAACU,WAAW,EAAE;MAChB,MAAM,IAAIrB,YAAY,CAAC,+BAA+BW,aAAa,EAAE,CAAC;IACxE;IACA,OAAOU,WAAW,CAACC,OAAO,CAAC,eAAe,EAAEZ,kBAAkB,CAAC;EACjE;AACF,CAAC;AAED,cAAc,YAAS;AACvB,cAAc,gBAAa;AAC3B,OAAO,MAAM;EAAEJ,aAAa;EAAEE,kBAAkB;EAAEU;AAAoB,CAAC,GACrEb,OAAO;AACT,eAAeA,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["Linking","Platform","NativeRateApp","ANDROID_MARKET_URLS","IOS_REVIEW_URL","AndroidMarket","RateAppError","Error","constructor","message","name","RateApp","requestReview","error","openStoreForReview","iOSAppId","androidPackageName","androidMarket","GOOGLE","isIOS","OS","ismacOS","isAndroid","url","getAndroidMarketUrl","canOpenURL","openURL","urlTemplate","replace"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAChD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,mBAAmB,EAAEC,cAAc,QAAQ,aAAa;AACjE,SAASC,aAAa,QAAsC,SAAS;;AAErE;AACA;AACA;AACA,MAAMC,YAAY,SAASC,KAAK,CAAC;EAC/BC,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAACA,OAAO,CAAC;IACd,IAAI,CAACC,IAAI,GAAG,cAAc;EAC5B;AACF;AAEA,MAAMC,OAAO,GAAG;EACd;AACF;AACA;AACA;EACE,MAAMC,aAAaA,CAAA,EAAqB;IACtC,IAAI;MACF,OAAO,MAAMV,aAAa,CAACU,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,OAAOC,KAAK,EAAE;MACd,MAAM,IAAIP,YAAY,CAAC,6BAA6BO,KAAK,EAAE,CAAC;IAC9D;EACF,CAAC;EAED;AACF;AACA;AACA;AACA;EACE,MAAMC,kBAAkBA,CAAC;IACvBC,QAAQ;IACRC,kBAAkB;IAClBC,aAAa,GAAGZ,aAAa,CAACa;EACP,CAAC,EAAoB;IAC5C,MAAMC,KAAK,GAAGlB,QAAQ,CAACmB,EAAE,KAAK,KAAK;IACnC,MAAMC,OAAO,GAAGpB,QAAQ,CAACmB,EAAE,KAAK,OAAO;IACvC,MAAME,SAAS,GAAGrB,QAAQ,CAACmB,EAAE,KAAK,SAAS;IAC3C,IAAIG,GAAG,GAAG,EAAE;IAEZ,IAAIJ,KAAK,IAAIE,OAAO,EAAE;MACpB,IAAI,CAACN,QAAQ,EAAE;QACb,MAAM,IAAIT,YAAY,CAAC,wCAAwC,CAAC;MAClE;MACAiB,GAAG,GAAG,GAAGnB,cAAc,GAAGW,QAAQ,sBAAsB;IAC1D,CAAC,MAAM,IAAIO,SAAS,EAAE;MACpB,IAAI,CAACN,kBAAkB,EAAE;QACvB,MAAM,IAAIV,YAAY,CAAC,4CAA4C,CAAC;MACtE;MACAiB,GAAG,GAAG,IAAI,CAACC,mBAAmB,CAACP,aAAa,EAAED,kBAAkB,CAAC;IACnE,CAAC,MAAM;MACL,MAAM,IAAIV,YAAY,CAAC,yBAAyBL,QAAQ,CAACmB,EAAE,EAAE,CAAC;IAChE;IAEA,IAAI;MACF,MAAMK,UAAU,GAAG,MAAMzB,OAAO,CAACyB,UAAU,CAACF,GAAG,CAAC;MAChD,IAAIE,UAAU,EAAE;QACd,MAAMzB,OAAO,CAAC0B,OAAO,CAACH,GAAG,CAAC;MAC5B;MACA,OAAOE,UAAU;IACnB,CAAC,CAAC,OAAOZ,KAAK,EAAE;MACd,MAAM,IAAIP,YAAY,CAAC,oCAAoCO,KAAK,EAAE,CAAC;IACrE;EACF,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEW,mBAAmBA,CACjBP,aAA4B,EAC5BD,kBAA0B,EAClB;IACR,MAAMW,WAAW,GAAGxB,mBAAmB,CAACc,aAAa,CAAC;IACtD,IAAI,CAACU,WAAW,EAAE;MAChB,MAAM,IAAIrB,YAAY,CAAC,+BAA+BW,aAAa,EAAE,CAAC;IACxE;IACA,OAAOU,WAAW,CAACC,OAAO,CAAC,eAAe,EAAEZ,kBAAkB,CAAC;EACjE;AACF,CAAC;AAED,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,OAAO,MAAM;EAAEJ,aAAa;EAAEE,kBAAkB;EAAEU;AAAoB,CAAC,GACrEb,OAAO;AACT,eAAeA,OAAO","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRateApp.d.ts","sourceRoot":"","sources":["../../src/NativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC;;AAED,wBAAiE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,cAAc,sCAAsC,CAAC;AAElE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAK7D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAYtE,QAAA,MAAM,OAAO;IACX;;;OAGG;qBACoB,OAAO,CAAC,OAAO,CAAC;IAQvC;;;;OAIG;yEAKA,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;IA+B7C;;;;;OAKG;uCAEc,aAAa,sBACR,MAAM,GACzB,MAAM;CAOV,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,eAAO,MAAQ,aAAa,QApEH,OAAO,CAAC,OAAO,CAAC,EAoEX,kBAAkB,qDAnD3C,uBAAuB,KAAG,OAAO,CAAC,OAAO,CAAC,EAmDG,mBAAmB,kBAblD,aAAa,sBACR,MAAM,KACzB,MAYI,CAAC;AACV,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B"}
package/package.json CHANGED
@@ -1,22 +1,12 @@
1
1
  {
2
2
  "name": "react-native-rate-app",
3
- "version": "0.0.1",
3
+ "version": "1.0.1",
4
4
  "description": "In-App Rating on Android & iOS",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
7
+ "react-native": "src/index.ts",
7
8
  "module": "./lib/module/index.js",
8
- "exports": {
9
- ".": {
10
- "import": {
11
- "types": "./lib/typescript/module/src/index.d.ts",
12
- "default": "./lib/module/index.js"
13
- },
14
- "require": {
15
- "types": "./lib/typescript/commonjs/src/index.d.ts",
16
- "default": "./lib/commonjs/index.js"
17
- }
18
- }
19
- },
9
+ "types": "lib/typescript/index.d.ts",
20
10
  "files": [
21
11
  "src",
22
12
  "lib",
@@ -49,7 +39,11 @@
49
39
  "keywords": [
50
40
  "react-native",
51
41
  "ios",
52
- "android"
42
+ "android",
43
+ "rate",
44
+ "review",
45
+ "native",
46
+ "store"
53
47
  ],
54
48
  "repository": {
55
49
  "type": "git",
@@ -113,26 +107,9 @@
113
107
  "source": "src",
114
108
  "output": "lib",
115
109
  "targets": [
116
- "codegen",
117
- [
118
- "commonjs",
119
- {
120
- "esm": true
121
- }
122
- ],
123
- [
124
- "module",
125
- {
126
- "esm": true
127
- }
128
- ],
129
- [
130
- "typescript",
131
- {
132
- "project": "tsconfig.build.json",
133
- "esm": true
134
- }
135
- ]
110
+ "commonjs",
111
+ "module",
112
+ "typescript"
136
113
  ]
137
114
  },
138
115
  "codegenConfig": {
@@ -1,38 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.rateapp;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.Promise;
17
- import com.facebook.react.bridge.ReactApplicationContext;
18
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
- import com.facebook.react.bridge.ReactMethod;
20
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
21
- import javax.annotation.Nonnull;
22
-
23
- public abstract class NativeRateAppSpec extends ReactContextBaseJavaModule implements TurboModule {
24
- public static final String NAME = "RateApp";
25
-
26
- public NativeRateAppSpec(ReactApplicationContext reactContext) {
27
- super(reactContext);
28
- }
29
-
30
- @Override
31
- public @Nonnull String getName() {
32
- return NAME;
33
- }
34
-
35
- @ReactMethod
36
- @DoNotStrip
37
- public abstract void requestReview(Promise promise);
38
- }
@@ -1,49 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- cmake_minimum_required(VERSION 3.13)
7
- set(CMAKE_VERBOSE_MAKEFILE on)
8
-
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNRateAppSpec/*.cpp)
10
-
11
- add_library(
12
- react_codegen_RNRateAppSpec
13
- SHARED
14
- ${react_codegen_SRCS}
15
- )
16
-
17
- target_include_directories(react_codegen_RNRateAppSpec PUBLIC . react/renderer/components/RNRateAppSpec)
18
-
19
- target_link_libraries(
20
- react_codegen_RNRateAppSpec
21
- fbjni
22
- folly_runtime
23
- glog
24
- jsi
25
- react_codegen_rncore
26
- react_debug
27
- react_nativemodule_core
28
- react_render_componentregistry
29
- react_render_core
30
- react_render_debug
31
- react_render_graphics
32
- react_render_imagemanager
33
- react_render_mapbuffer
34
- react_utils
35
- rrc_image
36
- rrc_view
37
- turbomodulejsijni
38
- yoga
39
- )
40
-
41
- target_compile_options(
42
- react_codegen_RNRateAppSpec
43
- PRIVATE
44
- -DLOG_TAG=\"ReactNative\"
45
- -fexceptions
46
- -frtti
47
- -std=c++20
48
- -Wall
49
- )
@@ -1,32 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNRateAppSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
- static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReview(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- static jmethodID cachedMethodId = nullptr;
17
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "requestReview", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
18
- }
19
-
20
- NativeRateAppSpecJSI::NativeRateAppSpecJSI(const JavaTurboModule::InitParams &params)
21
- : JavaTurboModule(params) {
22
- methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReview};
23
- }
24
-
25
- std::shared_ptr<TurboModule> RNRateAppSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
26
- if (moduleName == "RateApp") {
27
- return std::make_shared<NativeRateAppSpecJSI>(params);
28
- }
29
- return nullptr;
30
- }
31
-
32
- } // namespace facebook::react
@@ -1,31 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
- /**
20
- * JNI C++ class for module 'NativeRateApp'
21
- */
22
- class JSI_EXPORT NativeRateAppSpecJSI : public JavaTurboModule {
23
- public:
24
- NativeRateAppSpecJSI(const JavaTurboModule::InitParams &params);
25
- };
26
-
27
-
28
- JSI_EXPORT
29
- std::shared_ptr<TurboModule> RNRateAppSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
-
31
- } // namespace facebook::react
@@ -1,22 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
- */
10
-
11
- #include "ComponentDescriptors.h"
12
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
-
15
- namespace facebook::react {
16
-
17
- void RNRateAppSpec_registerComponentDescriptorsFromCodegen(
18
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
-
20
- }
21
-
22
- } // namespace facebook::react
@@ -1,24 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "ShadowNodes.h"
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- void RNRateAppSpec_registerComponentDescriptorsFromCodegen(
22
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
-
24
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include "EventEmitters.h"
12
-
13
-
14
- namespace facebook::react {
15
-
16
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsCpp.js
9
- */
10
-
11
- #include "Props.h"
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,18 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
-
13
-
14
- namespace facebook::react {
15
-
16
-
17
-
18
- } // namespace facebook::react
@@ -1,26 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNRateAppSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReview(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReview(
16
- rt
17
- );
18
- }
19
-
20
- NativeRateAppCxxSpecJSI::NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
21
- : TurboModule("RateApp", jsInvoker) {
22
- methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReview};
23
- }
24
-
25
-
26
- } // namespace facebook::react
@@ -1,67 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
- class JSI_EXPORT NativeRateAppCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
- virtual jsi::Value requestReview(jsi::Runtime &rt) = 0;
24
-
25
- };
26
-
27
- template <typename T>
28
- class JSI_EXPORT NativeRateAppCxxSpec : public TurboModule {
29
- public:
30
- jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
31
- return delegate_.get(rt, propName);
32
- }
33
-
34
- static constexpr std::string_view kModuleName = "RateApp";
35
-
36
- protected:
37
- NativeRateAppCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
38
- : TurboModule(std::string{NativeRateAppCxxSpec::kModuleName}, jsInvoker),
39
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
40
-
41
-
42
- private:
43
- class Delegate : public NativeRateAppCxxSpecJSI {
44
- public:
45
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
46
- NativeRateAppCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
47
-
48
- }
49
-
50
- jsi::Value requestReview(jsi::Runtime &rt) override {
51
- static_assert(
52
- bridging::getParameterCount(&T::requestReview) == 1,
53
- "Expected requestReview(...) to have 1 parameters");
54
-
55
- return bridging::callFromJs<jsi::Value>(
56
- rt, &T::requestReview, jsInvoker_, instance_);
57
- }
58
-
59
- private:
60
- friend class NativeRateAppCxxSpec;
61
- T *instance_;
62
- };
63
-
64
- Delegate delegate_;
65
- };
66
-
67
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,23 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
-
22
-
23
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,2 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
- </manifest>
@@ -1,22 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
- */
10
-
11
- #include "ComponentDescriptors.h"
12
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
-
15
- namespace facebook::react {
16
-
17
- void RNRateAppSpec_registerComponentDescriptorsFromCodegen(
18
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
-
20
- }
21
-
22
- } // namespace facebook::react
@@ -1,24 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "ShadowNodes.h"
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- void RNRateAppSpec_registerComponentDescriptorsFromCodegen(
22
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
-
24
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include "EventEmitters.h"
12
-
13
-
14
- namespace facebook::react {
15
-
16
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsCpp.js
9
- */
10
-
11
- #include "Props.h"
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,18 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
-
13
-
14
- namespace facebook::react {
15
-
16
-
17
-
18
- } // namespace facebook::react
@@ -1,18 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateComponentHObjCpp.js
8
- */
9
-
10
- #import <Foundation/Foundation.h>
11
- #import <React/RCTDefines.h>
12
- #import <React/RCTLog.h>
13
-
14
- NS_ASSUME_NONNULL_BEGIN
15
-
16
-
17
-
18
- NS_ASSUME_NONNULL_END
@@ -1,29 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleObjCpp
8
- *
9
- * We create an umbrella header (and corresponding implementation) here since
10
- * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
- * must have a single output. More files => more genrule()s => slower builds.
12
- */
13
-
14
- #import "RNRateAppSpec.h"
15
-
16
-
17
- namespace facebook::react {
18
-
19
- static facebook::jsi::Value __hostFunction_NativeRateAppSpecJSI_requestReview(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
20
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "requestReview", @selector(requestReview:reject:), args, count);
21
- }
22
-
23
- NativeRateAppSpecJSI::NativeRateAppSpecJSI(const ObjCTurboModule::InitParams &params)
24
- : ObjCTurboModule(params) {
25
-
26
- methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppSpecJSI_requestReview};
27
-
28
- }
29
- } // namespace facebook::react
@@ -1,50 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleObjCpp
8
- *
9
- * We create an umbrella header (and corresponding implementation) here since
10
- * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
- * must have a single output. More files => more genrule()s => slower builds.
12
- */
13
-
14
- #ifndef __cplusplus
15
- #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
- #endif
17
-
18
- // Avoid multiple includes of RNRateAppSpec symbols
19
- #ifndef RNRateAppSpec_H
20
- #define RNRateAppSpec_H
21
-
22
- #import <Foundation/Foundation.h>
23
- #import <RCTRequired/RCTRequired.h>
24
- #import <RCTTypeSafety/RCTConvertHelpers.h>
25
- #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
- #import <React/RCTBridgeModule.h>
27
- #import <React/RCTCxxConvert.h>
28
- #import <React/RCTManagedPointer.h>
29
- #import <ReactCommon/RCTTurboModule.h>
30
- #import <optional>
31
- #import <vector>
32
-
33
-
34
- @protocol NativeRateAppSpec <RCTBridgeModule, RCTTurboModule>
35
-
36
- - (void)requestReview:(RCTPromiseResolveBlock)resolve
37
- reject:(RCTPromiseRejectBlock)reject;
38
-
39
- @end
40
- namespace facebook::react {
41
- /**
42
- * ObjC++ class for module 'NativeRateApp'
43
- */
44
- class JSI_EXPORT NativeRateAppSpecJSI : public ObjCTurboModule {
45
- public:
46
- NativeRateAppSpecJSI(const ObjCTurboModule::InitParams &params);
47
- };
48
- } // namespace facebook::react
49
-
50
- #endif // RNRateAppSpec_H
@@ -1,17 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,23 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
-
22
-
23
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,26 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNRateAppSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeRateAppCxxSpecJSI_requestReview(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeRateAppCxxSpecJSI *>(&turboModule)->requestReview(
16
- rt
17
- );
18
- }
19
-
20
- NativeRateAppCxxSpecJSI::NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
21
- : TurboModule("RateApp", jsInvoker) {
22
- methodMap_["requestReview"] = MethodMetadata {0, __hostFunction_NativeRateAppCxxSpecJSI_requestReview};
23
- }
24
-
25
-
26
- } // namespace facebook::react
@@ -1,67 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
- class JSI_EXPORT NativeRateAppCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeRateAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
- virtual jsi::Value requestReview(jsi::Runtime &rt) = 0;
24
-
25
- };
26
-
27
- template <typename T>
28
- class JSI_EXPORT NativeRateAppCxxSpec : public TurboModule {
29
- public:
30
- jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
31
- return delegate_.get(rt, propName);
32
- }
33
-
34
- static constexpr std::string_view kModuleName = "RateApp";
35
-
36
- protected:
37
- NativeRateAppCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
38
- : TurboModule(std::string{NativeRateAppCxxSpec::kModuleName}, jsInvoker),
39
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
40
-
41
-
42
- private:
43
- class Delegate : public NativeRateAppCxxSpecJSI {
44
- public:
45
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
46
- NativeRateAppCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
47
-
48
- }
49
-
50
- jsi::Value requestReview(jsi::Runtime &rt) override {
51
- static_assert(
52
- bridging::getParameterCount(&T::requestReview) == 1,
53
- "Expected requestReview(...) to have 1 parameters");
54
-
55
- return bridging::callFromJs<jsi::Value>(
56
- rt, &T::requestReview, jsInvoker_, instance_);
57
- }
58
-
59
- private:
60
- friend class NativeRateAppCxxSpec;
61
- T *instance_;
62
- };
63
-
64
- Delegate delegate_;
65
- };
66
-
67
- } // namespace facebook::react
@@ -1 +0,0 @@
1
- //# sourceMappingURL=setupJest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setupJest.d.ts","sourceRoot":"","sources":["../../../setupJest.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeRateApp.d.ts","sourceRoot":"","sources":["../../../../src/NativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC;;AAED,wBAAiE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,cAAc,sCAAsC,CAAC;AAElE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAK7D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAYtE,QAAA,MAAM,OAAO;IACX;;;OAGG;qBACoB,OAAO,CAAC,OAAO,CAAC;IAQvC;;;;OAIG;yEAKA,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;IA+B7C;;;;;OAKG;uCAEc,aAAa,sBACR,MAAM,GACzB,MAAM;CAOV,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,eAAO,MAAQ,aAAa,QApEH,OAAO,CAAC,OAAO,CAAC,EAoEX,kBAAkB,qDAnD3C,uBAAuB,KAAG,OAAO,CAAC,OAAO,CAAC,EAmDG,mBAAmB,kBAblD,aAAa,sBACR,MAAM,KACzB,MAYI,CAAC;AACV,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=setupJest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setupJest.d.ts","sourceRoot":"","sources":["../../../setupJest.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import type { TurboModule } from "react-native";
2
- export interface Spec extends TurboModule {
3
- requestReview(): Promise<boolean>;
4
- }
5
- declare const _default: Spec;
6
- export default _default;
7
- //# sourceMappingURL=NativeRateApp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeRateApp.d.ts","sourceRoot":"","sources":["../../../../src/NativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC;;AAED,wBAAiE"}
@@ -1,4 +0,0 @@
1
- import { AndroidMarket } from "./types";
2
- export declare const IOS_REVIEW_URL = "itms-apps://apps.apple.com/app/id";
3
- export declare const ANDROID_MARKET_URLS: Record<AndroidMarket, string>;
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,cAAc,sCAAsC,CAAC;AAElE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAK7D,CAAC"}
@@ -1,26 +0,0 @@
1
- import { AndroidMarket, type OpenStoreForReviewProps } from "./types";
2
- declare const RateApp: {
3
- /**
4
- * Requests a review from the user.
5
- * @returns A promise that resolves to a boolean indicating whether the review was successfully requested.
6
- */
7
- requestReview(): Promise<boolean>;
8
- /**
9
- * Opens the store listing for the app.
10
- * @param props The properties for the store listing.
11
- * @returns A promise that resolves to a boolean indicating whether the store listing was successfully opened.
12
- */
13
- openStoreForReview({ iOSAppId, androidPackageName, androidMarket, }: OpenStoreForReviewProps): Promise<boolean>;
14
- /**
15
- * Gets the URL for the Android market.
16
- * @param androidMarket The market where the app's store listing should be opened on Android.
17
- * @param androidPackageName The package name of the app to open the store listing for on Android.
18
- * @returns The URL for the Android market.
19
- */
20
- getAndroidMarketUrl(androidMarket: AndroidMarket, androidPackageName: string): string;
21
- };
22
- export * from "./types";
23
- export * from "./constants";
24
- export declare const requestReview: () => Promise<boolean>, openStoreForReview: ({ iOSAppId, androidPackageName, androidMarket, }: OpenStoreForReviewProps) => Promise<boolean>, getAndroidMarketUrl: (androidMarket: AndroidMarket, androidPackageName: string) => string;
25
- export default RateApp;
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAYtE,QAAA,MAAM,OAAO;IACX;;;OAGG;qBACoB,OAAO,CAAC,OAAO,CAAC;IAQvC;;;;OAIG;yEAKA,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;IA+B7C;;;;;OAKG;uCAEc,aAAa,sBACR,MAAM,GACzB,MAAM;CAOV,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,eAAO,MAAQ,aAAa,QApEH,OAAO,CAAC,OAAO,CAAC,EAoEX,kBAAkB,qDAnD3C,uBAAuB,KAAG,OAAO,CAAC,OAAO,CAAC,EAmDG,mBAAmB,kBAblD,aAAa,sBACR,MAAM,KACzB,MAYI,CAAC;AACV,eAAe,OAAO,CAAC"}
@@ -1,22 +0,0 @@
1
- export declare enum AndroidMarket {
2
- GOOGLE = "google",
3
- AMAZON = "amazon",
4
- SAMSUNG = "samsung",
5
- HUAWEI = "huawei"
6
- }
7
- export interface OpenStoreForReviewProps {
8
- /**
9
- * The App Store ID of the app to open the store listing for on iOS.
10
- */
11
- iOSAppId?: string;
12
- /**
13
- * The package name of the app to open the store listing for on Android.
14
- */
15
- androidPackageName?: string;
16
- /**
17
- * The market where the app's store listing should be opened on Android.
18
- * @default AndroidMarket.GOOGLE
19
- */
20
- androidMarket?: AndroidMarket;
21
- }
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B"}
File without changes