File tree Expand file tree Collapse file tree
trackers/react-native-tracker/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { EventStore , EventStorePayload , newInMemoryEventStore } from '@snowplow/tracker-core' ;
2- import { AsyncStorage , EventStoreConfiguration , TrackerConfiguration } from './types' ;
3-
4- type Configuration = Omit < EventStoreConfiguration , 'asyncStorage' > &
5- TrackerConfiguration & { asyncStorage : AsyncStorage } ;
2+ import { EventStoreConfiguration , TrackerConfiguration } from './types' ;
3+ import DefaultAsyncStorage from '@react-native-async-storage/async-storage' ;
64
75export async function newReactNativeEventStore ( {
86 namespace,
97 maxEventStoreSize = 1000 ,
108 useAsyncStorageForEventStore : useAsyncStorage = true ,
11- asyncStorage,
12- } : Configuration ) : Promise < EventStore > {
9+ asyncStorage = DefaultAsyncStorage ,
10+ } : TrackerConfiguration & EventStoreConfiguration ) : Promise < EventStore > {
1311 const queueName = `snowplow_${ namespace } ` ;
1412
1513 async function newInMemoryEventStoreForReactNative ( ) {
You can’t perform that action at this time.
0 commit comments