Skip to content

Commit

Permalink
Update README.md (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning authored Oct 5, 2023
1 parent 21e51c0 commit ddca5ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ First, you need to get your `App Key` from Aptabase, you can find it in the `Ins
Initialize the SDK by using the `AptabaseProvider` on your `App` component:

```js
import { AptabaseProvider } from "@aptabase/react-native";

export default function App() {
return (
<AptabaseProvider appKey="<YOUR_APP_KEY>">
Expand All @@ -32,6 +34,7 @@ Afterwards, you can start tracking events with `trackEvent` from `useAptabase` h

```js
import { useAptabase } from "@aptabase/react-native";
import { useState } from "react";

export function Counter() {
const { trackEvent } = useAptabase();
Expand Down

0 comments on commit ddca5ee

Please sign in to comment.