nativeup
nativeup copied to clipboard
Create a React Native project pre-configured for linting and React Native Testing Library component tests
nativeup
DEPRECATED: this library has been superceded by jessup, a project setup script for React Native, React for the web, and vanilla JS. Please check it out.
Script to set up a new React Native CLI or Expo project with some basic libraries, including:
- Testing
- Unit Tests: Jest
- Component Tests: React Native Testing Library with jest-native
- Code Standardization: React Native Community ESLint and Prettier setup
Requirements
Usage
Add nativeup/bin to your PATH.
# nativeup [projecttype] my-new-app-name
Where [projecttype] is one of:
cli- React Native CLIexpo- Expo
Manual Steps
The following steps must be done manually after running nativeup:
Expo
In package.json, add:
+ "jest": {
+ "preset": "jest-expo"
+ },
"private": "true"
}
License
MIT