Skip to main content

useTrackOpened

Platforms:✓ Expo

This hook tracks a tab/page being opened/closed based on '@react-navigation/native' events.

import { useTrackOpened } from '@healthblocks-io/native/useTrackOpened'

function Tab() {
useTrackOpened('Settings')
return (
<View>
<Text>Settings</Text>
</View>
)
}