npm run ios
npm run android
Starts the metro server running on http://localhost:8081
Reset react native cache
npm run reset
npm run generate
Allows you to auto-generate boilerplate code for common parts of your
application, specifically component
s, and container
s. You can
also run npm run generate <part>
to skip the first selection. (e.g. npm run generate container
)
See the testing documentation for detailed information about our testing setup!
npm test
Tests your application with the unit tests specified in the **/tests/*.js
files
throughout the application.
All the test
commands allow an optional -- [string]
argument to filter
the tests run by Jest. Useful if you need to run a specific test only.
# Run only the Button component tests
npm test -- Button
npm run lint
Lints your JavaScript and your CSS.
npm run lint-fix
Lints your code and tries to fix any errors it finds.
npm run pretier-fix
Pretify your code and tries to fix any errors it finds.
react-native-rename Rename your application to whatever you want. Beaware of the issue deleting your android files. Discard local git changes and move the files over to the new folder name location. android\app\src\main\java\
npx react-native-rename 'nameofapp'
npm run android-logging
npm run ios-logging