TrackedView
Wraps View in a ContentContext.
TrackedView = (props: ViewProps & {
id: string,
}) => View
Additional Props
type | ||
---|---|---|
required | id | string |
Automatic Events
none.
Usage example
import { TrackedButton, TrackedView } from '@objectiv/tracker-react-native';
<View>
<TrackedView id="hero">
Welcome back!
<TrackedButton
onPress={doSomethingHandler}
title="Do something!"
/>
</TrackedView>
<Separator />
<TrackedView id="screen-body">
More content here
<TrackedButton
onPress={doSomethingHandler}
title="Do something!"
/>
</TrackedView>
</View>
Did you know ?
TrackedView
internally uses ContentContextWrapper.