dimio_react_native_libraries

0.1.0 • Public • Published

Dependencies

  • native-base
  • react-hook-form

Setup

UI

# Hook form
yarn add react-hook-form
# Native base
yarn add native-base react-native-svg@12.1.1 react-native-safe-area-context@3.3.2

cd ios/
pod install

Test libraries

https://reactnativetesting.io/e2e/setup/

# Jest
yarn add -D "jest@^27"
yarn add -D @testing-library/jest-native
yarn add -D ts-jest @types/jest ts-node

# UT
yarn add -D @testing-library/react-native

# E2E 
yarn add -D detox eslint-plugin-detox

detox init -r jest


# update package.json
  "jest": {
    "preset": "react-native",
    "setupFilesAfterEnv": ["@testing-library/jest-native/extend-expect"],
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }

Test

https://reactnativetesting.io/e2e/setup/

detox build -c ios
detox test -c ios

Readme

Keywords

none

Package Sidebar

Install

npm i dimio_react_native_libraries

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

11 kB

Total Files

22

Last publish

Collaborators

  • ken.mikuny