Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.32 KB

CONTRIBUTING.md

File metadata and controls

66 lines (45 loc) · 1.32 KB

Contributing to the component

Development can be done using the example app. Follow readme instructions on running the example app, open it in Xcode or Android Studio and you can start contributing!

Clone, install

git clone https://github.com/react-native-community/datetimepicker.git
cd datetimepicker
yarn

Tests

Jest

yarn
yarn test

Detox

Detox is a gray box end-to-end testing and automation library for mobile apps.

For cleaning all the detox builds just run npm run detox:clean.

iOS
  • debug:

    # Debug requires to run Metro Bundler
    yarn start
    yarn detox:ios:build:debug
    yarn detox:ios:test:debug
  • release:

    yarn detox:ios:build:release
    yarn detox:ios:test:release
Android

An existing Android emulator is required to match the name defined in detox.configurations.android.emu.debug.name and detox.configurations.android.emu.release.name inside the package.json.

  • debug:

    # Debug requires to run Metro Bundler
    yarn start
    yarn detox:android:build:debug
    yarn detox:android:test:debug
  • release:

    yarn detox:android:build:release
    yarn detox:android:test:release