Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 779 Bytes

CONTRIBUTING.md

File metadata and controls

47 lines (32 loc) · 779 Bytes

Contributing

Development

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

Running tests

yarn test
# Run the RN tests - these are separate due to specific babel configs
yarn test:rn

Running E2E tests with Detox

See Example Expo Readme

Examples

React Native

cd examples/example-expo
yarn && yarn start

Node.js

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