dimio-react-native-tools
v0.1.7
Published
- native-base - react-hook-form
Downloads
15
Readme
Dependencies
- native-base
- react-hook-form
Setup
UI
# Hook form
yarn add react-hook-form
# Native base
yarn add native-base [email protected] [email protected]
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