@statsig/react-native-bindings 2.2.0-beta.7 → 3.0.0-beta.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.
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/react-native-bindings",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@statsig/client-core": "
|
|
6
|
-
"@statsig/js-client": "
|
|
7
|
-
"@statsig/react-bindings": "
|
|
8
|
-
"@statsig/react-native-core": "
|
|
5
|
+
"@statsig/client-core": "3.0.0-beta.1",
|
|
6
|
+
"@statsig/js-client": "3.0.0-beta.1",
|
|
7
|
+
"@statsig/react-bindings": "3.0.0-beta.1",
|
|
8
|
+
"@statsig/react-native-core": "3.0.0-beta.1"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
|
package/src/StatsigClientRN.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { StatsigOptions, StatsigUser } from '@statsig/js-client';
|
|
2
|
-
|
|
3
|
-
export declare class StatsigClientRN extends StatsigClientReactNativeBase {
|
|
1
|
+
import { StatsigClient, StatsigOptions, StatsigUser } from '@statsig/js-client';
|
|
2
|
+
export declare class StatsigClientRN extends StatsigClient {
|
|
4
3
|
__isRnClient: boolean;
|
|
5
4
|
constructor(sdkKey: string, user: StatsigUser, options?: StatsigOptions | null);
|
|
6
5
|
}
|
package/src/StatsigClientRN.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StatsigClientRN = void 0;
|
|
4
|
+
const js_client_1 = require("@statsig/js-client");
|
|
4
5
|
const react_native_core_1 = require("@statsig/react-native-core");
|
|
5
6
|
const StatsigMetadataAdditions_1 = require("./StatsigMetadataAdditions");
|
|
6
|
-
class StatsigClientRN extends
|
|
7
|
+
class StatsigClientRN extends js_client_1.StatsigClient {
|
|
7
8
|
constructor(sdkKey, user, options = null) {
|
|
8
|
-
|
|
9
|
+
const opts = options !== null && options !== void 0 ? options : {};
|
|
10
|
+
(0, react_native_core_1._setupStatsigForReactNative)('rn', (0, StatsigMetadataAdditions_1.GetStatsigMetadataAdditions)(), opts);
|
|
11
|
+
super(sdkKey, user, opts);
|
|
9
12
|
this.__isRnClient = true;
|
|
10
13
|
}
|
|
11
14
|
}
|