Add a temporary lexicon refactor guard (#235)

* Add a temporary lexicon refactor guard

* Fix test

* Fix tsconfig formatting
This commit is contained in:
Paul Frazee
2023-02-28 11:57:49 -06:00
committed by GitHub
parent 6885bccdff
commit aca5cfd202
5 changed files with 54 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const segmentClient = createClient({
writeKey: '8I6DsgfiSLuoONyaunGoiQM7A6y2ybdI',
trackAppLifecycleEvents: false,
})
export const track = segmentClient.track.bind(segmentClient)
export const track = segmentClient?.track?.bind?.(segmentClient)
export {useAnalytics} from '@segment/analytics-react-native'