@statsig/react-native-core 0.0.1-beta.17 → 0.0.1-beta.19
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/react-native-core",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.19",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@statsig/client-core": "0.0.1-beta.
|
|
6
|
-
"@statsig/react-bindings": "0.0.1-beta.
|
|
5
|
+
"@statsig/client-core": "0.0.1-beta.19",
|
|
6
|
+
"@statsig/react-bindings": "0.0.1-beta.19"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { StatsigProviderProps } from '@statsig/react-bindings';
|
|
2
2
|
import { StatsigAsyncCacheWarming } from './AsyncStorageWarming';
|
|
3
|
-
type
|
|
3
|
+
export type StatsigProviderWithCacheWarmingProps = StatsigProviderProps & {
|
|
4
4
|
cacheWarming: StatsigAsyncCacheWarming;
|
|
5
5
|
};
|
|
6
|
-
export declare function
|
|
7
|
-
[key: string]: string | undefined;
|
|
8
|
-
}): (props: Props) => JSX.Element | null;
|
|
9
|
-
export {};
|
|
6
|
+
export declare function StatsigProviderWithCacheWarming(props: StatsigProviderWithCacheWarmingProps): JSX.Element | null;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StatsigProviderWithCacheWarming = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const client_core_1 = require("@statsig/client-core");
|
|
7
7
|
const react_bindings_1 = require("@statsig/react-bindings");
|
|
8
|
-
function GetStatsigProviderWithCacheWarming(additions) {
|
|
9
|
-
client_core_1.StatsigMetadataProvider.add(additions);
|
|
10
|
-
return StatsigProviderWithCacheWarming;
|
|
11
|
-
}
|
|
12
|
-
exports.GetStatsigProviderWithCacheWarming = GetStatsigProviderWithCacheWarming;
|
|
13
8
|
function StatsigProviderWithCacheWarming(props) {
|
|
14
9
|
const [isWarmed, setIsWarmed] = (0, react_1.useState)(false);
|
|
15
10
|
(0, react_1.useEffect)(() => {
|
|
@@ -27,3 +22,4 @@ function StatsigProviderWithCacheWarming(props) {
|
|
|
27
22
|
}
|
|
28
23
|
return (0, jsx_runtime_1.jsx)(react_bindings_1.StatsigProvider, Object.assign({}, props));
|
|
29
24
|
}
|
|
25
|
+
exports.StatsigProviderWithCacheWarming = StatsigProviderWithCacheWarming;
|