- native-base
- react-hook-form
# 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
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"
]
}
https://reactnativetesting.io/e2e/setup/
detox build -c ios
detox test -c ios