This repository is broken into different packages
- /posthog-core > All common code goes here.
- /posthog-node > Node.js specific code
- /posthog-react-native > React Native specific code
- /posthog-web > Web (DOM) specific code
yarn test
# Run the RN tests - these are separate due to specific babel configs
yarn test:rn
cd examples/example-expo
yarn && yarn start
First install yalc:
yarn global add yalc
Then run:
cd examples/example-node
yarn && yarn start
# example-expo has some buttons that will talk to this server